diff --git a/core/lib/Drupal/Core/Cache/DatabaseBackend.php b/core/lib/Drupal/Core/Cache/DatabaseBackend.php
index 9416548..0c3a18c 100644
--- a/core/lib/Drupal/Core/Cache/DatabaseBackend.php
+++ b/core/lib/Drupal/Core/Cache/DatabaseBackend.php
@@ -206,7 +206,7 @@ class DatabaseBackend implements CacheBackendInterface {
       $_SESSION['cache_expiration'][$this->bin] = REQUEST_TIME;
 
       $cache_flush = variable_get('cache_flush_' . $this->bin, 0);
-      if ($cache_flush == 0) {
+      if ($cache_flush === 0) {
         // This is the first request to clear the cache, start a timer.
         variable_set('cache_flush_' . $this->bin, REQUEST_TIME);
       }
diff --git a/core/lib/Drupal/Core/Config/DrupalConfig.php b/core/lib/Drupal/Core/Config/DrupalConfig.php
index 9fc33aa..a32373d 100644
--- a/core/lib/Drupal/Core/Config/DrupalConfig.php
+++ b/core/lib/Drupal/Core/Config/DrupalConfig.php
@@ -102,7 +102,7 @@ class DrupalConfig {
     }
     else {
       $parts = explode('.', $key);
-      if (count($parts) == 1) {
+      if (count($parts) === 1) {
         return isset($merged_data[$key]) ? $merged_data[$key] : NULL;
       }
       else {
@@ -133,7 +133,7 @@ class DrupalConfig {
     $value = $this->castValue($value);
 
     $parts = explode('.', $key);
-    if (count($parts) == 1) {
+    if (count($parts) === 1) {
       $this->data[$key] = $value;
     }
     else {
@@ -189,7 +189,7 @@ class DrupalConfig {
    */
   public function clear($key) {
     $parts = explode('.', $key);
-    if (count($parts) == 1) {
+    if (count($parts) === 1) {
       unset($this->data[$key]);
     }
     else {
diff --git a/core/lib/Drupal/Core/Database/Connection.php b/core/lib/Drupal/Core/Database/Connection.php
index 3805864..0d54226 100644
--- a/core/lib/Drupal/Core/Database/Connection.php
+++ b/core/lib/Drupal/Core/Database/Connection.php
@@ -858,7 +858,7 @@ abstract class Connection extends PDO {
     // we need to throw an exception.
     $rolled_back_other_active_savepoints = FALSE;
     while ($savepoint = array_pop($this->transactionLayers)) {
-      if ($savepoint == $savepoint_name) {
+      if ($savepoint === $savepoint_name) {
         // If it is the last the transaction in the stack, then it is not a
         // savepoint, it is the transaction itself so we will need to roll back
         // the transaction rather than a savepoint.
diff --git a/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php b/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php
index 0e7ab72..a4a0b9d 100644
--- a/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php
+++ b/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php
@@ -188,7 +188,7 @@ class Connection extends DatabaseConnection {
           //
           // To avoid exceptions when no actual error has occurred, we silently
           // succeed for MySQL error code 1305 ("SAVEPOINT does not exist").
-          if ($e->errorInfo[1] == '1305') {
+          if ($e->errorInfo[1] === '1305') {
             // If one SAVEPOINT was released automatically, then all were.
             // Therefore, clean the transaction stack.
             $this->transactionLayers = array();
diff --git a/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php b/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php
index f5e493d..1af2920 100644
--- a/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php
+++ b/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php
@@ -209,7 +209,7 @@ class Schema extends DatabaseSchema {
       $field['mysql_type'] = $map[$field['type'] . ':' . $field['size']];
     }
 
-    if (isset($field['type']) && $field['type'] == 'serial') {
+    if (isset($field['type']) && $field['type'] === 'serial') {
       $field['auto_increment'] = TRUE;
     }
 
diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Insert.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Insert.php
index dffa1fd..d6afa19 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Insert.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Insert.php
@@ -57,7 +57,7 @@ class Insert extends QueryInsert {
 
             // Force $last_insert_id to the specified value. This is only done
             // if $index is 0.
-            if ($index == 0) {
+            if ($index === 0) {
               $last_insert_id = $serial_value;
             }
             // Set the sequence to the bigger value of either the passed
@@ -91,7 +91,7 @@ class Insert extends QueryInsert {
       $options['sequence_name'] = $table_information->sequences[0];
     }
     // If there are no sequences then we can't get a last insert id.
-    elseif ($options['return'] == Database::RETURN_INSERT_ID) {
+    elseif ($options['return'] === Database::RETURN_INSERT_ID) {
       $options['return'] = Database::RETURN_NULL;
     }
     // Only use the returned last_insert_id if it is not already set.
diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
index ae2db87..4440fa7 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
@@ -44,7 +44,7 @@ class Tasks extends InstallTasks {
    */
   protected function checkEncoding() {
     try {
-      if (db_query('SHOW server_encoding')->fetchField() == 'UTF8') {
+      if (db_query('SHOW server_encoding')->fetchField() === 'UTF8') {
         $this->pass(st('Database is encoded in UTF-8'));
       }
       else {
@@ -114,7 +114,7 @@ class Tasks extends InstallTasks {
    */
   protected function checkBinaryOutputSuccess() {
     $bytea_output = db_query("SELECT 'encoding'::bytea AS output")->fetchField();
-    return ($bytea_output == 'encoding');
+    return ($bytea_output === 'encoding');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
index 7206e17..4022142 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
@@ -67,7 +67,7 @@ class Schema extends DatabaseSchema {
         ':default' => '%nextval%',
       ));
       foreach ($result as $column) {
-        if ($column->data_type == 'bytea') {
+        if ($column->data_type === 'bytea') {
           $table_information->blob_fields[$column->column_name] = TRUE;
         }
         elseif (preg_match("/nextval\('([^']+)'/", $column->column_default, $matches)) {
@@ -187,7 +187,7 @@ class Schema extends DatabaseSchema {
   protected function createFieldSql($name, $spec) {
     $sql = $name . ' ' . $spec['pgsql_type'];
 
-    if (isset($spec['type']) && $spec['type'] == 'serial') {
+    if (isset($spec['type']) && $spec['type'] === 'serial') {
       unset($spec['not null']);
     }
 
@@ -258,7 +258,7 @@ class Schema extends DatabaseSchema {
           break;
       }
     }
-    if (isset($field['type']) && $field['type'] == 'serial') {
+    if (isset($field['type']) && $field['type'] === 'serial') {
       unset($field['not null']);
     }
     return $field;
diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Select.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Select.php
index a9226b2..7afadf6 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Select.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Select.php
@@ -63,14 +63,14 @@ class Select extends QuerySelect {
     foreach ($this->fields as $existing_field) {
       if (!empty($table)) {
         // If table alias is given, check if field and table exists.
-        if ($existing_field['table'] == $table && $existing_field['field'] == $table_field) {
+        if ($existing_field['table'] === $table && $existing_field['field'] === $table_field) {
           return $return;
         }
       }
       else {
         // If there is no table, simply check if the field exists as a field or
         // an aliased field.
-        if ($existing_field['alias'] == $field) {
+        if ($existing_field['alias'] === $field) {
           return $return;
         }
       }
@@ -78,7 +78,7 @@ class Select extends QuerySelect {
 
     // Also check expression aliases.
     foreach ($this->expressions as $expression) {
-      if ($expression['alias'] == $field) {
+      if ($expression['alias'] === $field) {
         return $return;
       }
     }
diff --git a/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php b/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
index 02a55a4..cd55afc 100644
--- a/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
+++ b/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
@@ -133,7 +133,7 @@ class Connection extends DatabaseConnection {
           $count = $this->query('SELECT COUNT(*) FROM ' . $prefix . '.sqlite_master WHERE type = :type AND name NOT LIKE :pattern', array(':type' => 'table', ':pattern' => 'sqlite_%'))->fetchField();
 
           // We can prune the database file if it doesn't have any tables.
-          if ($count == 0) {
+          if ($count === 0) {
             // Detach the database.
             $this->query('DETACH DATABASE :schema', array(':schema' => $prefix));
             // Destroy the database file.
@@ -318,7 +318,7 @@ class Connection extends DatabaseConnection {
     // We need to find the point we're rolling back to, all other savepoints
     // before are no longer needed.
     while ($savepoint = array_pop($this->transactionLayers)) {
-      if ($savepoint == $savepoint_name) {
+      if ($savepoint === $savepoint_name) {
         // Mark whole stack of transactions as needed roll back.
         $this->willRollback = TRUE;
         // If it is the last the transaction in the stack, then it is not a
diff --git a/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php b/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php
index 823cd13..0900e41 100644
--- a/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php
+++ b/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php
@@ -81,7 +81,7 @@ class Schema extends DatabaseSchema {
 
     // Add the SQL statement for each field.
     foreach ($schema['fields'] as $name => $field) {
-      if (isset($field['type']) && $field['type'] == 'serial') {
+      if (isset($field['type']) && $field['type'] === 'serial') {
         if (isset($schema['primary key']) && ($key = array_search($name, $schema['primary key'])) !== FALSE) {
           unset($schema['primary key'][$key]);
         }
@@ -134,7 +134,7 @@ class Schema extends DatabaseSchema {
       $field['sqlite_type'] = $map[$field['type'] . ':' . $field['size']];
     }
 
-    if (isset($field['type']) && $field['type'] == 'serial') {
+    if (isset($field['type']) && $field['type'] === 'serial') {
       $field['auto_increment'] = TRUE;
     }
 
@@ -396,7 +396,7 @@ class Schema extends DatabaseSchema {
 
     $old_count = $this->connection->query('SELECT COUNT(*) FROM {' . $table . '}')->fetchField();
     $new_count = $this->connection->query('SELECT COUNT(*) FROM {' . $new_table . '}')->fetchField();
-    if ($old_count == $new_count) {
+    if ($old_count === $new_count) {
       $this->dropTable($table);
       $this->renameTable($new_table, $table);
     }
@@ -487,7 +487,7 @@ class Schema extends DatabaseSchema {
     unset($new_schema['fields'][$field]);
     foreach ($new_schema['indexes'] as $index => $fields) {
       foreach ($fields as $key => $field_name) {
-        if ($field_name == $field) {
+        if ($field_name === $field) {
           unset($new_schema['indexes'][$index][$key]);
         }
       }
diff --git a/core/lib/Drupal/Core/Database/Install/Tasks.php b/core/lib/Drupal/Core/Database/Install/Tasks.php
index ece3c7c..41506ac 100644
--- a/core/lib/Drupal/Core/Database/Install/Tasks.php
+++ b/core/lib/Drupal/Core/Database/Install/Tasks.php
@@ -240,7 +240,7 @@ abstract class Tasks {
     );
 
     $profile = drupal_get_profile();
-    $db_prefix = ($profile == 'standard') ? 'drupal_' : $profile . '_';
+    $db_prefix = ($profile === 'standard') ? 'drupal_' : $profile . '_';
     $form['advanced_options']['db_prefix'] = array(
       '#type' => 'textfield',
       '#title' => st('Table prefix'),
diff --git a/core/lib/Drupal/Core/Database/Query/Insert.php b/core/lib/Drupal/Core/Database/Query/Insert.php
index e19de45..eb83610 100644
--- a/core/lib/Drupal/Core/Database/Query/Insert.php
+++ b/core/lib/Drupal/Core/Database/Query/Insert.php
@@ -286,7 +286,7 @@ class Insert extends Query {
     }
 
     // Don't execute query without fields.
-    if (count($this->insertFields) + count($this->defaultFields) == 0) {
+    if (count($this->insertFields) + count($this->defaultFields) === 0) {
       throw new NoFieldsException('There are no fields available to insert with.');
     }
 
diff --git a/core/lib/Drupal/Core/FileTransfer/FTPExtension.php b/core/lib/Drupal/Core/FileTransfer/FTPExtension.php
index 39465ba..1855767 100644
--- a/core/lib/Drupal/Core/FileTransfer/FTPExtension.php
+++ b/core/lib/Drupal/Core/FileTransfer/FTPExtension.php
@@ -57,7 +57,7 @@ class FTPExtension extends FTP implements ChmodInterface {
       $list = array();
     }
     foreach ($list as $item){
-      if ($item == '.' || $item == '..') {
+      if ($item === '.' || $item === '..') {
         continue;
       }
       if (@ftp_chdir($this->connection, $item)){
diff --git a/core/lib/Drupal/Core/FileTransfer/FileTransfer.php b/core/lib/Drupal/Core/FileTransfer/FileTransfer.php
index 78d69d0..4c63d89 100644
--- a/core/lib/Drupal/Core/FileTransfer/FileTransfer.php
+++ b/core/lib/Drupal/Core/FileTransfer/FileTransfer.php
@@ -99,12 +99,12 @@ abstract class FileTransfer {
    *   The variable specified in $name.
    */
   function __get($name) {
-    if ($name == 'connection') {
+    if ($name === 'connection') {
       $this->connect();
       return $this->connection;
     }
 
-    if ($name == 'chroot') {
+    if ($name === 'chroot') {
       $this->setChroot();
       return $this->chroot;
     }
@@ -242,7 +242,7 @@ abstract class FileTransfer {
     $path = preg_replace('|^([a-z]{1}):|i', '', $path); // Strip out windows driveletter if its there.
     if ($strip_chroot) {
       if ($this->chroot && strpos($path, $this->chroot) === 0) {
-        $path = ($path == $this->chroot) ? '' : substr($path, strlen($this->chroot));
+        $path = ($path === $this->chroot) ? '' : substr($path, strlen($this->chroot));
       }
     }
     return $path;
@@ -259,7 +259,7 @@ abstract class FileTransfer {
   */
   function sanitizePath($path) {
     $path = str_replace('\\', '/', $path); // Windows path sanitization.
-    if (substr($path, -1) == '/') {
+    if (substr($path, -1) === '/') {
       $path = substr($path, 0, -1);
     }
     return $path;
diff --git a/core/lib/Drupal/Core/FileTransfer/SSH.php b/core/lib/Drupal/Core/FileTransfer/SSH.php
index c1bf991..df61b87 100644
--- a/core/lib/Drupal/Core/FileTransfer/SSH.php
+++ b/core/lib/Drupal/Core/FileTransfer/SSH.php
@@ -102,7 +102,7 @@ class SSH extends FileTransfer implements ChmodInterface {
     $directory = escapeshellarg($path);
     $cmd = "[ -d {$directory} ] && echo 'yes'";
     if ($output = @ssh2_exec($this->connection, $cmd)) {
-      if ($output == 'yes') {
+      if ($output === 'yes') {
         return TRUE;
       }
       return FALSE;
@@ -118,7 +118,7 @@ class SSH extends FileTransfer implements ChmodInterface {
     $file = escapeshellarg($path);
     $cmd = "[ -f {$file} ] && echo 'yes'";
     if ($output = @ssh2_exec($this->connection, $cmd)) {
-      if ($output == 'yes') {
+      if ($output === 'yes') {
         return TRUE;
       }
       return FALSE;
diff --git a/core/lib/Drupal/Core/Queue/Memory.php b/core/lib/Drupal/Core/Queue/Memory.php
index d741bda..bd7e1fc 100644
--- a/core/lib/Drupal/Core/Queue/Memory.php
+++ b/core/lib/Drupal/Core/Queue/Memory.php
@@ -63,7 +63,7 @@ class Memory implements QueueInterface {
    */
   public function claimItem($lease_time = 30) {
     foreach ($this->queue as $key => $item) {
-      if ($item->expire == 0) {
+      if ($item->expire === 0) {
         $item->expire = time() + $lease_time;
         $this->queue[$key] = $item;
         return $item;
diff --git a/core/lib/Drupal/Core/StreamWrapper/LocalStream.php b/core/lib/Drupal/Core/StreamWrapper/LocalStream.php
index 0cd76e0..390e24f 100644
--- a/core/lib/Drupal/Core/StreamWrapper/LocalStream.php
+++ b/core/lib/Drupal/Core/StreamWrapper/LocalStream.php
@@ -390,7 +390,7 @@ abstract class LocalStream implements StreamWrapperInterface {
     $target  = $this->getTarget($uri);
     $dirname = dirname($target);
 
-    if ($dirname == '.') {
+    if ($dirname === '.') {
       $dirname = '';
     }
 
diff --git a/core/lib/Drupal/Core/Updater/Updater.php b/core/lib/Drupal/Core/Updater/Updater.php
index 2dca5ba..c362959 100644
--- a/core/lib/Drupal/Core/Updater/Updater.php
+++ b/core/lib/Drupal/Core/Updater/Updater.php
@@ -99,7 +99,7 @@ class Updater {
       return FALSE;
     }
     foreach ($info_files as $info_file) {
-      if (drupal_substr($info_file->filename, 0, -5) == drupal_basename($directory)) {
+      if (drupal_substr($info_file->filename, 0, -5) === drupal_basename($directory)) {
         // Info file Has the same name as the directory, return it.
         return $info_file->uri;
       }
@@ -279,7 +279,7 @@ class Updater {
       if (!is_writable($parent_dir)) {
         @chmod($parent_dir, 0755);
         // It is expected that this will fail if the directory is owned by the
-        // FTP user. If the FTP user == web server, it will succeed.
+        // FTP user. If the FTP user === web server, it will succeed.
         try {
           $filetransfer->createDirectory($directory);
           $this->makeWorldReadable($filetransfer, $directory);
diff --git a/core/lib/Drupal/Core/Utility/SchemaCache.php b/core/lib/Drupal/Core/Utility/SchemaCache.php
index d8c3a50..ffb66c4 100644
--- a/core/lib/Drupal/Core/Utility/SchemaCache.php
+++ b/core/lib/Drupal/Core/Utility/SchemaCache.php
@@ -19,7 +19,7 @@ class SchemaCache extends CacheArray {
    */
   public function __construct() {
     // Cache by request method.
-    parent::__construct('schema:runtime:' . ($_SERVER['REQUEST_METHOD'] == 'GET'), 'cache');
+    parent::__construct('schema:runtime:' . ($_SERVER['REQUEST_METHOD'] === 'GET'), 'cache');
   }
 
   /**
