diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 0f6a6c6..fc599b1 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -671,7 +671,7 @@ function drupal_valid_test_ua($new_prefix = NULL) {
   $user_agent = isset($_COOKIE['SIMPLETEST_USER_AGENT']) ? $_COOKIE['SIMPLETEST_USER_AGENT'] : $http_user_agent;
   if (isset($user_agent) && preg_match("/^(simpletest\d+);(.+);(.+);(.+)$/", $user_agent, $matches)) {
     list(, $prefix, $time, $salt, $hmac) = $matches;
-    $check_string =  $prefix . ';' . $time . ';' . $salt;
+    $check_string = $prefix . ';' . $time . ';' . $salt;
     // Read the hash salt prepared by drupal_generate_test_ua().
     // This function is called before settings.php is read and Drupal's error
     // handlers are set up. While Drupal's error handling may be properly
diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index 890f7be..f643bbf 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -871,7 +871,7 @@ function install_get_form($form_id, array &$install_state) {
   // Ensure the form will not redirect, since install_run_tasks() uses a custom
   // redirection logic.
   $form_state = (new FormState())
-    ->addBuildInfo('args', [&$install_state])
+    ->addBuildInfo('args', [ & $install_state])
     ->disableRedirect();
   $form_builder = \Drupal::formBuilder();
   if ($install_state['interactive']) {
@@ -1808,7 +1808,7 @@ function install_check_translations($langcode, $server_pattern) {
   $writable = FALSE;
   // @todo: Make this configurable.
   $site_path = \Drupal::service('site.path');
-  $files_directory =  $site_path . '/files';
+  $files_directory = $site_path . '/files';
   $translations_directory = $site_path . '/files/translations';
   $translations_directory_exists = FALSE;
   $online = FALSE;
diff --git a/core/includes/install.inc b/core/includes/install.inc
index 08f6ede..ffbba56 100644
--- a/core/includes/install.inc
+++ b/core/includes/install.inc
@@ -492,7 +492,7 @@ function drupal_install_config_directories() {
   // that they can later be added to git. Since this directory is auto-
   // created, we have to write out the README rather than just adding it
   // to the drupal core repo.
-  $text =  'This directory contains configuration to be imported into your Drupal site. To make this configuration active, visit admin/config/development/configuration/sync.'  .' For information about deploying configuration between servers, see https://www.drupal.org/documentation/administer/config';
+  $text = 'This directory contains configuration to be imported into your Drupal site. To make this configuration active, visit admin/config/development/configuration/sync.'  .' For information about deploying configuration between servers, see https://www.drupal.org/documentation/administer/config';
   file_put_contents(config_get_config_directory(CONFIG_STAGING_DIRECTORY) . '/README.txt', $text);
 }
 
diff --git a/core/includes/theme.inc b/core/includes/theme.inc
index 24c9d7e..a463fc0 100644
--- a/core/includes/theme.inc
+++ b/core/includes/theme.inc
@@ -1221,7 +1221,7 @@ function template_preprocess_html(&$variables) {
   // Add a variable for the root path. This can be used to create a class and
   // theme the page depending on the current path (e.g. node, admin, user) as
   // well as more specific data like path-frontpage.
-  $is_front_page =  \Drupal::service('path.matcher')->isFrontPage();
+  $is_front_page = \Drupal::service('path.matcher')->isFrontPage();
 
   if ($is_front_page) {
     $variables['root_path'] = FALSE;
diff --git a/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php b/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php
index 387c401..845c700 100644
--- a/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php
+++ b/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php
@@ -186,7 +186,7 @@ protected function _diag($xoff, $xlim, $yoff, $ylim, $nchunks) {
       }
     }
     $this->lcs = 0;
-    $this->seq[0]= $yoff - 1;
+    $this->seq[0] = $yoff - 1;
     $this->in_seq = array();
     $ymids[0] = array();
 
@@ -195,11 +195,11 @@ protected function _diag($xoff, $xlim, $yoff, $ylim, $nchunks) {
     for ($chunk = 0; $chunk < $nchunks; $chunk++) {
       if ($chunk > 0) {
         for ($i = 0; $i <= $this->lcs; $i++) {
-          $ymids[$i][$chunk-1] = $this->seq[$i];
+          $ymids[$i][$chunk - 1] = $this->seq[$i];
         }
       }
 
-      $x1 = $xoff + (int)(($numer + ($xlim-$xoff)*$chunk) / $nchunks);
+      $x1 = $xoff + (int)(($numer + ($xlim - $xoff) * $chunk) / $nchunks);
       for ( ; $x < $x1; $x++) {
         $line = $flip ? $this->yv[$x] : $this->xv[$x];
         if (empty($ymatches[$line])) {
@@ -211,12 +211,12 @@ protected function _diag($xoff, $xlim, $yoff, $ylim, $nchunks) {
           if (empty($this->in_seq[$y])) {
             $k = $this->_lcs_pos($y);
             $this::USE_ASSERTS && assert($k > 0);
-            $ymids[$k] = $ymids[$k-1];
+            $ymids[$k] = $ymids[$k - 1];
             break;
           }
         }
         while (list ($junk, $y) = each($matches)) {
-          if ($y > $this->seq[$k-1]) {
+          if ($y > $this->seq[$k - 1]) {
             $this::USE_ASSERTS && assert($y < $this->seq[$k]);
             // Optimization: this is a common case:
             // next match is just replacing previous match.
@@ -227,7 +227,7 @@ protected function _diag($xoff, $xlim, $yoff, $ylim, $nchunks) {
           elseif (empty($this->in_seq[$y])) {
             $k = $this->_lcs_pos($y);
             $this::USE_ASSERTS && assert($k > 0);
-            $ymids[$k] = $ymids[$k-1];
+            $ymids[$k] = $ymids[$k - 1];
           }
         }
       }
diff --git a/core/lib/Drupal/Component/PhpStorage/FileStorage.php b/core/lib/Drupal/Component/PhpStorage/FileStorage.php
index 7705f96..de73b32 100644
--- a/core/lib/Drupal/Component/PhpStorage/FileStorage.php
+++ b/core/lib/Drupal/Component/PhpStorage/FileStorage.php
@@ -55,7 +55,7 @@ public function save($name, $code) {
     $path = $this->getFullPath($name);
     $directory = dirname($path);
     if ($this->ensureDirectory($directory)) {
-      $htaccess_path =  $directory . '/.htaccess';
+      $htaccess_path = $directory . '/.htaccess';
       if (!file_exists($htaccess_path) && file_put_contents($htaccess_path, static::htaccessLines())) {
         @chmod($htaccess_path, 0444);
       }
@@ -132,7 +132,7 @@ public static function htaccessLines($private = TRUE) {
    */
   protected function ensureDirectory($directory, $mode = 0777) {
     if ($this->createDirectory($directory, $mode)) {
-      $htaccess_path =  $directory . '/.htaccess';
+      $htaccess_path = $directory . '/.htaccess';
       if (!file_exists($htaccess_path) && file_put_contents($htaccess_path, static::htaccessLines())) {
         @chmod($htaccess_path, 0444);
       }
diff --git a/core/lib/Drupal/Component/Utility/Random.php b/core/lib/Drupal/Component/Utility/Random.php
index 356eefd..78f9ab9 100644
--- a/core/lib/Drupal/Component/Utility/Random.php
+++ b/core/lib/Drupal/Component/Utility/Random.php
@@ -144,7 +144,7 @@ public function name($length = 8, $unique = FALSE) {
    * @return string
    */
   public function word($length) {
-    mt_srand((double) microtime()*1000000);
+    mt_srand((double) microtime() * 1000000);
 
     $vowels = array("a", "e", "i", "o", "u");
     $cons = array("b", "c", "d", "g", "h", "j", "k", "l", "m", "n", "p", "r", "s", "t", "u", "v", "w", "tr",
diff --git a/core/lib/Drupal/Core/Access/AccessResult.php b/core/lib/Drupal/Core/Access/AccessResult.php
index de15945..67c62f4 100644
--- a/core/lib/Drupal/Core/Access/AccessResult.php
+++ b/core/lib/Drupal/Core/Access/AccessResult.php
@@ -87,7 +87,7 @@ public static function allowedIf($condition) {
    *   will be TRUE.
    */
   public static function forbiddenIf($condition) {
-    return $condition ? static::forbidden(): static::neutral();
+    return $condition ? static::forbidden() : static::neutral();
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Archiver/Zip.php b/core/lib/Drupal/Core/Archiver/Zip.php
index 15500f7..675507d 100644
--- a/core/lib/Drupal/Core/Archiver/Zip.php
+++ b/core/lib/Drupal/Core/Archiver/Zip.php
@@ -75,7 +75,7 @@ public function extract($path, Array $files = array()) {
    */
   public function listContents() {
     $files = array();
-    for ($i=0; $i < $this->zip->numFiles; $i++) {
+    for ($i = 0; $i < $this->zip->numFiles; $i++) {
       $files[] = $this->zip->getNameIndex($i);
     }
     return $files;
diff --git a/core/lib/Drupal/Core/Asset/JsCollectionRenderer.php b/core/lib/Drupal/Core/Asset/JsCollectionRenderer.php
index 70832e9..cb076b0 100644
--- a/core/lib/Drupal/Core/Asset/JsCollectionRenderer.php
+++ b/core/lib/Drupal/Core/Asset/JsCollectionRenderer.php
@@ -73,7 +73,7 @@ public function render(array $js_assets) {
             'type' => 'application/json',
             'data-drupal-selector' => 'drupal-settings-json',
           );
-          $element['#value'] =  Json::encode($js_asset['data']);
+          $element['#value'] = Json::encode($js_asset['data']);
           break;
 
         case 'file':
diff --git a/core/lib/Drupal/Core/Config/ConfigFactory.php b/core/lib/Drupal/Core/Config/ConfigFactory.php
index 6ec8a5c..2da386a 100644
--- a/core/lib/Drupal/Core/Config/ConfigFactory.php
+++ b/core/lib/Drupal/Core/Config/ConfigFactory.php
@@ -276,7 +276,7 @@ public function getCacheKeys() {
     // $this->configFactoryOverrides, add cache keys for each.
     $keys[] = 'global_overrides';
     foreach($this->configFactoryOverrides as $override) {
-      $keys[] =  $override->getCacheSuffix();
+      $keys[] = $override->getCacheSuffix();
     }
     return $keys;
   }
diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php b/core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php
index a762de9..77f8065 100644
--- a/core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php
+++ b/core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php
@@ -169,7 +169,7 @@ public function getDependentEntities($type, $name) {
       // If checking content, module, or theme dependencies, discover which
       // entities are dependent on the entities that have a direct dependency.
       foreach ($dependent_entities as $entity) {
-        $entities_to_check[] =  $entity->getConfigDependencyName();
+        $entities_to_check[] = $entity->getConfigDependencyName();
       }
     }
     $dependencies = array_merge($this->createGraphConfigEntityDependencies($entities_to_check), $dependent_entities);
diff --git a/core/lib/Drupal/Core/Config/StorableConfigBase.php b/core/lib/Drupal/Core/Config/StorableConfigBase.php
index a6c3287..52e760f 100644
--- a/core/lib/Drupal/Core/Config/StorableConfigBase.php
+++ b/core/lib/Drupal/Core/Config/StorableConfigBase.php
@@ -196,7 +196,7 @@ protected function castValue($key, $value) {
         // we have to special case the meaning of an empty string for numeric
         // types. In PHP this would be casted to a 0 but for the purposes of
         // configuration we need to treat this as a NULL.
-        $empty_value =  $value === '' && ($element instanceof IntegerInterface || $element instanceof FloatInterface);
+        $empty_value = $value === '' && ($element instanceof IntegerInterface || $element instanceof FloatInterface);
 
         if ($value === NULL || $empty_value) {
           $value = NULL;
diff --git a/core/lib/Drupal/Core/Database/Query/Select.php b/core/lib/Drupal/Core/Database/Query/Select.php
index 3be5a2f..67ee6a5 100644
--- a/core/lib/Drupal/Core/Database/Query/Select.php
+++ b/core/lib/Drupal/Core/Database/Query/Select.php
@@ -824,7 +824,7 @@ public function __toString() {
 
       // Don't use the AS keyword for table aliases, as some
       // databases don't support it (e.g., Oracle).
-      $query .=  $table_string . ' ' . $this->connection->escapeTable($table['alias']);
+      $query .= $table_string . ' ' . $this->connection->escapeTable($table['alias']);
 
       if (!empty($table['condition'])) {
         $query .= ' ON ' . $table['condition'];
diff --git a/core/lib/Drupal/Core/Datetime/Element/Datelist.php b/core/lib/Drupal/Core/Datetime/Element/Datelist.php
index 2caa4ca..10c1f68 100644
--- a/core/lib/Drupal/Core/Datetime/Element/Datelist.php
+++ b/core/lib/Drupal/Core/Datetime/Element/Datelist.php
@@ -93,7 +93,7 @@ public static function valueCallback(&$element, $input, FormStateInterface $form
                 break;
 
               case 'hour':
-                $format = in_array('ampm', $element['#date_part_order']) ? 'g': 'G';
+                $format = in_array('ampm', $element['#date_part_order']) ? 'g' : 'G';
                 break;
 
               case 'minute':
@@ -223,7 +223,7 @@ public static function processDatelist(&$element, FormStateInterface $form_state
           break;
 
         case 'hour':
-          $format = in_array('ampm', $element['#date_part_order']) ? 'g': 'G';
+          $format = in_array('ampm', $element['#date_part_order']) ? 'g' : 'G';
           $options = $date_helper->hours($format, $element['#required']);
           $title = t('Hour');
           break;
diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php
index 90b1755..780a021 100644
--- a/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php
+++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/ProxyServicesPass.php
@@ -57,7 +57,7 @@ public function process(ContainerBuilder $container) {
             $root_namespace_dir = $namespaces[$root_namespace];
           }
 
-          $message =<<<EOF
+          $message = <<<EOF
 
 Missing proxy class '$proxy_class' for lazy service '$service_id'.
 Use the following command to generate the proxy class:
diff --git a/core/lib/Drupal/Core/Entity/Query/QueryBase.php b/core/lib/Drupal/Core/Entity/Query/QueryBase.php
index 6f3d6aa..daac794 100644
--- a/core/lib/Drupal/Core/Entity/Query/QueryBase.php
+++ b/core/lib/Drupal/Core/Entity/Query/QueryBase.php
@@ -310,7 +310,7 @@ protected function initializePager() {
    */
   public function tableSort(&$headers) {
     // If 'field' is not initialized, the header columns aren't clickable.
-    foreach ($headers as $key =>$header) {
+    foreach ($headers as $key => $header) {
       if (is_array($header) && isset($header['specifier'])) {
         $headers[$key]['field'] = '';
       }
diff --git a/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php b/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php
index e1a976a..d234dbb 100644
--- a/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php
+++ b/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php
@@ -208,7 +208,7 @@ public function addField($field, $type, $langcode) {
           $entity_type = $this->entityManager->getDefinition($entity_type_id);
           $field_storage_definitions = $this->entityManager->getFieldStorageDefinitions($entity_type_id);
           // Add the new entity base table using the table and sql column.
-          $join_condition= '%alias.' . $entity_type->getKey('id') . " = $table.$sql_column";
+          $join_condition = '%alias.' . $entity_type->getKey('id') . " = $table.$sql_column";
           $base_table = $this->sqlQuery->leftJoin($entity_type->getBaseTable(), NULL, $join_condition);
           $propertyDefinitions = array();
           $key++;
diff --git a/core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php b/core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php
index 472ed20..5f8ffd7 100644
--- a/core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php
+++ b/core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php
@@ -205,7 +205,7 @@ public function getFieldColumnName(FieldStorageDefinitionInterface $storage_defi
     $field_name = $storage_definition->getName();
 
     if ($this->allowsSharedTableStorage($storage_definition)) {
-      $column_name = count($storage_definition->getColumns()) == 1 ? $field_name :  $field_name . '__' . $property_name;
+      $column_name = count($storage_definition->getColumns()) == 1 ? $field_name : $field_name . '__' . $property_name;
     }
     elseif ($this->requiresDedicatedTableStorage($storage_definition)) {
       $column_name = !in_array($property_name, $this->getReservedColumns()) ? $field_name . '_' . $property_name : $property_name;
diff --git a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
index e1283be..8bba11c 100644
--- a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
+++ b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
@@ -1175,7 +1175,7 @@ protected function saveToDedicatedTables(ContentEntityInterface $entity, $update
       $vid = $id;
     }
 
-    $original = !empty($entity->original) ? $entity->original: NULL;
+    $original = !empty($entity->original) ? $entity->original : NULL;
 
     // Determine which fields should be actually stored.
     $definitions = $this->entityManager->getFieldDefinitions($entity_type, $bundle);
diff --git a/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php b/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php
index 7d1c4b7..d6d8790 100644
--- a/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php
+++ b/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php
@@ -71,7 +71,7 @@ public function buildResponse(Request $request, array $form, FormStateInterface
     if (empty($callback) || !is_callable($callback)) {
       throw new HttpException(500, 'The specified #ajax callback is empty or not callable.');
     }
-    $result = call_user_func_array($callback, [&$form, &$form_state, $request]);
+    $result = call_user_func_array($callback, [ & $form, &$form_state, $request]);
 
     // If the callback is an #ajax callback, the result is a render array, and
     // we need to turn it into an AJAX response, so that we can add any commands
diff --git a/core/lib/Drupal/Core/Form/FormBuilder.php b/core/lib/Drupal/Core/Form/FormBuilder.php
index adf4c86..50708d1 100644
--- a/core/lib/Drupal/Core/Form/FormBuilder.php
+++ b/core/lib/Drupal/Core/Form/FormBuilder.php
@@ -993,7 +993,7 @@ public function doBuildForm($form_id, &$element, FormStateInterface &$form_state
 
       // Assign a decimal placeholder weight to preserve original array order.
       if (!isset($element[$key]['#weight'])) {
-        $element[$key]['#weight'] = $count/1000;
+        $element[$key]['#weight'] = $count / 1000;
       }
       else {
         // If one of the child elements has a weight then we will need to sort
diff --git a/core/lib/Drupal/Core/Installer/Form/SelectLanguageForm.php b/core/lib/Drupal/Core/Installer/Form/SelectLanguageForm.php
index 0342d46..4071c06 100644
--- a/core/lib/Drupal/Core/Installer/Form/SelectLanguageForm.php
+++ b/core/lib/Drupal/Core/Installer/Form/SelectLanguageForm.php
@@ -83,7 +83,7 @@ public function buildForm(array $form, FormStateInterface $form_state, $install_
       ),
     );
     $form['actions'] = array('#type' => 'actions');
-    $form['actions']['submit'] =  array(
+    $form['actions']['submit'] = array(
       '#type' => 'submit',
       '#value' => 'Save and continue',
       '#button_type' => 'primary',
diff --git a/core/lib/Drupal/Core/Installer/Form/SelectProfileForm.php b/core/lib/Drupal/Core/Installer/Form/SelectProfileForm.php
index 9be9d13..f213ded 100644
--- a/core/lib/Drupal/Core/Installer/Form/SelectProfileForm.php
+++ b/core/lib/Drupal/Core/Installer/Form/SelectProfileForm.php
@@ -77,7 +77,7 @@ public function buildForm(array $form, FormStateInterface $form_state, $install_
       $form['profile'][$profile_name]['#description'] = isset($profiles[$profile_name]['description']) ? $this->t($profiles[$profile_name]['description']) : '';
     }
     $form['actions'] = array('#type' => 'actions');
-    $form['actions']['submit'] =  array(
+    $form['actions']['submit'] = array(
       '#type' => 'submit',
       '#value' => $this->t('Save and continue'),
       '#button_type' => 'primary',
diff --git a/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php b/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php
index 9e18f71..ab7e7e9 100644
--- a/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php
+++ b/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php
@@ -136,7 +136,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
     // distract from the message that the Drupal installation has completed
     // successfully.)
     $post_params = $this->getRequest()->request->all();
-    if (empty($post_params) && (!drupal_verify_install_file($this->root . '/' . $settings_file, FILE_EXIST|FILE_READABLE|FILE_NOT_WRITABLE) || !drupal_verify_install_file($this->root . '/' . $settings_dir, FILE_NOT_WRITABLE, 'dir'))) {
+    if (empty($post_params) && (!drupal_verify_install_file($this->root . '/' . $settings_file, FILE_EXIST | FILE_READABLE | FILE_NOT_WRITABLE) || !drupal_verify_install_file($this->root . '/' . $settings_dir, FILE_NOT_WRITABLE, 'dir'))) {
       drupal_set_message(t('All necessary changes to %dir and %file have been made, so you should remove write permissions to them now in order to avoid security risks. If you are unsure how to do so, consult the <a href=":handbook_url">online handbook</a>.', array('%dir' => $settings_dir, '%file' => $settings_file, ':handbook_url' => 'https://www.drupal.org/server-permissions')), 'warning');
     }
 
diff --git a/core/lib/Drupal/Core/Menu/LocalTaskManager.php b/core/lib/Drupal/Core/Menu/LocalTaskManager.php
index 4cacddb..35b6233 100644
--- a/core/lib/Drupal/Core/Menu/LocalTaskManager.php
+++ b/core/lib/Drupal/Core/Menu/LocalTaskManager.php
@@ -183,7 +183,7 @@ public function getTitle(LocalTaskInterface $local_task) {
    * {@inheritdoc}
    */
   public function getDefinitions() {
-    $definitions =  parent::getDefinitions();
+    $definitions = parent::getDefinitions();
 
     $count = 0;
     foreach ($definitions as &$definition) {
diff --git a/core/lib/Drupal/Core/Password/PhpassHashedPassword.php b/core/lib/Drupal/Core/Password/PhpassHashedPassword.php
index 2df9e43..68c771c 100644
--- a/core/lib/Drupal/Core/Password/PhpassHashedPassword.php
+++ b/core/lib/Drupal/Core/Password/PhpassHashedPassword.php
@@ -192,7 +192,7 @@ protected function crypt($algo, $password, $setting) {
     } while (--$count);
 
     $len = strlen($hash);
-    $output =  $setting . $this->base64Encode($hash, $len);
+    $output = $setting . $this->base64Encode($hash, $len);
     // $this->base64Encode() of a 16 byte MD5 will always be 22 characters.
     // $this->base64Encode() of a 64 byte sha512 will always be 86 characters.
     $expected = 12 + ceil((8 * $len) / 6);
diff --git a/core/lib/Drupal/Core/Render/Element/PasswordConfirm.php b/core/lib/Drupal/Core/Render/Element/PasswordConfirm.php
index 026cb9a..27e5296 100644
--- a/core/lib/Drupal/Core/Render/Element/PasswordConfirm.php
+++ b/core/lib/Drupal/Core/Render/Element/PasswordConfirm.php
@@ -70,7 +70,7 @@ public static function valueCallback(&$element, $input, FormStateInterface $form
    * Expand a password_confirm field into two text boxes.
    */
   public static function processPasswordConfirm(&$element, FormStateInterface $form_state, &$complete_form) {
-    $element['pass1'] =  array(
+    $element['pass1'] = array(
       '#type' => 'password',
       '#title' => t('Password'),
       '#value' => empty($element['#value']) ? NULL : $element['#value']['pass1'],
@@ -78,7 +78,7 @@ public static function processPasswordConfirm(&$element, FormStateInterface $for
       '#attributes' => array('class' => array('password-field', 'js-password-field')),
       '#error_no_message' => TRUE,
     );
-    $element['pass2'] =  array(
+    $element['pass2'] = array(
       '#type' => 'password',
       '#title' => t('Confirm password'),
       '#value' => empty($element['#value']) ? NULL : $element['#value']['pass2'],
diff --git a/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php b/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
index 4013d0f..cf79b47 100644
--- a/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
+++ b/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
@@ -81,11 +81,11 @@ public function stream_open($uri, $mode, $options, &$opened_path) {
    */
   public function stream_lock($operation) {
     // Disallow exclusive lock or non-blocking lock requests
-    if (in_array($operation, array(LOCK_EX, LOCK_EX|LOCK_NB))) {
+    if (in_array($operation, array(LOCK_EX, LOCK_EX | LOCK_NB))) {
       trigger_error('stream_lock() exclusive lock operations not supported for read-only stream wrappers', E_USER_WARNING);
       return FALSE;
     }
-    if (in_array($operation, array(LOCK_SH, LOCK_UN, LOCK_SH|LOCK_NB))) {
+    if (in_array($operation, array(LOCK_SH, LOCK_UN, LOCK_SH | LOCK_NB))) {
       return flock($this->handle, $operation);
     }
 
diff --git a/core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php b/core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php
index 67e6430..4c59101 100644
--- a/core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php
+++ b/core/lib/Drupal/Core/StreamWrapper/ReadOnlyStream.php
@@ -116,11 +116,11 @@ public function stream_open($uri, $mode, $options, &$opened_path) {
    * @see http://php.net/manual/streamwrapper.stream-lock.php
    */
   public function stream_lock($operation) {
-    if (in_array($operation, array(LOCK_EX, LOCK_EX|LOCK_NB))) {
+    if (in_array($operation, array(LOCK_EX, LOCK_EX | LOCK_NB))) {
       trigger_error('stream_lock() exclusive lock operations not supported for read-only stream wrappers', E_USER_WARNING);
       return FALSE;
     }
-    if (in_array($operation, array(LOCK_SH, LOCK_UN, LOCK_SH|LOCK_NB))) {
+    if (in_array($operation, array(LOCK_SH, LOCK_UN, LOCK_SH | LOCK_NB))) {
       return flock($this->handle, $operation);
     }
 
diff --git a/core/misc/ajax.js b/core/misc/ajax.js
index 4dba53e..01d47dc 100644
--- a/core/misc/ajax.js
+++ b/core/misc/ajax.js
@@ -140,9 +140,9 @@
     responseText = responseText.replace(/[\n]+\s+/g, "\n");
 
     // We don't need readyState except for status == 0.
-    readyStateText = xmlhttp.status === 0 ? ("\n" + Drupal.t("ReadyState: !readyState", {'!readyState': xmlhttp.readyState})) : "";
+    readyStateText = xmlhttp.status === 0 ? ("\n" + Drupal.t("ReadyState: !readyState", {'!readyState' : xmlhttp.readyState})) : "";
 
-    customMessage = customMessage ? ("\n" + Drupal.t("CustomMessage: !customMessage", {'!customMessage': customMessage})) : "";
+    customMessage = customMessage ? ("\n" + Drupal.t("CustomMessage: !customMessage", {'!customMessage' : customMessage})) : "";
 
     /**
      * Formatted and translated error message.
diff --git a/core/modules/aggregator/src/Tests/AggregatorTitleTest.php b/core/modules/aggregator/src/Tests/AggregatorTitleTest.php
index cfa9975..c2a2085 100644
--- a/core/modules/aggregator/src/Tests/AggregatorTitleTest.php
+++ b/core/modules/aggregator/src/Tests/AggregatorTitleTest.php
@@ -78,7 +78,7 @@ public function testStringFormatter() {
     $this->assertTrue(strpos($result, $aggregator_feed->getUrl()) === FALSE);
 
     // Verify aggregator item title with and without links.
-    $build = $aggregator_item->{$this->fieldName}->view(['type' => 'aggregator_title', 'settings' => ['display_as_link' =>TRUE]]);
+    $build = $aggregator_item->{$this->fieldName}->view(['type' => 'aggregator_title', 'settings' => ['display_as_link' => TRUE]]);
     $result = $this->render($build);
 
     $this->assertTrue(strpos($result, 'test title'));
diff --git a/core/modules/breakpoint/src/BreakpointManager.php b/core/modules/breakpoint/src/BreakpointManager.php
index 66a0830..a3b6772 100644
--- a/core/modules/breakpoint/src/BreakpointManager.php
+++ b/core/modules/breakpoint/src/BreakpointManager.php
@@ -200,7 +200,7 @@ public function getGroups() {
     // Get the labels. This is not cacheable due to translation.
     $group_labels = array();
     foreach ($groups as $group) {
-      $group_labels[$group] =  $this->getGroupLabel($group);
+      $group_labels[$group] = $this->getGroupLabel($group);
     }
     asort($group_labels);
     return $group_labels;
diff --git a/core/modules/comment/src/CommentStatistics.php b/core/modules/comment/src/CommentStatistics.php
index c37641c..a67574d 100644
--- a/core/modules/comment/src/CommentStatistics.php
+++ b/core/modules/comment/src/CommentStatistics.php
@@ -70,7 +70,7 @@ public function __construct(Connection $database, AccountInterface $current_user
    */
   public function read($entities, $entity_type, $accurate = TRUE) {
     $options = $accurate ? array() : array('target' => 'replica');
-    $stats =  $this->database->select('comment_entity_statistics', 'ces', $options)
+    $stats = $this->database->select('comment_entity_statistics', 'ces', $options)
       ->fields('ces')
       ->condition('ces.entity_id', array_keys($entities), 'IN')
       ->condition('ces.entity_type', $entity_type)
diff --git a/core/modules/comment/src/CommentTypeForm.php b/core/modules/comment/src/CommentTypeForm.php
index 3c7ef6a..8f49740 100644
--- a/core/modules/comment/src/CommentTypeForm.php
+++ b/core/modules/comment/src/CommentTypeForm.php
@@ -170,7 +170,7 @@ public function save(array $form, FormStateInterface $form_state) {
     else {
       $this->commentManager->addBodyField($comment_type->id());
       drupal_set_message(t('Comment type %label has been added.', array('%label' => $comment_type->label())));
-      $this->logger->notice('Comment type %label has been added.', array('%label' => $comment_type->label(), 'link' =>  $edit_link));
+      $this->logger->notice('Comment type %label has been added.', array('%label' => $comment_type->label(), 'link' => $edit_link));
     }
 
     $form_state->setRedirectUrl($comment_type->urlInfo('collection'));
diff --git a/core/modules/comment/src/Plugin/views/field/Depth.php b/core/modules/comment/src/Plugin/views/field/Depth.php
index 09f6525..90ae1cf 100644
--- a/core/modules/comment/src/Plugin/views/field/Depth.php
+++ b/core/modules/comment/src/Plugin/views/field/Depth.php
@@ -28,7 +28,7 @@ public function getItems(ResultRow $values) {
     foreach ($items as &$item) {
       // Work out the depth of this comment.
       $comment_thread = $item['rendered']['#markup'];
-      $item['rendered']['#markup'] =  count(explode('.', $comment_thread)) - 1;
+      $item['rendered']['#markup'] = count(explode('.', $comment_thread)) - 1;
     }
     return $items;
   }
diff --git a/core/modules/config/src/Tests/ConfigOverridesPriorityTest.php b/core/modules/config/src/Tests/ConfigOverridesPriorityTest.php
index e42545d..067b973 100644
--- a/core/modules/config/src/Tests/ConfigOverridesPriorityTest.php
+++ b/core/modules/config/src/Tests/ConfigOverridesPriorityTest.php
@@ -28,7 +28,7 @@ class ConfigOverridesPriorityTest extends KernelTestBase {
   public function testOverridePriorities() {
     $GLOBALS['config_test_run_module_overrides'] = FALSE;
 
-    $non_overridden_mail =  'site@example.com';
+    $non_overridden_mail = 'site@example.com';
     $language_overridden_mail = 'french@example.com';
 
     $language_overridden_name = 'French site name';
diff --git a/core/modules/config/src/Tests/ConfigSchemaTest.php b/core/modules/config/src/Tests/ConfigSchemaTest.php
index a94e26a..facb09a 100644
--- a/core/modules/config/src/Tests/ConfigSchemaTest.php
+++ b/core/modules/config/src/Tests/ConfigSchemaTest.php
@@ -99,7 +99,7 @@ function testSchemaMapping() {
     $expected['label'] = 'Maintenance mode';
     $expected['class'] = '\Drupal\Core\Config\Schema\Mapping';
     $expected['mapping']['message'] = array(
-      'label' =>  'Message to display when in maintenance mode',
+      'label' => 'Message to display when in maintenance mode',
       'type' => 'text',
     );
     $expected['mapping']['langcode'] = array(
@@ -121,7 +121,7 @@ function testSchemaMapping() {
       'label' => 'Language code',
     );
     $expected['mapping']['label'] = array(
-      'label' =>  'Label',
+      'label' => 'Label',
       'type' => 'label',
     );
     $expected['mapping']['irrelevant'] = array(
@@ -205,7 +205,7 @@ function testSchemaMapping() {
     $effects = \Drupal::service('config.typed')->get('image.style.medium')->get('effects');
     $definition = $effects->get('bddf0d06-42f9-4c75-a700-a33cafa25ea0')->get('data')->getDataDefinition()->toArray();
     // This should be the schema for image.effect.image_scale, reuse previous one.
-    $expected['type'] =  'image.effect.image_scale';
+    $expected['type'] = 'image.effect.image_scale';
 
     $this->assertEqual($definition, $expected, 'Retrieved the right metadata for the first effect of image.style.medium');
 
diff --git a/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php b/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php
index fceb41d..112df5a 100644
--- a/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php
+++ b/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php
@@ -120,7 +120,7 @@ protected function doMenuListTest() {
     $edit = array(
       'id' => $menu_name,
       'description' => '',
-      'label' =>  $label,
+      'label' => $label,
     );
     // Create the menu by posting the form.
     $this->drupalPostForm('admin/structure/menu/add', $edit, t('Save'));
diff --git a/core/modules/contact/tests/drupal-7.contact.database.php b/core/modules/contact/tests/drupal-7.contact.database.php
index ed8e5ba..494e430 100644
--- a/core/modules/contact/tests/drupal-7.contact.database.php
+++ b/core/modules/contact/tests/drupal-7.contact.database.php
@@ -25,7 +25,7 @@
 ))
 ->values(array(
   'category' => 'Upgrade test',
-  'recipients'=> 'test1@example.com,test2@example.com',
+  'recipients' => 'test1@example.com,test2@example.com',
   'reply' => 'Test reply',
   'weight' => 1,
   'selected' => 1,
diff --git a/core/modules/contact/tests/src/Unit/MailHandlerTest.php b/core/modules/contact/tests/src/Unit/MailHandlerTest.php
index 61634f9..1a9fe20 100644
--- a/core/modules/contact/tests/src/Unit/MailHandlerTest.php
+++ b/core/modules/contact/tests/src/Unit/MailHandlerTest.php
@@ -369,7 +369,7 @@ protected function getAuthenticatedMockMessage($copy_sender = FALSE) {
     $message->expects($this->once())
       ->method('copySender')
       ->willReturn($copy_sender);
-    $recipient =$this->getMock('\Drupal\user\UserInterface');
+    $recipient = $this->getMock('\Drupal\user\UserInterface');
     $recipient->expects($this->once())
       ->method('getEmail')
       ->willReturn('user2@drupal.org');
diff --git a/core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php b/core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php
index 91d4314..16e70b2 100644
--- a/core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php
+++ b/core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php
@@ -69,7 +69,7 @@ protected function alterRoutes(RouteCollection $collection) {
           'entity_type_id' => $entity_type_id,
         ),
         array(
-          '_entity_access' =>  $entity_type_id . '.view',
+          '_entity_access' => $entity_type_id . '.view',
           '_access_content_translation_overview' => $entity_type_id,
         ),
         array(
@@ -95,7 +95,7 @@ protected function alterRoutes(RouteCollection $collection) {
 
         ),
         array(
-          '_entity_access' =>  $entity_type_id . '.view',
+          '_entity_access' => $entity_type_id . '.view',
           '_access_content_translation_manage' => 'create',
         ),
         array(
diff --git a/core/modules/contextual/src/Tests/ContextualUnitTest.php b/core/modules/contextual/src/Tests/ContextualUnitTest.php
index f164051..fff6378 100644
--- a/core/modules/contextual/src/Tests/ContextualUnitTest.php
+++ b/core/modules/contextual/src/Tests/ContextualUnitTest.php
@@ -51,7 +51,7 @@ function _contextual_links_id_testcases() {
     $tests[] = array(
       'links' => array(
         'foo' => array(
-          'route_parameters'=> array(
+          'route_parameters' => array(
             'bar',
             'key' => 'baz',
             'qux',
diff --git a/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php b/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
index e277c14..4e47c71 100644
--- a/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
+++ b/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
@@ -100,12 +100,12 @@ public static function processDefaultValue($default_value, FieldableEntityInterf
       // A default value should be in the format and timezone used for date
       // storage.
       $date = new DrupalDateTime($default_value[0]['default_date'], DATETIME_STORAGE_TIMEZONE);
-      $storage_format = $definition->getSetting('datetime_type') == DateTimeItem::DATETIME_TYPE_DATE ? DATETIME_DATE_STORAGE_FORMAT: DATETIME_DATETIME_STORAGE_FORMAT;
+      $storage_format = $definition->getSetting('datetime_type') == DateTimeItem::DATETIME_TYPE_DATE ? DATETIME_DATE_STORAGE_FORMAT : DATETIME_DATETIME_STORAGE_FORMAT;
       $value = $date->format($storage_format);
       // We only provide a default value for the first item, as do all fields.
       // Otherwise, there is no way to clear out unwanted values on multiple value
       // fields.
-      $default_value =  array(
+      $default_value = array(
         array(
           'value' => $value,
           'date' => $date,
diff --git a/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItem.php b/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItem.php
index a7dd1c3..e727720 100644
--- a/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItem.php
+++ b/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItem.php
@@ -110,7 +110,7 @@ public static function generateSampleValue(FieldDefinitionInterface $field_defin
 
     // Just pick a date in the past year. No guidance is provided by this Field
     // type.
-    $timestamp = REQUEST_TIME - mt_rand(0, 86400*365);
+    $timestamp = REQUEST_TIME - mt_rand(0, 86400 * 365);
     if ($type == DateTimeItem::DATETIME_TYPE_DATE) {
       $values['value'] = gmdate(DATETIME_DATE_STORAGE_FORMAT, $timestamp);
     }
diff --git a/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDatelistWidget.php b/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDatelistWidget.php
index 6b38584..244ce16 100644
--- a/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDatelistWidget.php
+++ b/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDatelistWidget.php
@@ -80,7 +80,7 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
     $element['value'] = array(
       '#type' => 'datelist',
       '#date_increment' => $increment,
-      '#date_part_order'=> $date_part_order,
+      '#date_part_order' => $date_part_order,
     ) + $element['value'];
 
     return $element;
diff --git a/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDefaultWidget.php b/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDefaultWidget.php
index 8d436a0..946902d 100644
--- a/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDefaultWidget.php
+++ b/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDefaultWidget.php
@@ -81,7 +81,7 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
     }
 
     $element['value'] += array(
-      '#date_date_format'=>  $date_format,
+      '#date_date_format' => $date_format,
       '#date_date_element' => $date_type,
       '#date_date_callbacks' => array(),
       '#date_time_format' => $time_format,
diff --git a/core/modules/datetime/src/Plugin/views/filter/Date.php b/core/modules/datetime/src/Plugin/views/filter/Date.php
index cc3caf7..9250b91 100644
--- a/core/modules/datetime/src/Plugin/views/filter/Date.php
+++ b/core/modules/datetime/src/Plugin/views/filter/Date.php
@@ -117,7 +117,7 @@ protected function opBetween($field) {
    * Override parent method, which deals with dates as integers.
    */
   protected function opSimple($field) {
-    $origin =  (!empty($this->value['type']) && $this->value['type'] == 'offset') ? $this->requestStack->getCurrentRequest()->server->get('REQUEST_TIME') : 0;
+    $origin = (!empty($this->value['type']) && $this->value['type'] == 'offset') ? $this->requestStack->getCurrentRequest()->server->get('REQUEST_TIME') : 0;
     $value = intval(strtotime($this->value['value'], $origin));
 
     // Convert to ISO. UTC is used since dates are stored in UTC.
diff --git a/core/modules/editor/src/Tests/EditorAdminTest.php b/core/modules/editor/src/Tests/EditorAdminTest.php
index bc25912..a931a01 100644
--- a/core/modules/editor/src/Tests/EditorAdminTest.php
+++ b/core/modules/editor/src/Tests/EditorAdminTest.php
@@ -108,7 +108,7 @@ public function testAddEditorToNewFormat() {
    * Tests format disabling.
    */
   public function testDisableFormatWithEditor() {
-    $formats = ['monocerus' => 'Monocerus', 'tattoo' =>  'Tattoo'];
+    $formats = ['monocerus' => 'Monocerus', 'tattoo' => 'Tattoo'];
 
     // Install the node module.
     $this->container->get('module_installer')->install(['node']);
diff --git a/core/modules/entity_reference/entity_reference.views.inc b/core/modules/entity_reference/entity_reference.views.inc
index 191005f..d94d445 100644
--- a/core/modules/entity_reference/entity_reference.views.inc
+++ b/core/modules/entity_reference/entity_reference.views.inc
@@ -32,7 +32,7 @@ function entity_reference_field_views_data(FieldStorageConfigInterface $field_st
       'title' => t('@label referenced from @field_name', $args),
       'label' => t('@field_name: @label', $args),
       'group' => $entity_type->getLabel(),
-      'help' =>  t('Appears in: @bundles.', array('@bundles' => implode(', ', $field_storage->getBundles()))),
+      'help' => t('Appears in: @bundles.', array('@bundles' => implode(', ', $field_storage->getBundles()))),
       'id' => 'standard',
       'base' => $target_base_table,
       'entity type' => $target_entity_type_id,
diff --git a/core/modules/field/src/Tests/DisplayApiTest.php b/core/modules/field/src/Tests/DisplayApiTest.php
index eff812b..d606dea 100644
--- a/core/modules/field/src/Tests/DisplayApiTest.php
+++ b/core/modules/field/src/Tests/DisplayApiTest.php
@@ -101,7 +101,7 @@ protected function setUp() {
       ->setComponent($this->fieldName, $this->displayOptions['default'])
       ->save();
     // Create a display for the teaser view mode.
-    EntityViewMode::create(array('id' =>  'entity_test.teaser', 'targetEntityType' => 'entity_test'))->save();
+    EntityViewMode::create(array('id' => 'entity_test.teaser', 'targetEntityType' => 'entity_test'))->save();
     entity_get_display($field['entity_type'], $field['bundle'], 'teaser')
       ->setComponent($this->fieldName, $this->displayOptions['teaser'])
       ->save();
diff --git a/core/modules/field/src/Tests/FieldAttachStorageTest.php b/core/modules/field/src/Tests/FieldAttachStorageTest.php
index 77c7bac..4d2410a 100644
--- a/core/modules/field/src/Tests/FieldAttachStorageTest.php
+++ b/core/modules/field/src/Tests/FieldAttachStorageTest.php
@@ -48,7 +48,7 @@ function testFieldAttachSaveLoad() {
       $values[$current_revision] = $current_values;
     }
 
-    $storage =  $this->container->get('entity.manager')->getStorage($entity_type);
+    $storage = $this->container->get('entity.manager')->getStorage($entity_type);
     $storage->resetCache();
     $entity = $storage->load($entity_id);
     // Confirm current revision loads the correct data.
@@ -365,7 +365,7 @@ function testEntityDeleteBundle() {
     // Verify no data gets loaded
     $controller = $this->container->get('entity.manager')->getStorage($entity->getEntityTypeId());
     $controller->resetCache();
-    $entity= $controller->load($entity->id());
+    $entity = $controller->load($entity->id());
 
     $this->assertTrue(empty($entity->{$this->fieldTestData->field_name}), 'No data for first field');
     $this->assertTrue(empty($entity->{$field_name}), 'No data for second field');
diff --git a/core/modules/field/src/Tests/FieldDataCountTest.php b/core/modules/field/src/Tests/FieldDataCountTest.php
index 9edbbdb..f6046ca 100644
--- a/core/modules/field/src/Tests/FieldDataCountTest.php
+++ b/core/modules/field/src/Tests/FieldDataCountTest.php
@@ -78,7 +78,7 @@ public function testEntityCountAndHasData() {
     $this->assertIdentical($this->storage->countFieldData($field_storage), 0, 'There are 0 entities with field data.');
 
     // Create 12 entities to ensure that the purging works as expected.
-    for ($i=0; $i < 12; $i++) {
+    for ($i = 0; $i < 12; $i++) {
       $entity = entity_create('entity_test');
       $entity->field_int[] = mt_rand(1,99);
       $entity->field_int[] = mt_rand(1,99);
@@ -139,7 +139,7 @@ public function testEntityCountAndHasData() {
 
     $this->assertIdentical($this->fieldTestData->field_storage_2->hasData(), TRUE, 'There are entities with field data.');
 
-    $storage =  $this->container->get('entity.manager')->getStorage($entity_type);
+    $storage = $this->container->get('entity.manager')->getStorage($entity_type);
     $entity = $storage->loadRevision($first_revision);
     $this->assertEqual(count($entity->{$this->fieldTestData->field_name_2}), $cardinality, format_string('Revision %revision_id: expected number of values.', array('%revision_id' => $first_revision)));
   }
diff --git a/core/modules/field/src/Tests/FieldImportDeleteUninstallTest.php b/core/modules/field/src/Tests/FieldImportDeleteUninstallTest.php
index cf1ad8c..aee746f 100644
--- a/core/modules/field/src/Tests/FieldImportDeleteUninstallTest.php
+++ b/core/modules/field/src/Tests/FieldImportDeleteUninstallTest.php
@@ -126,7 +126,7 @@ public function testImportAlreadyDeletedUninstall() {
     ))->save();
 
     // Create 12 entities to ensure that the purging works as expected.
-    for ($i=0; $i < 12; $i++) {
+    for ($i = 0; $i < 12; $i++) {
       $entity = entity_create('entity_test');
       $value = '+0123456789';
       $entity->field_test = $value;
diff --git a/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php b/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
index 72cfd76..8304063 100644
--- a/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
+++ b/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
@@ -141,7 +141,7 @@ public function testCalculateDependencies() {
     $this->fieldTypePluginManager->expects($this->any())
       ->method('getDefinition')
       ->with('test_field')
-      ->willReturn(['provider' => 'test_module', 'config_dependencies' =>['module' => ['test_module2']], 'class' => '\Drupal\Tests\field\Unit\DependencyFieldItem']);
+      ->willReturn(['provider' => 'test_module', 'config_dependencies' => ['module' => ['test_module2']], 'class' => '\Drupal\Tests\field\Unit\DependencyFieldItem']);
 
     $this->fieldStorage->expects($this->once())
       ->method('getConfigDependencyName')
@@ -202,7 +202,7 @@ public function testCalculateDependenciesIncorrectBundle() {
     $this->fieldTypePluginManager->expects($this->any())
       ->method('getDefinition')
       ->with('test_field')
-      ->willReturn(['provider' => 'test_module', 'config_dependencies' =>['module' => ['test_module2']], 'class' => '\Drupal\Tests\field\Unit\DependencyFieldItem']);
+      ->willReturn(['provider' => 'test_module', 'config_dependencies' => ['module' => ['test_module2']], 'class' => '\Drupal\Tests\field\Unit\DependencyFieldItem']);
 
     $field = new FieldConfig(array(
       'field_name' => $this->fieldStorage->getName(),
diff --git a/core/modules/field_ui/src/FieldStorageConfigListBuilder.php b/core/modules/field_ui/src/FieldStorageConfigListBuilder.php
index 4e942a2..fde2a1a 100644
--- a/core/modules/field_ui/src/FieldStorageConfigListBuilder.php
+++ b/core/modules/field_ui/src/FieldStorageConfigListBuilder.php
@@ -99,7 +99,7 @@ public function buildHeader() {
   public function buildRow(EntityInterface $field_storage) {
     if ($field_storage->isLocked()) {
       $row['class'] = array('menu-disabled');
-      $row['data']['id'] =  $this->t('@field_name (Locked)', array('@field_name' => $field_storage->getName()));
+      $row['data']['id'] = $this->t('@field_name (Locked)', array('@field_name' => $field_storage->getName()));
     }
     else {
       $row['data']['id'] = $field_storage->getName();
diff --git a/core/modules/field_ui/src/Tests/EntityDisplayTest.php b/core/modules/field_ui/src/Tests/EntityDisplayTest.php
index 75968b2..2cdbc2e 100644
--- a/core/modules/field_ui/src/Tests/EntityDisplayTest.php
+++ b/core/modules/field_ui/src/Tests/EntityDisplayTest.php
@@ -200,7 +200,7 @@ public function testFieldComponent() {
     $display->setComponent($field_name);
     $field_type_info = \Drupal::service('plugin.manager.field.field_type')->getDefinition($field_storage->getType());
     $default_formatter = $field_type_info['default_formatter'];
-    $formatter_settings =  \Drupal::service('plugin.manager.field.formatter')->getDefaultSettings($default_formatter);
+    $formatter_settings = \Drupal::service('plugin.manager.field.formatter')->getDefaultSettings($default_formatter);
     $expected = array(
       'weight' => -4,
       'label' => 'above',
@@ -247,7 +247,7 @@ public function testBaseFieldComponent() {
     ));
 
     // Check that default options are correctly filled in.
-    $formatter_settings =  \Drupal::service('plugin.manager.field.formatter')->getDefaultSettings('text_default');
+    $formatter_settings = \Drupal::service('plugin.manager.field.formatter')->getDefaultSettings('text_default');
     $expected = array(
       'test_no_display' => NULL,
       'test_display_configurable' => array(
@@ -368,7 +368,7 @@ public function testDeleteField() {
     $field->save();
 
     // Create default and teaser entity display.
-    EntityViewMode::create(array('id' =>  'entity_test.teaser', 'targetEntityType' => 'entity_test'))->save();
+    EntityViewMode::create(array('id' => 'entity_test.teaser', 'targetEntityType' => 'entity_test'))->save();
     EntityViewDisplay::create(array(
       'targetEntityType' => 'entity_test',
       'bundle' => 'entity_test',
diff --git a/core/modules/field_ui/src/Tests/EntityFormDisplayTest.php b/core/modules/field_ui/src/Tests/EntityFormDisplayTest.php
index 0f8cc6b..870b55c 100644
--- a/core/modules/field_ui/src/Tests/EntityFormDisplayTest.php
+++ b/core/modules/field_ui/src/Tests/EntityFormDisplayTest.php
@@ -131,7 +131,7 @@ public function testBaseFieldComponent() {
     ));
 
     // Check that default options are correctly filled in.
-    $formatter_settings =  \Drupal::service('plugin.manager.field.widget')->getDefaultSettings('text_textfield');
+    $formatter_settings = \Drupal::service('plugin.manager.field.widget')->getDefaultSettings('text_textfield');
     $expected = array(
       'test_no_display' => NULL,
       'test_display_configurable' => array(
@@ -198,7 +198,7 @@ public function testDeleteField() {
     $field->save();
 
     // Create default and compact entity display.
-    EntityFormMode::create(array('id' =>  'entity_test.compact', 'targetEntityType' => 'entity_test'))->save();
+    EntityFormMode::create(array('id' => 'entity_test.compact', 'targetEntityType' => 'entity_test'))->save();
     EntityFormDisplay::create(array(
       'targetEntityType' => 'entity_test',
       'bundle' => 'entity_test',
diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
index f1db4d4..7d08847 100644
--- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php
+++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
@@ -82,7 +82,7 @@ protected function setUp() {
 
     // Create random field name with markup to test escaping.
     $this->fieldLabel = '<em>' . $this->randomMachineName(8) . '</em>';
-    $this->fieldNameInput =  strtolower($this->randomMachineName(8));
+    $this->fieldNameInput = strtolower($this->randomMachineName(8));
     $this->fieldName = 'field_'. $this->fieldNameInput;
 
     // Create Basic page and Article node types.
diff --git a/core/modules/file/src/Tests/Migrate/EntityFileTest.php b/core/modules/file/src/Tests/Migrate/EntityFileTest.php
index 42826aa..4cfc854 100644
--- a/core/modules/file/src/Tests/Migrate/EntityFileTest.php
+++ b/core/modules/file/src/Tests/Migrate/EntityFileTest.php
@@ -268,7 +268,7 @@ class TestEntityFile extends EntityFile {
   public $fileSystem;
 
   public function __construct($configuration) {
-    $configuration +=  array(
+    $configuration += array(
       'source_base_path' => '',
       'source_path_property' => 'filepath',
       'destination_path_property' => 'uri',
diff --git a/core/modules/help/src/Controller/HelpController.php b/core/modules/help/src/Controller/HelpController.php
index 4ebd4c8..746d150 100644
--- a/core/modules/help/src/Controller/HelpController.php
+++ b/core/modules/help/src/Controller/HelpController.php
@@ -113,7 +113,7 @@ protected function helpLinksAsList() {
   public function helpPage($name) {
     $build = array();
     if ($this->moduleHandler()->implementsHook($name, 'help')) {
-      $module_name =  $this->moduleHandler()->getName($name);
+      $module_name = $this->moduleHandler()->getName($name);
       $build['#title'] = $module_name;
 
       $temp = $this->moduleHandler()->invoke($name, 'help', array("help.page.$name", $this->routeMatch));
diff --git a/core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php b/core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php
index e1d6122..554dd92 100644
--- a/core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php
+++ b/core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php
@@ -86,7 +86,7 @@ public function render(ResultRow $values) {
       $last_read = $this->getValue($values);
       $changed = $this->getValue($values, 'changed');
 
-      $last_comment = \Drupal::moduleHandler()->moduleExists('comment') && !empty($this->options['comments']) ?  $this->getValue($values, 'last_comment') : 0;
+      $last_comment = \Drupal::moduleHandler()->moduleExists('comment') && !empty($this->options['comments']) ? $this->getValue($values, 'last_comment') : 0;
 
       if (!$last_read && $changed > HISTORY_READ_LIMIT) {
         $mark = MARK_NEW;
diff --git a/core/modules/image/src/Plugin/Field/FieldType/ImageItem.php b/core/modules/image/src/Plugin/Field/FieldType/ImageItem.php
index 442929f..49a586d 100644
--- a/core/modules/image/src/Plugin/Field/FieldType/ImageItem.php
+++ b/core/modules/image/src/Plugin/Field/FieldType/ImageItem.php
@@ -321,7 +321,7 @@ public function preSave() {
       $image = \Drupal::service('image.factory')->get($this->entity->getFileUri());
       if ($image->isValid()) {
         $this->width = $image->getWidth();
-        $this->height =$image->getHeight();
+        $this->height = $image->getHeight();
       }
     }
   }
@@ -370,7 +370,7 @@ public static function generateSampleValue(FieldDefinitionInterface $field_defin
       'target_id' => $file->id(),
       'alt' => $random->sentences(4),
       'title' => $random->sentences(4),
-      'width' =>$width,
+      'width' => $width,
       'height' => $height,
     );
     return $values;
diff --git a/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationUrl.php b/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationUrl.php
index ef6891c..08d201b 100644
--- a/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationUrl.php
+++ b/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationUrl.php
@@ -149,7 +149,7 @@ public function processOutbound($path, &$options = array(), Request $request = N
         }
       }
     }
-    elseif ($config['source'] ==  LanguageNegotiationUrl::CONFIG_DOMAIN) {
+    elseif ($config['source'] == LanguageNegotiationUrl::CONFIG_DOMAIN) {
       if (is_object($options['language']) && !empty($config['domains'][$options['language']->getId()])) {
 
         // Save the original base URL. If it contains a port, we need to
diff --git a/core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php b/core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php
index 04ab81b..bd2e28a 100644
--- a/core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php
+++ b/core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php
@@ -213,7 +213,7 @@ public function testIsDefaultConfiguration(ContentLanguageSettings $config, $exp
   }
 
   public function providerIsDefaultConfiguration() {
-    $alteredLanguage= new ContentLanguageSettings(array(
+    $alteredLanguage = new ContentLanguageSettings(array(
       'target_entity_type_id' => 'test_entity_type',
       'target_bundle' => 'test_bundle',
     ), 'language_content_settings');
@@ -276,7 +276,7 @@ public function testLoadByEntityTypeBundle($config_id, ContentLanguageSettings $
   }
 
   public function providerLoadByEntityTypeBundle() {
-    $alteredLanguage= new ContentLanguageSettings(array(
+    $alteredLanguage = new ContentLanguageSettings(array(
       'target_entity_type_id' => 'test_entity_type',
       'target_bundle' => 'test_bundle',
     ), 'language_content_settings');
diff --git a/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php b/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
index 4c0467c..f28ca34 100644
--- a/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
+++ b/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
@@ -140,7 +140,7 @@ public static function generateSampleValue(FieldDefinitionInterface $field_defin
         $values['title'] = mt_rand(0,1) ? $random->sentences(4) : '';
         break;
     }
-    $values['uri'] = 'http://www.' . $random->word($domain_length) . '.' . $tlds[mt_rand(0, (sizeof($tlds)-1))];
+    $values['uri'] = 'http://www.' . $random->word($domain_length) . '.' . $tlds[mt_rand(0, (sizeof($tlds) - 1))];
     return $values;
   }
 
diff --git a/core/modules/link/src/Tests/LinkFieldTest.php b/core/modules/link/src/Tests/LinkFieldTest.php
index 8247b60..9e79f9b 100644
--- a/core/modules/link/src/Tests/LinkFieldTest.php
+++ b/core/modules/link/src/Tests/LinkFieldTest.php
@@ -115,7 +115,7 @@ function testURLValidation() {
       //   https://www.drupal.org/node/2421941
       '<front>' => '&lt;front&gt;',
       '<front>#example' => '&lt;front&gt;#example',
-      '<front>?example=llama' =>'&lt;front&gt;?example=llama',
+      '<front>?example=llama' => '&lt;front&gt;?example=llama',
 
       // Query string and fragment.
       '?example=llama' => '?example=llama',
diff --git a/core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php b/core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php
index a850b0d..4783440 100644
--- a/core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php
+++ b/core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php
@@ -106,7 +106,7 @@ public function processItem($data) {
       $batch_context = $args[$last];
       unset ($args[$last]);
     }
-    $args = array_merge($args, [&$batch_context]);
+    $args = array_merge($args, [ & $batch_context]);
 
     // Call the batch operation function.
     call_user_func_array($function, $args);
diff --git a/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php b/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
index a0a8684..3e33d6d 100644
--- a/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
+++ b/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
@@ -77,7 +77,7 @@ public function testConfigTranslationImport() {
     $this->drupalPostForm('admin/reports/translations', array(), t('Update translations'));
 
     // Check if configuration translations have been imported.
-    $override =  \Drupal::languageManager()->getLanguageConfigOverride('af', 'system.maintenance');
+    $override = \Drupal::languageManager()->getLanguageConfigOverride('af', 'system.maintenance');
     $this->assertEqual($override->get('message'), 'Ons is tans besig met onderhoud op @site. Wees asseblief geduldig, ons sal binnekort weer terug wees.');
   }
 
diff --git a/core/modules/menu_ui/src/Tests/MenuLanguageTest.php b/core/modules/menu_ui/src/Tests/MenuLanguageTest.php
index c35c221..12d82bd 100644
--- a/core/modules/menu_ui/src/Tests/MenuLanguageTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuLanguageTest.php
@@ -54,7 +54,7 @@ function testMenuLanguage() {
     $edit = array(
       'id' => $menu_name,
       'description' => '',
-      'label' =>  $label,
+      'label' => $label,
       'langcode' => 'aa',
     );
     $this->drupalPostForm('admin/structure/menu/add', $edit, t('Save'));
diff --git a/core/modules/menu_ui/src/Tests/MenuTest.php b/core/modules/menu_ui/src/Tests/MenuTest.php
index e87cd86..1afd73d 100644
--- a/core/modules/menu_ui/src/Tests/MenuTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuTest.php
@@ -189,7 +189,7 @@ function addCustomMenu() {
     $edit = array(
       'id' => $menu_name,
       'description' => '',
-      'label' =>  $label,
+      'label' => $label,
     );
     $this->drupalPostForm('admin/structure/menu/add', $edit, t('Save'));
 
@@ -580,7 +580,7 @@ public function testBlockContextualLinks() {
     // Get server-rendered contextual links.
     // @see \Drupal\contextual\Tests\ContextualDynamicContextTest:renderContextualLinks()
     $post = array('ids[0]' => $id);
-    $response =  $this->drupalPost('contextual/render', 'application/json', $post, array('query' => array('destination' => 'test-page')));
+    $response = $this->drupalPost('contextual/render', 'application/json', $post, array('query' => array('destination' => 'test-page')));
     $this->assertResponse(200);
     $json = Json::decode($response);
     $this->assertIdentical($json[$id], '<ul class="contextual-links"><li class="block-configure"><a href="' . base_path() . 'admin/structure/block/manage/' . $block->id() . '">Configure block</a></li><li class="entitymenuedit-form"><a href="' . base_path() . 'admin/structure/menu/manage/' . $custom_menu->id() . '">Edit menu</a></li></ul>');
@@ -617,7 +617,7 @@ function addMenuLink($parent = '', $path = '/', $menu_name = 'tools', $expanded
       'description[0][value]' => '',
       'enabled[value]' => 1,
       'expanded[value]' => $expanded,
-      'menu_parent' =>  $menu_name . ':' . $parent,
+      'menu_parent' => $menu_name . ':' . $parent,
       'weight[0][value]' => $weight,
     );
 
diff --git a/core/modules/migrate/src/MigrateExecutable.php b/core/modules/migrate/src/MigrateExecutable.php
index d2762ad..f6754b3 100644
--- a/core/modules/migrate/src/MigrateExecutable.php
+++ b/core/modules/migrate/src/MigrateExecutable.php
@@ -427,7 +427,7 @@ protected function memoryExceeded() {
     if ($pct_memory > $threshold) {
       $this->message->display(
         $this->t('Memory usage is @usage (@pct% of limit @limit), reclaiming memory.',
-          array('@pct' => round($pct_memory*100),
+          array('@pct' => round($pct_memory * 100),
                 '@usage' => $this->formatSize($usage),
                 '@limit' => $this->formatSize($this->memoryLimit))),
         'warning');
@@ -438,7 +438,7 @@ protected function memoryExceeded() {
       if ($pct_memory > (0.90 * $threshold)) {
         $this->message->display(
           $this->t('Memory usage is now @usage (@pct% of limit @limit), not enough reclaimed, starting new batch',
-            array('@pct' => round($pct_memory*100),
+            array('@pct' => round($pct_memory * 100),
                   '@usage' => $this->formatSize($usage),
                   '@limit' => $this->formatSize($this->memoryLimit))),
           'warning');
@@ -447,7 +447,7 @@ protected function memoryExceeded() {
       else {
         $this->message->display(
           $this->t('Memory usage is now @usage (@pct% of limit @limit), reclaimed enough, continuing',
-            array('@pct' => round($pct_memory*100),
+            array('@pct' => round($pct_memory * 100),
                   '@usage' => $this->formatSize($usage),
                   '@limit' => $this->formatSize($this->memoryLimit))),
           'warning');
@@ -481,7 +481,7 @@ protected function attemptMemoryReclaim() {
     drupal_static_reset();
 
     // Entity storage can blow up with caches so clear them out.
-    $manager =  \Drupal::entityManager();
+    $manager = \Drupal::entityManager();
     foreach ($manager->getDefinitions() as $id => $definition) {
       $manager->getStorage($id)->resetCache();
     }
diff --git a/core/modules/node/node.views_execution.inc b/core/modules/node/node.views_execution.inc
index 701f439..193e479 100644
--- a/core/modules/node/node.views_execution.inc
+++ b/core/modules/node/node.views_execution.inc
@@ -17,7 +17,7 @@ function node_views_query_substitutions(ViewExecutable $view) {
   return array(
     '***ADMINISTER_NODES***' => intval($account->hasPermission('administer nodes')),
     '***VIEW_OWN_UNPUBLISHED_NODES***' => intval($account->hasPermission('view own unpublished content')),
-    '***BYPASS_NODE_ACCESS***' =>  intval($account->hasPermission('bypass node access')),
+    '***BYPASS_NODE_ACCESS***' => intval($account->hasPermission('bypass node access')),
   );
 }
 
diff --git a/core/modules/node/src/Controller/NodeController.php b/core/modules/node/src/Controller/NodeController.php
index 299d253..ab723f4 100644
--- a/core/modules/node/src/Controller/NodeController.php
+++ b/core/modules/node/src/Controller/NodeController.php
@@ -161,7 +161,7 @@ public function revisionOverview(NodeInterface $node) {
     $header = array($this->t('Revision'), $this->t('Operations'));
 
     $revert_permission = (($account->hasPermission("revert $type revisions") || $account->hasPermission('revert all revisions') || $account->hasPermission('administer nodes')) && $node->access('update'));
-    $delete_permission =  (($account->hasPermission("delete $type revisions") || $account->hasPermission('delete all revisions') || $account->hasPermission('administer nodes')) && $node->access('delete'));
+    $delete_permission = (($account->hasPermission("delete $type revisions") || $account->hasPermission('delete all revisions') || $account->hasPermission('administer nodes')) && $node->access('delete'));
 
     $rows = array();
 
diff --git a/core/modules/node/src/NodeViewBuilder.php b/core/modules/node/src/NodeViewBuilder.php
index 37db17d..448ec9d 100644
--- a/core/modules/node/src/NodeViewBuilder.php
+++ b/core/modules/node/src/NodeViewBuilder.php
@@ -154,7 +154,7 @@ protected function alterBuild(array &$build, EntityInterface $entity, EntityView
     parent::alterBuild($build, $entity, $display, $view_mode, $langcode);
     if ($entity->id()) {
       $build['#contextual_links']['node'] = array(
-        'route_parameters' =>array('node' => $entity->id()),
+        'route_parameters' => array('node' => $entity->id()),
         'metadata' => array('changed' => $entity->getChangedTime()),
       );
     }
diff --git a/core/modules/node/src/Plugin/Search/NodeSearch.php b/core/modules/node/src/Plugin/Search/NodeSearch.php
index ecd6e86..c353eed 100644
--- a/core/modules/node/src/Plugin/Search/NodeSearch.php
+++ b/core/modules/node/src/Plugin/Search/NodeSearch.php
@@ -503,7 +503,7 @@ public function searchFormAlter(array &$form, FormStateInterface $form_state) {
     $used_advanced = !empty($parameters[self::ADVANCED_FORM]);
     if ($used_advanced) {
       $f = isset($parameters['f']) ? (array) $parameters['f'] : array();
-      $defaults =  $this->parseAdvancedDefaults($f, $keys);
+      $defaults = $this->parseAdvancedDefaults($f, $keys);
     }
     else {
       $defaults = array('keys' => $keys);
diff --git a/core/modules/node/src/Tests/NodeBlockFunctionalTest.php b/core/modules/node/src/Tests/NodeBlockFunctionalTest.php
index b6855ba..c94fefa 100644
--- a/core/modules/node/src/Tests/NodeBlockFunctionalTest.php
+++ b/core/modules/node/src/Tests/NodeBlockFunctionalTest.php
@@ -128,7 +128,7 @@ public function testRecentNodeBlock() {
       'region' => 'sidebar_first',
       'visibility[node_type][bundles][article]' => 'article',
     ];
-    $theme =  \Drupal::service('theme_handler')->getDefault();
+    $theme = \Drupal::service('theme_handler')->getDefault();
     $this->drupalPostForm("admin/structure/block/add/system_powered_by_block/$theme", $edit, t('Save block'));
 
     $block = Block::load($edit['id']);
diff --git a/core/modules/path/src/Tests/PathLanguageUiTest.php b/core/modules/path/src/Tests/PathLanguageUiTest.php
index 55b3103..3b61494 100644
--- a/core/modules/path/src/Tests/PathLanguageUiTest.php
+++ b/core/modules/path/src/Tests/PathLanguageUiTest.php
@@ -46,7 +46,7 @@ function testLanguageNeutralUrl() {
     $name = $this->randomMachineName(8);
     $edit = array();
     $edit['source'] = '/admin/config/search/path';
-    $edit['alias'] ='/' . $name;
+    $edit['alias'] = '/' . $name;
     $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
 
     $this->drupalGet($name);
diff --git a/core/modules/rdf/src/Tests/Field/DateTimeFieldRdfaTest.php b/core/modules/rdf/src/Tests/Field/DateTimeFieldRdfaTest.php
index 337644e..dc4a280 100644
--- a/core/modules/rdf/src/Tests/Field/DateTimeFieldRdfaTest.php
+++ b/core/modules/rdf/src/Tests/Field/DateTimeFieldRdfaTest.php
@@ -52,6 +52,6 @@ protected function setUp() {
    * Tests the default formatter.
    */
   public function testDefaultFormatter() {
-    $this->assertFormatterRdfa(array('type'=>'datetime_default'), 'http://schema.org/dateCreated', array('value' => $this->testValue . 'Z', 'type' => 'literal', 'datatype' => 'http://www.w3.org/2001/XMLSchema#dateTime'));
+    $this->assertFormatterRdfa(array('type' => 'datetime_default'), 'http://schema.org/dateCreated', array('value' => $this->testValue . 'Z', 'type' => 'literal', 'datatype' => 'http://www.w3.org/2001/XMLSchema#dateTime'));
   }
 }
diff --git a/core/modules/rdf/src/Tests/Field/EmailFieldRdfaTest.php b/core/modules/rdf/src/Tests/Field/EmailFieldRdfaTest.php
index a5067fc..c7da62e 100644
--- a/core/modules/rdf/src/Tests/Field/EmailFieldRdfaTest.php
+++ b/core/modules/rdf/src/Tests/Field/EmailFieldRdfaTest.php
@@ -47,8 +47,8 @@ protected function setUp() {
    */
   public function testAllFormatters() {
     // Test the plain formatter.
-    $this->assertFormatterRdfa(array('type'=>'string'), 'http://schema.org/email', array('value' => $this->testValue));
+    $this->assertFormatterRdfa(array('type' => 'string'), 'http://schema.org/email', array('value' => $this->testValue));
     // Test the mailto formatter.
-    $this->assertFormatterRdfa(array('type'=>'email_mailto'), 'http://schema.org/email', array('value' => $this->testValue));
+    $this->assertFormatterRdfa(array('type' => 'email_mailto'), 'http://schema.org/email', array('value' => $this->testValue));
   }
 }
diff --git a/core/modules/rdf/src/Tests/Field/FieldRdfaDatatypeCallbackTest.php b/core/modules/rdf/src/Tests/Field/FieldRdfaDatatypeCallbackTest.php
index 0b43c30..896128b 100644
--- a/core/modules/rdf/src/Tests/Field/FieldRdfaDatatypeCallbackTest.php
+++ b/core/modules/rdf/src/Tests/Field/FieldRdfaDatatypeCallbackTest.php
@@ -53,7 +53,7 @@ protected function setUp() {
    */
   public function testDefaultFormatter() {
     // Expected value is the output of the datatype callback, not the raw value.
-    $this->assertFormatterRdfa(array('type'=>'text_default'), 'http://schema.org/interactionCount', array('value' => 'foo' . $this->testValue));
+    $this->assertFormatterRdfa(array('type' => 'text_default'), 'http://schema.org/interactionCount', array('value' => 'foo' . $this->testValue));
   }
 
 }
diff --git a/core/modules/rdf/src/Tests/Field/LinkFieldRdfaTest.php b/core/modules/rdf/src/Tests/Field/LinkFieldRdfaTest.php
index 4d643d0..ea774b9 100644
--- a/core/modules/rdf/src/Tests/Field/LinkFieldRdfaTest.php
+++ b/core/modules/rdf/src/Tests/Field/LinkFieldRdfaTest.php
@@ -90,7 +90,7 @@ public function testAllFormattersFront() {
 
     // Set up the expected result.
     $expected_rdf = array(
-      'value' =>  $this->uri . '/',
+      'value' => $this->uri . '/',
       'type' => 'uri',
     );
 
diff --git a/core/modules/rdf/src/Tests/Field/StringFieldRdfaTest.php b/core/modules/rdf/src/Tests/Field/StringFieldRdfaTest.php
index 428a435..b5c2508 100644
--- a/core/modules/rdf/src/Tests/Field/StringFieldRdfaTest.php
+++ b/core/modules/rdf/src/Tests/Field/StringFieldRdfaTest.php
@@ -54,6 +54,6 @@ public function setUp() {
    */
   public function testStringFormatters() {
     // Tests the string formatter.
-    $this->assertFormatterRdfa(array('type'=>'string'), 'http://schema.org/text', array('value' => $this->testValue));
+    $this->assertFormatterRdfa(array('type' => 'string'), 'http://schema.org/text', array('value' => $this->testValue));
   }
 }
diff --git a/core/modules/rdf/src/Tests/Field/TextFieldRdfaTest.php b/core/modules/rdf/src/Tests/Field/TextFieldRdfaTest.php
index b54bd73..06be20b 100644
--- a/core/modules/rdf/src/Tests/Field/TextFieldRdfaTest.php
+++ b/core/modules/rdf/src/Tests/Field/TextFieldRdfaTest.php
@@ -67,10 +67,10 @@ public function testAllFormatters() {
     $formatted_value = strip_tags($this->entity->{$this->fieldName}->processed);
 
     // Tests the default formatter.
-    $this->assertFormatterRdfa(array('type'=>'text_default'), 'http://schema.org/text', array('value' => $formatted_value));
+    $this->assertFormatterRdfa(array('type' => 'text_default'), 'http://schema.org/text', array('value' => $formatted_value));
     // Tests the summary formatter.
-    $this->assertFormatterRdfa(array('type'=>'text_summary_or_trimmed'), 'http://schema.org/text', array('value' => $formatted_value));
+    $this->assertFormatterRdfa(array('type' => 'text_summary_or_trimmed'), 'http://schema.org/text', array('value' => $formatted_value));
     // Tests the trimmed formatter.
-    $this->assertFormatterRdfa(array('type'=>'text_trimmed'), 'http://schema.org/text', array('value' => $formatted_value));
+    $this->assertFormatterRdfa(array('type' => 'text_trimmed'), 'http://schema.org/text', array('value' => $formatted_value));
   }
 }
diff --git a/core/modules/search/src/SearchQuery.php b/core/modules/search/src/SearchQuery.php
index 164aa3b..9e5d069 100644
--- a/core/modules/search/src/SearchQuery.php
+++ b/core/modules/search/src/SearchQuery.php
@@ -232,7 +232,7 @@ protected function parseSearchExpression() {
     // something between two spaces, optionally quoted.
     preg_match_all('/ (-?)("[^"]+"|[^" ]+)/i', ' ' .  $this->searchExpression , $keywords, PREG_SET_ORDER);
 
-    if (count($keywords) ==  0) {
+    if (count($keywords) == 0) {
       return;
     }
 
diff --git a/core/modules/search/src/Tests/SearchSimplifyTest.php b/core/modules/search/src/Tests/SearchSimplifyTest.php
index 82363fd..d287793 100644
--- a/core/modules/search/src/Tests/SearchSimplifyTest.php
+++ b/core/modules/search/src/Tests/SearchSimplifyTest.php
@@ -29,7 +29,7 @@ function testSearchSimplifyUnicode() {
     $basestrings = explode(chr(10), $input);
     $strings = array();
     foreach ($basestrings as $key => $string) {
-      if ($key %2) {
+      if ($key % 2) {
         // Even line - should simplify down to a space.
         $simplified = search_simplify($string);
         $this->assertIdentical($simplified, ' ', "Line $key is excluded from the index");
diff --git a/core/modules/simpletest/src/KernelTestBase.php b/core/modules/simpletest/src/KernelTestBase.php
index 0e2bf5c..bd7ec1d 100644
--- a/core/modules/simpletest/src/KernelTestBase.php
+++ b/core/modules/simpletest/src/KernelTestBase.php
@@ -503,7 +503,7 @@ protected function enableModules(array $modules) {
 
     // Write directly to active storage to avoid early instantiation of
     // the event dispatcher which can prevent modules from registering events.
-    $active_storage =  \Drupal::service('config.storage');
+    $active_storage = \Drupal::service('config.storage');
     $extensions = $active_storage->read('core.extension');
 
     foreach ($modules as $module) {
diff --git a/core/modules/simpletest/src/TestBase.php b/core/modules/simpletest/src/TestBase.php
index b94afcf..9d404f4 100644
--- a/core/modules/simpletest/src/TestBase.php
+++ b/core/modules/simpletest/src/TestBase.php
@@ -904,7 +904,7 @@ protected function verbose($message) {
     }
 
     $message = '<hr />ID #' . $this->verboseId . ' (<a href="' . $this->verboseClassName . '-' . ($this->verboseId - 1) . '-' . $this->testId . '.html">Previous</a> | <a href="' . $this->verboseClassName . '-' . ($this->verboseId + 1) . '-' . $this->testId . '.html">Next</a>)<hr />' . $message;
-    $verbose_filename =  $this->verboseClassName . '-' . $this->verboseId . '-' . $this->testId . '.html';
+    $verbose_filename = $this->verboseClassName . '-' . $this->verboseId . '-' . $this->testId . '.html';
     if (file_put_contents($this->verboseDirectory . '/' . $verbose_filename, $message)) {
       $url = $this->verboseDirectoryUrl . '/' . $verbose_filename;
       // Not using _l() to avoid invoking the theme system, so that unit tests
diff --git a/core/modules/simpletest/src/Tests/MailCaptureTest.php b/core/modules/simpletest/src/Tests/MailCaptureTest.php
index e86dc24..244e8f3 100644
--- a/core/modules/simpletest/src/Tests/MailCaptureTest.php
+++ b/core/modules/simpletest/src/Tests/MailCaptureTest.php
@@ -25,7 +25,7 @@ function testMailSend() {
     $body = $this->randomString(128);
     $message = array(
       'id' => 'drupal_mail_test',
-      'headers' => array('Content-type'=> 'text/html'),
+      'headers' => array('Content-type' => 'text/html'),
       'subject' => $subject,
       'to' => 'foobar@example.com',
       'body' => $body,
@@ -52,7 +52,7 @@ function testMailSend() {
     for ($index = 0; $index < 5; $index++) {
       $message = array(
         'id' => 'drupal_mail_test_' . $index,
-        'headers' => array('Content-type'=> 'text/html'),
+        'headers' => array('Content-type' => 'text/html'),
         'subject' => $this->randomString(64),
         'to' => $this->randomMachineName(32) . '@example.com',
         'body' => $this->randomString(512),
diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php
index 2fe6f53..3324f61 100644
--- a/core/modules/simpletest/src/WebTestBase.php
+++ b/core/modules/simpletest/src/WebTestBase.php
@@ -2813,7 +2813,7 @@ protected function assertMailString($field_name, $string, $email_depth, $message
     $string_found = FALSE;
     // Cast SafeStringInterface objects to string.
     $string = (string) $string;
-    for ($i = count($mails) -1; $i >= count($mails) - $email_depth && $i >= 0; $i--) {
+    for ($i = count($mails) - 1; $i >= count($mails) - $email_depth && $i >= 0; $i--) {
       $mail = $mails[$i];
       // Normalize whitespace, as we don't know what the mail system might have
       // done. Any run of whitespace becomes a single space.
@@ -2869,7 +2869,7 @@ protected function assertMailPattern($field_name, $regex, $message = '', $group
    */
   protected function verboseEmail($count = 1) {
     $mails = $this->drupalGetMails();
-    for ($i = count($mails) -1; $i >= count($mails) - $count && $i >= 0; $i--) {
+    for ($i = count($mails) - 1; $i >= count($mails) - $count && $i >= 0; $i--) {
       $mail = $mails[$i];
       $this->verbose('Email:<pre>' . print_r($mail, TRUE) . '</pre>');
     }
diff --git a/core/modules/system/src/Controller/DbUpdateController.php b/core/modules/system/src/Controller/DbUpdateController.php
index 0239a41..bcb64ac 100644
--- a/core/modules/system/src/Controller/DbUpdateController.php
+++ b/core/modules/system/src/Controller/DbUpdateController.php
@@ -329,7 +329,7 @@ protected function selection(Request $request) {
             $text = $this->t('This update will been skipped due to the following missing dependencies:') . '<em>' . implode(', ', $data['missing_dependencies']) . '</em>';
           }
           else {
-            $text =  $this->t("This update will be skipped due to an error in the module's code.");
+            $text = $this->t("This update will be skipped due to an error in the module's code.");
           }
           $build['start'][$module_update_key]['#items'][$data['number']] .= '<div class="warning">' . $text . '</div>';
         }
diff --git a/core/modules/system/src/Form/DateFormatFormBase.php b/core/modules/system/src/Form/DateFormatFormBase.php
index 964ae96..94f37a5 100644
--- a/core/modules/system/src/Form/DateFormatFormBase.php
+++ b/core/modules/system/src/Form/DateFormatFormBase.php
@@ -96,7 +96,7 @@ public function form(array $form, FormStateInterface $form_state) {
       '#default_value' => $this->entity->id(),
       '#machine_name' => array(
         'exists' => array($this, 'exists'),
-        'replace_pattern' =>'([^a-z0-9_]+)|(^custom$)',
+        'replace_pattern' => '([^a-z0-9_]+)|(^custom$)',
         'error' => $this->t('The machine-readable name must be unique, and can only contain lowercase letters, numbers, and underscores. Additionally, it can not be the reserved word "custom".'),
       ),
     );
diff --git a/core/modules/system/src/Form/ModulesListForm.php b/core/modules/system/src/Form/ModulesListForm.php
index 37af3e8..313823e 100644
--- a/core/modules/system/src/Form/ModulesListForm.php
+++ b/core/modules/system/src/Form/ModulesListForm.php
@@ -276,7 +276,7 @@ protected function buildRow(array $modules, Extension $module, $distribution) {
         '#type' => 'link',
         '#title' => $this->t('Help'),
         '#url' => Url::fromRoute('help.page', ['name' => $module->getName()]),
-        '#options' => array('attributes' => array('class' =>  array('module-link', 'module-link-help'), 'title' => $this->t('Help'))),
+        '#options' => array('attributes' => array('class' => array('module-link', 'module-link-help'), 'title' => $this->t('Help'))),
       );
     }
 
diff --git a/core/modules/system/src/Form/ModulesUninstallForm.php b/core/modules/system/src/Form/ModulesUninstallForm.php
index c59b146..5062db9 100644
--- a/core/modules/system/src/Form/ModulesUninstallForm.php
+++ b/core/modules/system/src/Form/ModulesUninstallForm.php
@@ -187,7 +187,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
     $account = $this->currentUser()->id();
     // Store the values for 6 hours. This expiration time is also used in
     // the form cache.
-    $this->keyValueExpirable->setWithExpire($account, $uninstall, 6*60*60);
+    $this->keyValueExpirable->setWithExpire($account, $uninstall, 6 * 60 * 60);
 
     // Redirect to the confirm form.
     $form_state->setRedirect('system.modules_uninstall_confirm');
diff --git a/core/modules/system/src/Form/RegionalForm.php b/core/modules/system/src/Form/RegionalForm.php
index 827f74f..2b1755e 100644
--- a/core/modules/system/src/Form/RegionalForm.php
+++ b/core/modules/system/src/Form/RegionalForm.php
@@ -114,7 +114,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       '#default_value' => $configurable_timezones,
     );
 
-    $form['timezone']['configurable_timezones_wrapper'] =  array(
+    $form['timezone']['configurable_timezones_wrapper'] = array(
       '#type' => 'container',
       '#states' => array(
         // Hide the user configured timezone settings when users are forced to use
diff --git a/core/modules/system/src/Tests/Ajax/MultiFormTest.php b/core/modules/system/src/Tests/Ajax/MultiFormTest.php
index f87100d..023dc30 100644
--- a/core/modules/system/src/Tests/Ajax/MultiFormTest.php
+++ b/core/modules/system/src/Tests/Ajax/MultiFormTest.php
@@ -91,7 +91,7 @@ function testMultiForm() {
         $form = $this->xpath($form_xpath)[$offset];
         $field = $form->xpath('.' . $field_xpath);
 
-        $this->assertEqual(count($field[0]->xpath('.' . $field_items_xpath_suffix)), $i+2, 'Found the correct number of field items after an AJAX submission.');
+        $this->assertEqual(count($field[0]->xpath('.' . $field_items_xpath_suffix)), $i + 2, 'Found the correct number of field items after an AJAX submission.');
         $this->assertFieldsByValue($field[0]->xpath('.' . $button_xpath_suffix), NULL, 'Found the "add more" button after an AJAX submission.');
         $this->assertNoDuplicateIds(t('Updated page contains unique IDs'), 'Other');
       }
diff --git a/core/modules/system/src/Tests/Common/RenderWebTest.php b/core/modules/system/src/Tests/Common/RenderWebTest.php
index f6252e9..368f444 100644
--- a/core/modules/system/src/Tests/Common/RenderWebTest.php
+++ b/core/modules/system/src/Tests/Common/RenderWebTest.php
@@ -36,7 +36,7 @@ function testWrapperFormatCacheContext() {
     $this->assertTitle('Test active link class | Drupal');
     $this->assertCacheContext('url.query_args:' . MainContentViewSubscriber::WRAPPER_FORMAT);
 
-    $this->drupalGet('common-test/type-link-active-class', ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT =>  'json']]);
+    $this->drupalGet('common-test/type-link-active-class', ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'json']]);
     $this->assertIdentical('application/json', $this->drupalGetHeader('Content-Type'));
     $json = Json::decode($this->getRawContent());
     $this->assertEqual(['content', 'title'], array_keys($json));
diff --git a/core/modules/system/src/Tests/Database/AlterTest.php b/core/modules/system/src/Tests/Database/AlterTest.php
index 991ae85..3b85087 100644
--- a/core/modules/system/src/Tests/Database/AlterTest.php
+++ b/core/modules/system/src/Tests/Database/AlterTest.php
@@ -108,7 +108,7 @@ function testAlterExpression() {
     $record = $result->fetch();
 
     $this->assertEqual($record->$name_field, 'George', 'Fetched name is correct.');
-    $this->assertEqual($record->$age_field, 27*3, 'Fetched age expression is correct.');
+    $this->assertEqual($record->$age_field, 27 * 3, 'Fetched age expression is correct.');
   }
 
   /**
@@ -150,6 +150,6 @@ function testSimpleAlterSubquery() {
 
     $record = $query->execute()->fetch();
     $this->assertEqual($record->$name_field, 'George', 'Fetched name is correct.');
-    $this->assertEqual($record->$age_field, 27*3, 'Fetched age expression is correct.');
+    $this->assertEqual($record->$age_field, 27 * 3, 'Fetched age expression is correct.');
   }
 }
diff --git a/core/modules/system/src/Tests/Database/SchemaTest.php b/core/modules/system/src/Tests/Database/SchemaTest.php
index e6aea74..b908af1 100644
--- a/core/modules/system/src/Tests/Database/SchemaTest.php
+++ b/core/modules/system/src/Tests/Database/SchemaTest.php
@@ -432,7 +432,7 @@ function testUnsignedColumns() {
     // Now set up columns for the other types.
     $types = array('int', 'float', 'numeric');
     foreach ($types as $type) {
-      $column_spec = array('type' => $type, 'unsigned'=> TRUE);
+      $column_spec = array('type' => $type, 'unsigned' => TRUE);
       if ($type == 'numeric') {
         $column_spec += array('precision' => 10, 'scale' => 0);
       }
diff --git a/core/modules/system/src/Tests/Database/SelectTest.php b/core/modules/system/src/Tests/Database/SelectTest.php
index 6b45e84..c5467a2 100644
--- a/core/modules/system/src/Tests/Database/SelectTest.php
+++ b/core/modules/system/src/Tests/Database/SelectTest.php
@@ -138,7 +138,7 @@ function testSimpleSelectExpression() {
     // Ensure that we got the right record.
     $record = $result->fetch();
     $this->assertEqual($record->$name_field, 'George', 'Fetched name is correct.');
-    $this->assertEqual($record->$age_field, 27*2, 'Fetched age expression is correct.');
+    $this->assertEqual($record->$age_field, 27 * 2, 'Fetched age expression is correct.');
   }
 
   /**
@@ -159,8 +159,8 @@ function testSimpleSelectExpressionMultiple() {
     // Ensure that we got the right record.
     $record = $result->fetch();
     $this->assertEqual($record->$name_field, 'George', 'Fetched name is correct.');
-    $this->assertEqual($record->$age_double_field, 27*2, 'Fetched double age expression is correct.');
-    $this->assertEqual($record->$age_triple_field, 27*3, 'Fetched triple age expression is correct.');
+    $this->assertEqual($record->$age_double_field, 27 * 2, 'Fetched double age expression is correct.');
+    $this->assertEqual($record->$age_triple_field, 27 * 3, 'Fetched triple age expression is correct.');
   }
 
   /**
diff --git a/core/modules/system/src/Tests/Database/UpdateTest.php b/core/modules/system/src/Tests/Database/UpdateTest.php
index 3d7f47d..7b81996 100644
--- a/core/modules/system/src/Tests/Database/UpdateTest.php
+++ b/core/modules/system/src/Tests/Database/UpdateTest.php
@@ -142,7 +142,7 @@ function testPrimaryKeyUpdate() {
       ->execute();
     $this->assertIdentical($num_updated, 1, 'Updated 1 record.');
 
-    $saved_name= db_query('SELECT name FROM {test} WHERE id = :id', array(':id' => 42))->fetchField();
+    $saved_name = db_query('SELECT name FROM {test} WHERE id = :id', array(':id' => 42))->fetchField();
     $this->assertIdentical($saved_name, 'John', 'Updated primary key successfully.');
   }
 
diff --git a/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php b/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php
index ee4fcd8..c72f53c 100644
--- a/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php
+++ b/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php
@@ -328,7 +328,7 @@ public function testReferencedEntity() {
     $referencing_entity_url = $this->referencingEntity->urlInfo('canonical');
     $non_referencing_entity_url = $this->nonReferencingEntity->urlInfo('canonical');
     $listing_url = Url::fromRoute('entity.entity_test.collection_referencing_entities', [
-      'entity_reference_field_name' =>  $entity_type . '_reference',
+      'entity_reference_field_name' => $entity_type . '_reference',
       'referenced_entity_type' => $entity_type,
       'referenced_entity_id' => $this->entity->id(),
     ]);
@@ -347,7 +347,7 @@ public function testReferencedEntity() {
     $page_cache_tags = Cache::mergeTags(['rendered'], ['config:user.role.anonymous']);
     // If the block module is used, the Block page display variant is used,
     // which adds the block config entity type's list cache tags.
-    $page_cache_tags = Cache::mergeTags($page_cache_tags, \Drupal::moduleHandler()->moduleExists('block') ? ['config:block_list']: []);
+    $page_cache_tags = Cache::mergeTags($page_cache_tags, \Drupal::moduleHandler()->moduleExists('block') ? ['config:block_list'] : []);
 
     $page_cache_tags_referencing_entity = in_array('user.permissions', $this->getAccessCacheContextsForEntity($this->referencingEntity)) ? ['config:user.role.anonymous'] : [];
 
diff --git a/core/modules/system/src/Tests/Entity/EntityDefinitionUpdateTest.php b/core/modules/system/src/Tests/Entity/EntityDefinitionUpdateTest.php
index af9ccbc..0c0e9d0 100644
--- a/core/modules/system/src/Tests/Entity/EntityDefinitionUpdateTest.php
+++ b/core/modules/system/src/Tests/Entity/EntityDefinitionUpdateTest.php
@@ -347,7 +347,7 @@ public function testBundleFieldCreateDeleteWithExistingEntities() {
     $message = 'The new_bundle_field_shape column is not nullable.';
     $values = array(
       'bundle' => $entity->bundle(),
-      'deleted'=> 0,
+      'deleted' => 0,
       'entity_id' => $entity->id(),
       'revision_id' => $entity->id(),
       'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
diff --git a/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php b/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php
index a3262ea..329c0e7 100644
--- a/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php
+++ b/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php
@@ -136,7 +136,7 @@ public function testAggregation() {
     $function_expected['min'] = array(array('id_min' => 1));
     $function_expected['max'] = array(array('id_max' => 6));
     $function_expected['sum'] = array(array('id_sum' => 21));
-    $function_expected['avg'] = array(array('id_avg' => (21.0/6.0)));
+    $function_expected['avg'] = array(array('id_avg' => (21.0 / 6.0)));
 
     // Apply a simple aggregation for different aggregation functions.
     foreach ($function_expected as $aggregation_function => $expected) {
diff --git a/core/modules/system/src/Tests/Entity/EntityQueryTest.php b/core/modules/system/src/Tests/Entity/EntityQueryTest.php
index 4130804..765f9d6 100644
--- a/core/modules/system/src/Tests/Entity/EntityQueryTest.php
+++ b/core/modules/system/src/Tests/Entity/EntityQueryTest.php
@@ -539,7 +539,7 @@ protected function assertRevisionResult($keys, $expected) {
 
   protected function assertBundleOrder($order) {
     // This loop is for bundle1 entities.
-    for ($i = 1; $i <= 15; $i +=2) {
+    for ($i = 1; $i <= 15; $i += 2) {
       $ok = TRUE;
       $index1 = array_search($i, $this->queryResults);
       $this->assertNotIdentical($index1, FALSE, "$i found at $index1.");
diff --git a/core/modules/system/src/Tests/Entity/EntityViewBuilderTest.php b/core/modules/system/src/Tests/Entity/EntityViewBuilderTest.php
index fbc273b..3663c82 100644
--- a/core/modules/system/src/Tests/Entity/EntityViewBuilderTest.php
+++ b/core/modules/system/src/Tests/Entity/EntityViewBuilderTest.php
@@ -197,7 +197,7 @@ public function testEntityViewBuilderWeight() {
 
     // Create and build a test entity.
     $entity_test = $this->createTestEntity('entity_test');
-    $view =  $this->container->get('entity.manager')->getViewBuilder('entity_test')->view($entity_test, 'full');
+    $view = $this->container->get('entity.manager')->getViewBuilder('entity_test')->view($entity_test, 'full');
     $renderer->renderRoot($view);
 
     // Check that the weight is respected.
diff --git a/core/modules/system/src/Tests/Module/ClassLoaderTest.php b/core/modules/system/src/Tests/Module/ClassLoaderTest.php
index ad93586..8af711f 100644
--- a/core/modules/system/src/Tests/Module/ClassLoaderTest.php
+++ b/core/modules/system/src/Tests/Module/ClassLoaderTest.php
@@ -31,7 +31,7 @@ function testClassLoading() {
     \Drupal::service('module_installer')->install(array('module_test', 'module_autoload_test'), FALSE);
     $this->resetAll();
     // Check twice to test an unprimed and primed system_list() cache.
-    for ($i=0; $i<2; $i++) {
+    for ($i = 0; $i < 2; $i++) {
       $this->drupalGet('module-test/class-loading');
       $this->assertText($this->expected, 'Autoloader loads classes from an enabled module.');
     }
@@ -47,7 +47,7 @@ function testClassLoadingDisabledModules() {
     $this->container->get('module_installer')->uninstall(array('module_autoload_test'), FALSE);
     $this->resetAll();
     // Check twice to test an unprimed and primed system_list() cache.
-    for ($i=0; $i<2; $i++) {
+    for ($i = 0; $i < 2; $i++) {
       $this->drupalGet('module-test/class-loading');
       $this->assertNoText($this->expected, 'Autoloader does not load classes from a disabled module.');
     }
diff --git a/core/modules/system/src/Tests/Routing/MatcherDumperTest.php b/core/modules/system/src/Tests/Routing/MatcherDumperTest.php
index f98d294..f24fba7 100644
--- a/core/modules/system/src/Tests/Routing/MatcherDumperTest.php
+++ b/core/modules/system/src/Tests/Routing/MatcherDumperTest.php
@@ -49,7 +49,7 @@ protected function setUp() {
    */
   function testCreate() {
     $connection = Database::getConnection();
-    $dumper= new MatcherDumper($connection, $this->state);
+    $dumper = new MatcherDumper($connection, $this->state);
 
     $class_name = 'Drupal\Core\Routing\MatcherDumper';
     $this->assertTrue($dumper instanceof $class_name, 'Dumper created successfully');
@@ -60,7 +60,7 @@ function testCreate() {
    */
   function testAddRoutes() {
     $connection = Database::getConnection();
-    $dumper= new MatcherDumper($connection, $this->state);
+    $dumper = new MatcherDumper($connection, $this->state);
 
     $route = new Route('test');
     $collection = new RouteCollection();
@@ -81,7 +81,7 @@ function testAddRoutes() {
    */
   function testAddAdditionalRoutes() {
     $connection = Database::getConnection();
-    $dumper= new MatcherDumper($connection, $this->state);
+    $dumper = new MatcherDumper($connection, $this->state);
 
     $route = new Route('test');
     $collection = new RouteCollection();
diff --git a/core/modules/system/src/Tests/System/AccessDeniedTest.php b/core/modules/system/src/Tests/System/AccessDeniedTest.php
index 0f37320..cb8afc9 100644
--- a/core/modules/system/src/Tests/System/AccessDeniedTest.php
+++ b/core/modules/system/src/Tests/System/AccessDeniedTest.php
@@ -49,7 +49,7 @@ function testAccessDenied() {
       'site_403' => 'user/' . $this->adminUser->id(),
     ];
     $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
-    $this->assertRaw(SafeMarkup::format("The path '%path' has to start with a slash.", ['%path' =>  $edit['site_403']]));
+    $this->assertRaw(SafeMarkup::format("The path '%path' has to start with a slash.", ['%path' => $edit['site_403']]));
 
     // Use a custom 403 page.
     $edit = [
diff --git a/core/modules/system/src/Tests/System/FrontPageTest.php b/core/modules/system/src/Tests/System/FrontPageTest.php
index e5527d9..978011f 100644
--- a/core/modules/system/src/Tests/System/FrontPageTest.php
+++ b/core/modules/system/src/Tests/System/FrontPageTest.php
@@ -75,7 +75,7 @@ public function testDrupalFrontPage() {
     // Change the front page to a path without a starting slash.
     $edit = ['site_frontpage' => $this->nodePath];
     $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
-    $this->assertRaw(SafeMarkup::format("The path '%path' has to start with a slash.", ['%path' =>  $edit['site_frontpage']]));
+    $this->assertRaw(SafeMarkup::format("The path '%path' has to start with a slash.", ['%path' => $edit['site_frontpage']]));
 
     // Change the front page to a valid path.
     $edit['site_frontpage'] = '/' . $this->nodePath;
diff --git a/core/modules/system/src/Tests/System/PageNotFoundTest.php b/core/modules/system/src/Tests/System/PageNotFoundTest.php
index b7c0609..000e37a 100644
--- a/core/modules/system/src/Tests/System/PageNotFoundTest.php
+++ b/core/modules/system/src/Tests/System/PageNotFoundTest.php
@@ -39,7 +39,7 @@ function testPageNotFound() {
       'site_404' => 'user/' . $this->adminUser->id(),
     ];
     $this->drupalPostForm('admin/config/system/site-information', $edit, t('Save configuration'));
-    $this->assertRaw(SafeMarkup::format("The path '%path' has to start with a slash.", ['%path' =>  $edit['site_404']]));
+    $this->assertRaw(SafeMarkup::format("The path '%path' has to start with a slash.", ['%path' => $edit['site_404']]));
 
     // Use a custom 404 page.
     $edit = array(
diff --git a/core/modules/system/src/Tests/Update/UpdatePathWithBrokenRoutingFilledTest.php b/core/modules/system/src/Tests/Update/UpdatePathWithBrokenRoutingFilledTest.php
index e27f007c..07c728d 100644
--- a/core/modules/system/src/Tests/Update/UpdatePathWithBrokenRoutingFilledTest.php
+++ b/core/modules/system/src/Tests/Update/UpdatePathWithBrokenRoutingFilledTest.php
@@ -19,7 +19,7 @@ class UpdatePathWithBrokenRoutingFilledTest extends UpdatePathWithBrokenRoutingT
    */
   protected function setDatabaseDumpFiles() {
     parent::setDatabaseDumpFiles();
-    $this->databaseDumpFiles[0] =  __DIR__ . '/../../../tests/fixtures/update/drupal-8.filled.standard.php.gz';
+    $this->databaseDumpFiles[0] = __DIR__ . '/../../../tests/fixtures/update/drupal-8.filled.standard.php.gz';
   }
 
 }
diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc
index 11b72a5..7dab6c2 100644
--- a/core/modules/system/system.admin.inc
+++ b/core/modules/system/system.admin.inc
@@ -222,7 +222,7 @@ function theme_system_modules_details($variables) {
       '#plain_text' => $key,
       '#suffix' => '</span'
     ];
-    $description .= '<div class="admin-requirements">' . t('Machine name: @machine-name', array('@machine-name' =>  $renderer->render($machine_name_render))) . '</div>';
+    $description .= '<div class="admin-requirements">' . t('Machine name: @machine-name', array('@machine-name' => $renderer->render($machine_name_render))) . '</div>';
     if ($version) {
       $description .= '<div class="admin-requirements">' . t('Version: @module-version', array('@module-version' => $renderer->render($module['version']))) . '</div>';
     }
diff --git a/core/modules/system/tests/modules/database_test/src/Form/DatabaseTestForm.php b/core/modules/system/tests/modules/database_test/src/Form/DatabaseTestForm.php
index 73f39b1..e36cf28 100644
--- a/core/modules/system/tests/modules/database_test/src/Form/DatabaseTestForm.php
+++ b/core/modules/system/tests/modules/database_test/src/Form/DatabaseTestForm.php
@@ -57,7 +57,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       $options[$account->id()] = array(
         'title' => array('data' => array('#title' => $account->getUsername())),
         'username' => $account->getUsername(),
-        'status' =>  $account->isActive() ? t('active') : t('blocked'),
+        'status' => $account->isActive() ? t('active') : t('blocked'),
       );
     }
 
diff --git a/core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php b/core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php
index 13361fb..439627d 100644
--- a/core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php
+++ b/core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php
@@ -50,7 +50,7 @@ public function generateWarnings($collect_errors = FALSE) {
     // This will generate a notice.
     $monkey_love = $bananas;
     // This will generate a warning.
-    $awesomely_big = 1/0;
+    $awesomely_big = 1 / 0;
     // This will generate a user error. Use & to check for double escaping.
     trigger_error("Drupal & awesome", E_USER_WARNING);
     return [];
diff --git a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlock.php b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlock.php
index 375b784..546156d 100644
--- a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlock.php
+++ b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlock.php
@@ -43,10 +43,10 @@ public function getContent() {
     // nesting level. For depth=2, this returns:
     // '<ul><li>1<ul><li>1.1</li></ul></li></ul>'.
     $content = '';
-    for ($i=0; $i < $this->depth; $i++) {
-      $content .= '<ul><li>' . implode('.', array_fill(0, $i+1, '1'));
+    for ($i = 0; $i < $this->depth; $i++) {
+      $content .= '<ul><li>' . implode('.', array_fill(0, $i + 1, '1'));
     }
-    for ($i=0; $i < $this->depth; $i++) {
+    for ($i = 0; $i < $this->depth; $i++) {
       $content .= '</li></ul>';
     }
     return $content;
diff --git a/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php b/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php
index 68b627e..e4726ed 100644
--- a/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php
+++ b/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php
@@ -86,7 +86,7 @@ public function testSuggestion() {
    *   Content in theme_test_output GLOBAL.
    */
   public function testRequestListener() {
-    return ['#markup' =>  $GLOBALS['theme_test_output']];
+    return ['#markup' => $GLOBALS['theme_test_output']];
   }
 
   /**
diff --git a/core/modules/taxonomy/src/TermStorageSchema.php b/core/modules/taxonomy/src/TermStorageSchema.php
index 9923288..b31ec0a 100644
--- a/core/modules/taxonomy/src/TermStorageSchema.php
+++ b/core/modules/taxonomy/src/TermStorageSchema.php
@@ -91,7 +91,7 @@ protected function getEntitySchema(ContentEntityTypeInterface $entity_type, $res
           'description' => 'The Unix timestamp when the node was created.',
           'type' => 'int',
           'not null' => TRUE,
-          'default'=> 0,
+          'default' => 0,
         ),
       ),
       'primary key' => array('nid', 'tid'),
diff --git a/core/modules/taxonomy/src/TermViewsData.php b/core/modules/taxonomy/src/TermViewsData.php
index 9a42a84..7c9704b 100644
--- a/core/modules/taxonomy/src/TermViewsData.php
+++ b/core/modules/taxonomy/src/TermViewsData.php
@@ -63,7 +63,7 @@ public function getViewsData() {
         'relationship field' => 'tid',
         'outer field' => 'taxonomy_term_field_data.tid',
         'argument table' => 'taxonomy_term_field_data',
-        'argument field' =>  'tid',
+        'argument field' => 'tid',
         'base'   => 'node_field_data',
         'field'  => 'nid',
         'relationship' => 'node_field_data:term_node_tid'
diff --git a/core/modules/taxonomy/src/Tests/TermTest.php b/core/modules/taxonomy/src/Tests/TermTest.php
index 9d06719..99fe271 100644
--- a/core/modules/taxonomy/src/Tests/TermTest.php
+++ b/core/modules/taxonomy/src/Tests/TermTest.php
@@ -165,7 +165,7 @@ function testTaxonomyTermChildTerms() {
     for ($x = 1; $x <= 17; $x++) {
       $this->assertNoText($terms_array[$x]->getName(), $terms_array[$x]->getName() . ' not found on Page 3');
     }
-    for ($x =18; $x <= 25; $x++) {
+    for ($x = 18; $x <= 25; $x++) {
       $this->assertText($terms_array[$x]->getName(), $terms_array[$x]->getName() . ' found on Page 3');
     }
   }
diff --git a/core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php b/core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php
index dafea97..8e8abe2 100644
--- a/core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php
+++ b/core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php
@@ -83,7 +83,7 @@ public function getConstraints() {
    * {@inheritdoc}
    */
   public static function generateSampleValue(FieldDefinitionInterface $field_definition) {
-    $values['value'] = rand(pow(10, 8), pow(10, 9)-1);
+    $values['value'] = rand(pow(10, 8), pow(10, 9) - 1);
     return $values;
   }
 
diff --git a/core/modules/toolbar/js/escapeAdmin.js b/core/modules/toolbar/js/escapeAdmin.js
index 26b8a26..c7aa67c 100644
--- a/core/modules/toolbar/js/escapeAdmin.js
+++ b/core/modules/toolbar/js/escapeAdmin.js
@@ -15,7 +15,7 @@
   // back to it when browsing administrative pages. If there is a destination
   // parameter there is not need to save the current path because the page is
   // loaded within an existing "workflow".
-  if (!pathInfo.currentPathIsAdmin && !/destination=/.test(windowLocation.search)) {
+  if (!pathInfo.currentPathIsAdmin && ! / destination = / .test(windowLocation.search)) {
     sessionStorage.setItem('escapeAdminPath', windowLocation);
   }
 
diff --git a/core/modules/toolbar/src/Element/Toolbar.php b/core/modules/toolbar/src/Element/Toolbar.php
index 0db1166..630a364 100644
--- a/core/modules/toolbar/src/Element/Toolbar.php
+++ b/core/modules/toolbar/src/Element/Toolbar.php
@@ -73,7 +73,7 @@ public static function preRenderToolbar($element) {
     // toolbar presentation.
     $breakpoints = static::breakpointManager()->getBreakpointsByGroup('toolbar');
     if (!empty($breakpoints)) {
-      $media_queries =  array();
+      $media_queries = array();
       foreach ($breakpoints as $id => $breakpoint) {
         $media_queries[$id] = $breakpoint->getMediaQuery();
       }
diff --git a/core/modules/tour/src/Tests/TourTest.php b/core/modules/tour/src/Tests/TourTest.php
index d0acf45..d003a13 100644
--- a/core/modules/tour/src/Tests/TourTest.php
+++ b/core/modules/tour/src/Tests/TourTest.php
@@ -70,7 +70,7 @@ public function testTourFunctionality() {
     $elements = $this->xpath('//li[@data-id=:data_id and @class=:classes and ./p//a[@href=:href and contains(., :text)]]', array(
       ':classes' => 'tip-module-tour-test tip-type-text tip-tour-test-1',
       ':data_id' => 'tour-test-1',
-      ':href' =>  \Drupal::url('<front>', [], ['absolute' => TRUE]),
+      ':href' => \Drupal::url('<front>', [], ['absolute' => TRUE]),
       ':text' => 'Drupal',
     ));
     $this->assertEqual(count($elements), 1, 'Found Token replacement.');
diff --git a/core/modules/update/update.report.inc b/core/modules/update/update.report.inc
index c1b461d..5f198d9 100644
--- a/core/modules/update/update.report.inc
+++ b/core/modules/update/update.report.inc
@@ -43,7 +43,7 @@ function template_preprocess_update_report(&$variables) {
 
   foreach ($data as $project) {
     $project_status = array(
-      '#theme' =>  'update_project_status',
+      '#theme' => 'update_project_status',
       '#project' => $project,
     );
 
diff --git a/core/modules/user/src/AccountSettingsForm.php b/core/modules/user/src/AccountSettingsForm.php
index 6cdc238..428a805 100644
--- a/core/modules/user/src/AccountSettingsForm.php
+++ b/core/modules/user/src/AccountSettingsForm.php
@@ -219,7 +219,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
     $form['email_admin_created']['user_mail_register_admin_created_body'] = array(
       '#type' => 'textarea',
       '#title' => $this->t('Body'),
-      '#default_value' =>  $mail_config->get('register_admin_created.body'),
+      '#default_value' => $mail_config->get('register_admin_created.body'),
       '#rows' => 15,
     );
 
diff --git a/core/modules/user/src/Tests/UserAccountFormFieldsTest.php b/core/modules/user/src/Tests/UserAccountFormFieldsTest.php
index 679eec0..6a08dd1 100644
--- a/core/modules/user/src/Tests/UserAccountFormFieldsTest.php
+++ b/core/modules/user/src/Tests/UserAccountFormFieldsTest.php
@@ -33,7 +33,7 @@ function testInstallConfigureForm() {
     require_once \Drupal::root() . '/core/includes/install.inc';
     $install_state = install_state_defaults();
     $form_state = new FormState();
-    $form_state->addBuildInfo('args', [&$install_state]);
+    $form_state->addBuildInfo('args', [ & $install_state]);
     $form = $this->container->get('form_builder')
       ->buildForm('Drupal\Core\Installer\Form\SiteConfigureForm', $form_state);
 
diff --git a/core/modules/user/src/Tests/Views/BulkFormAccessTest.php b/core/modules/user/src/Tests/Views/BulkFormAccessTest.php
index d59f6b9..730d28b 100644
--- a/core/modules/user/src/Tests/Views/BulkFormAccessTest.php
+++ b/core/modules/user/src/Tests/Views/BulkFormAccessTest.php
@@ -52,7 +52,7 @@ public function testUserEditAccess() {
 
     // Test blocking the account "no_edit".
     $edit = array(
-      'user_bulk_form[' . ($no_edit_user->id() -1) . ']' => TRUE,
+      'user_bulk_form[' . ($no_edit_user->id() - 1) . ']' => TRUE,
       'action' => 'user_block_user_action',
     );
     $this->drupalPostForm('test-user-bulk-form', $edit, t('Apply'));
@@ -73,7 +73,7 @@ public function testUserEditAccess() {
     $this->assertTrue($normal_user->access('update', $admin_user));
 
     $edit = array(
-      'user_bulk_form[' . ($normal_user->id() -1) . ']' => TRUE,
+      'user_bulk_form[' . ($normal_user->id() - 1) . ']' => TRUE,
       'action' => 'user_block_user_action',
     );
     $this->drupalPostForm('test-user-bulk-form', $edit, t('Apply'));
@@ -85,7 +85,7 @@ public function testUserEditAccess() {
     $this->drupalLogin($this->drupalCreateUser());
 
     $edit = array(
-      'user_bulk_form[' . ($normal_user->id() -1) . ']' => TRUE,
+      'user_bulk_form[' . ($normal_user->id() - 1) . ']' => TRUE,
       'action' => 'user_unblock_user_action',
     );
     $this->drupalPostForm('test-user-bulk-form', $edit, t('Apply'));
@@ -115,8 +115,8 @@ public function testUserDeleteAccess() {
 
     // Test deleting the accounts "no_delete" and "may_delete".
     $edit = array(
-      'user_bulk_form[' . ($account->id() -1) . ']' => TRUE,
-      'user_bulk_form[' . ($account2->id() -1) . ']' => TRUE,
+      'user_bulk_form[' . ($account->id() - 1) . ']' => TRUE,
+      'user_bulk_form[' . ($account2->id() - 1) . ']' => TRUE,
       'action' => 'user_cancel_user_action',
     );
     $this->drupalPostForm('test-user-bulk-form', $edit, t('Apply'));
diff --git a/core/modules/views/src/EntityViewsData.php b/core/modules/views/src/EntityViewsData.php
index a9bc03e..e19eaef 100644
--- a/core/modules/views/src/EntityViewsData.php
+++ b/core/modules/views/src/EntityViewsData.php
@@ -459,7 +459,7 @@ protected function processViewsDataForLanguage($table, FieldDefinitionInterface
         $views_field['title'] = $this->t('Translation language');
       }
       if ($table == $this->entityType->getBaseTable() || $table == $this->entityType->getRevisionTable()) {
-        $views_field['title'] =  $this->t('Original language');
+        $views_field['title'] = $this->t('Original language');
       }
     }
   }
diff --git a/core/modules/views/src/Plugin/views/HandlerBase.php b/core/modules/views/src/Plugin/views/HandlerBase.php
index c6ae4b7..5aa96a1 100644
--- a/core/modules/views/src/Plugin/views/HandlerBase.php
+++ b/core/modules/views/src/Plugin/views/HandlerBase.php
@@ -288,7 +288,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
 
     $form['admin_label'] = array(
       '#type' => 'details',
-      '#title' =>$this->t('Administrative title'),
+      '#title' => $this->t('Administrative title'),
       '#weight' => 150,
     );
     $form['admin_label']['admin_label'] = array(
diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
index 980da73..95315f7 100644
--- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -1532,7 +1532,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
         );
 
         $access = $this->getOption('access');
-        $form['access']['type'] =  array(
+        $form['access']['type'] = array(
           '#title' => $this->t('Access'),
           '#title_display' => 'invisible',
           '#type' => 'radios',
@@ -1569,7 +1569,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
         );
 
         $cache = $this->getOption('cache');
-        $form['cache']['type'] =  array(
+        $form['cache']['type'] = array(
           '#title' => $this->t('Caching'),
           '#title_display' => 'invisible',
           '#type' => 'radios',
@@ -1790,7 +1790,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
         );
 
         $exposed_form = $this->getOption('exposed_form');
-        $form['exposed_form']['type'] =  array(
+        $form['exposed_form']['type'] = array(
           '#title' => $this->t('Exposed form'),
           '#title_display' => 'invisible',
           '#type' => 'radios',
@@ -1826,7 +1826,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
         );
 
         $pager = $this->getOption('pager');
-        $form['pager']['type'] =  array(
+        $form['pager']['type'] = array(
           '#title' => $this->t('Pager'),
           '#title_display' => 'invisible',
           '#type' => 'radios',
@@ -2373,7 +2373,7 @@ public static function buildBasicRenderable($view_id, $display_id, array $args =
       $build['#cache']['keys'][] = implode(',', $args);
     }
 
-    $build['#cache_properties'] =  ['#view_id', '#view_display_show_admin_links', '#view_display_plugin_id'];
+    $build['#cache_properties'] = ['#view_id', '#view_display_show_admin_links', '#view_display_plugin_id'];
 
     return $build;
 
diff --git a/core/modules/views/src/Plugin/views/display/PathPluginBase.php b/core/modules/views/src/Plugin/views/display/PathPluginBase.php
index 599e7f0..344e17a 100644
--- a/core/modules/views/src/Plugin/views/display/PathPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display/PathPluginBase.php
@@ -306,7 +306,7 @@ public function getMenuLinks() {
     $path = implode('/', $bits);
     $view_id = $this->view->storage->id();
     $display_id = $this->display['id'];
-    $view_id_display =  "{$view_id}.{$display_id}";
+    $view_id_display = "{$view_id}.{$display_id}";
     $menu_link_id = 'views.' . str_replace('/', '.', $view_id_display);
 
     if ($path) {
diff --git a/core/modules/views/src/Plugin/views/filter/Combine.php b/core/modules/views/src/Plugin/views/filter/Combine.php
index 9c62fb3..b4d719d 100644
--- a/core/modules/views/src/Plugin/views/filter/Combine.php
+++ b/core/modules/views/src/Plugin/views/filter/Combine.php
@@ -81,7 +81,7 @@ public function query() {
       $separated_fields = array();
       foreach ($fields as $key => $field) {
         $separated_fields[] = $field;
-        if ($key < $count-1) {
+        if ($key < $count - 1) {
           $separated_fields[] = "' '";
         }
       }
diff --git a/core/modules/views/src/Tests/Handler/FieldFieldTest.php b/core/modules/views/src/Tests/Handler/FieldFieldTest.php
index d71da0a..2b361f2 100644
--- a/core/modules/views/src/Tests/Handler/FieldFieldTest.php
+++ b/core/modules/views/src/Tests/Handler/FieldFieldTest.php
@@ -167,7 +167,7 @@ protected function setUp() {
       'name' => 'base value',
       'field_test' => 1,
       'field_test_multiple' => [1, 3, 7],
-      'user_id' =>  $this->testUsers[0]->id(),
+      'user_id' => $this->testUsers[0]->id(),
     ]);
     $entity->save();
     $original_entity = clone $entity;
diff --git a/core/modules/views/src/Tests/ModuleTest.php b/core/modules/views/src/Tests/ModuleTest.php
index dca3eed..caafa5e 100644
--- a/core/modules/views/src/Tests/ModuleTest.php
+++ b/core/modules/views/src/Tests/ModuleTest.php
@@ -232,7 +232,7 @@ public function testViewsFetchPluginNames() {
     $plugins = Views::fetchPluginNames('style');
     $definitions = $this->container->get('plugin.manager.views.style')->getDefinitions();
     $expected = array();
-    foreach ($definitions as $id =>$definition) {
+    foreach ($definitions as $id => $definition) {
       $expected[$id] = $definition['title'];
     }
     asort($expected);
diff --git a/core/modules/views/src/Tests/RenderCacheIntegrationTest.php b/core/modules/views/src/Tests/RenderCacheIntegrationTest.php
index a5b7cad..f37228d 100644
--- a/core/modules/views/src/Tests/RenderCacheIntegrationTest.php
+++ b/core/modules/views/src/Tests/RenderCacheIntegrationTest.php
@@ -98,7 +98,7 @@ protected function assertCacheTagsForFieldBasedView($do_assert_views_caches) {
 
     // Empty result (no entities yet).
     $this->pass('Test without entities');
-    $base_tags =  ['config:views.view.entity_test_fields', 'entity_test_list'];
+    $base_tags = ['config:views.view.entity_test_fields', 'entity_test_list'];
     $this->assertViewsCacheTags($view, $base_tags, $do_assert_views_caches, $base_tags);
     $this->assertViewsCacheTagsFromStaticRenderArray($view, $base_tags, $do_assert_views_caches);
 
diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php
index 3638c9c..c1eac67 100644
--- a/core/modules/views/src/ViewExecutable.php
+++ b/core/modules/views/src/ViewExecutable.php
@@ -1963,7 +1963,7 @@ public function validate() {
 
         $result = $this->displayHandlers->get($id)->validate();
         if (!empty($result) && is_array($result)) {
-          $errors[$id] =  $result;
+          $errors[$id] = $result;
         }
       }
     }
diff --git a/core/modules/views/tests/src/Unit/Plugin/argument_validator/EntityTest.php b/core/modules/views/tests/src/Unit/Plugin/argument_validator/EntityTest.php
index 0a00f8b..b023d57 100644
--- a/core/modules/views/tests/src/Unit/Plugin/argument_validator/EntityTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/argument_validator/EntityTest.php
@@ -219,7 +219,7 @@ public function testCalculateDependencies() {
     $options['bundles'] = array('test_bundle' => 1);
     $argumentValidator->init($this->executable, $this->display, $options);
 
-    $this->assertEquals(['config'=>['test_bundle']], $argumentValidator->calculateDependencies());
+    $this->assertEquals(['config' => ['test_bundle']], $argumentValidator->calculateDependencies());
   }
 
   /**
diff --git a/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php b/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
index 9dfbb06..573d5ed 100644
--- a/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
@@ -345,46 +345,46 @@ public function providerTestRenderAsLinkWithUrlAndOptions() {
 
     // Simple path with default options.
     $url = Url::fromRoute('test_route');
-    $data[]= [$url, [], clone $url, '/test-path', clone $url, '<a href="/test-path">value</a>'];
+    $data[] = [$url, [], clone $url, '/test-path', clone $url, '<a href="/test-path">value</a>'];
 
     // Simple url with parameters.
     $url_parameters = Url::fromRoute('test_route', ['key' => 'value']);
-    $data[]= [$url_parameters, [], clone $url_parameters, '/test-path/value', clone $url_parameters, '<a href="/test-path/value">value</a>'];
+    $data[] = [$url_parameters, [], clone $url_parameters, '/test-path/value', clone $url_parameters, '<a href="/test-path/value">value</a>'];
 
     // Add a fragment.
     $url = Url::fromRoute('test_route');
     $url_with_fragment = Url::fromRoute('test_route');
     $options = ['fragment' => 'test'] + $this->defaultUrlOptions;
     $url_with_fragment->setOptions($options);
-    $data[]= [$url, ['fragment' => 'test'], $url_with_fragment, '/test-path#test', clone $url_with_fragment, '<a href="/test-path#test">value</a>'];
+    $data[] = [$url, ['fragment' => 'test'], $url_with_fragment, '/test-path#test', clone $url_with_fragment, '<a href="/test-path#test">value</a>'];
 
     // Rel attributes.
     $url = Url::fromRoute('test_route');
     $url_with_rel = Url::fromRoute('test_route');
     $options = ['attributes' => ['rel' => 'up']] + $this->defaultUrlOptions;
     $url_with_rel->setOptions($options);
-    $data[]= [$url, ['rel' => 'up'], clone $url, '/test-path', $url_with_rel, '<a href="/test-path" rel="up">value</a>'];
+    $data[] = [$url, ['rel' => 'up'], clone $url, '/test-path', $url_with_rel, '<a href="/test-path" rel="up">value</a>'];
 
     // Target attributes.
     $url = Url::fromRoute('test_route');
     $url_with_target = Url::fromRoute('test_route');
     $options = ['attributes' => ['target' => '_blank']] + $this->defaultUrlOptions;
     $url_with_target->setOptions($options);
-    $data[]= [$url, ['target' => '_blank'], $url_with_target, '/test-path', clone $url_with_target, '<a href="/test-path" target="_blank">value</a>'];
+    $data[] = [$url, ['target' => '_blank'], $url_with_target, '/test-path', clone $url_with_target, '<a href="/test-path" target="_blank">value</a>'];
 
     // Link attributes.
     $url = Url::fromRoute('test_route');
     $url_with_link_attributes = Url::fromRoute('test_route');
     $options = ['attributes' => ['foo' => 'bar']] + $this->defaultUrlOptions;
     $url_with_link_attributes->setOptions($options);
-    $data[]= [$url, ['link_attributes' => ['foo' => 'bar']], clone $url, '/test-path', $url_with_link_attributes, '<a href="/test-path" foo="bar">value</a>'];
+    $data[] = [$url, ['link_attributes' => ['foo' => 'bar']], clone $url, '/test-path', $url_with_link_attributes, '<a href="/test-path" foo="bar">value</a>'];
 
     // Manual specified query.
     $url = Url::fromRoute('test_route');
     $url_with_query = Url::fromRoute('test_route');
     $options = ['query' => ['foo' => 'bar']] + $this->defaultUrlOptions;
     $url_with_query->setOptions($options);
-    $data[]= [$url, ['query' => ['foo' => 'bar']], clone $url_with_query, '/test-path?foo=bar', $url_with_query, '<a href="/test-path?foo=bar">value</a>'];
+    $data[] = [$url, ['query' => ['foo' => 'bar']], clone $url_with_query, '/test-path?foo=bar', $url_with_query, '<a href="/test-path?foo=bar">value</a>'];
 
     // Query specified as part of the path.
     $url = Url::fromRoute('test_route')->setOption('query', ['foo' => 'bar']);
@@ -460,7 +460,7 @@ public function testRenderAsLinkWithPathAndTokens($path, $tokens, $link_html) {
     $field->field_alias = 'key';
     $row = new ResultRow(['key' => 'value']);
 
-    $build =[
+    $build = [
       '#type' => 'inline_template',
       '#template' => 'base:test-path/' . explode('/', $path)[1],
       '#context' => ['foo' => 123],
diff --git a/core/modules/views/tests/src/Unit/ViewsDataTest.php b/core/modules/views/tests/src/Unit/ViewsDataTest.php
index 9002420..bb37f0c 100644
--- a/core/modules/views/tests/src/Unit/ViewsDataTest.php
+++ b/core/modules/views/tests/src/Unit/ViewsDataTest.php
@@ -166,7 +166,7 @@ public function testFetchBaseTables() {
     $this->assertCount(6, $base_tables, 'The correct amount of base tables were returned.');
     $base_tables_keys = array_keys($base_tables);
     for ($i = 1; $i < count($base_tables); ++$i) {
-      $prev =  $base_tables[$base_tables_keys[$i - 1]];
+      $prev = $base_tables[$base_tables_keys[$i - 1]];
       $current = $base_tables[$base_tables_keys[$i]];
       $this->assertTrue($prev['weight'] <= $current['weight'] && $prev['title'] <= $prev['title'], 'The tables are sorted as expected.');
     }
diff --git a/core/modules/views/views.views.inc b/core/modules/views/views.views.inc
index 9948880..1580e0f 100644
--- a/core/modules/views/views.views.inc
+++ b/core/modules/views/views.views.inc
@@ -418,7 +418,7 @@ function views_field_default_views_data(FieldStorageConfigInterface $field_stora
       'group' => $group,
       'title' => $label,
       'title short' => $label,
-      'help' =>  t('Appears in: @bundles.', array('@bundles' => implode(', ', $bundles_names))),
+      'help' => t('Appears in: @bundles.', array('@bundles' => implode(', ', $bundles_names))),
     );
 
     // Go through and create a list of aliases for all possible combinations of
@@ -525,7 +525,7 @@ function views_field_default_views_data(FieldStorageConfigInterface $field_stora
         'group' => $group,
         'title' => $title,
         'title short' => $title_short,
-        'help' =>  t('Appears in: @bundles.', array('@bundles' => implode(', ', $bundles_names))),
+        'help' => t('Appears in: @bundles.', array('@bundles' => implode(', ', $bundles_names))),
       );
 
       // Go through and create a list of aliases for all possible combinations of
diff --git a/core/modules/views_ui/src/Form/Ajax/AddHandler.php b/core/modules/views_ui/src/Form/Ajax/AddHandler.php
index 56cb435..867077a 100644
--- a/core/modules/views_ui/src/Form/Ajax/AddHandler.php
+++ b/core/modules/views_ui/src/Form/Ajax/AddHandler.php
@@ -162,7 +162,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
     }
     else {
       $form['options']['markup'] = array(
-        '#markup' => '<div class="js-form-item form-item">' . $this->t('There are no @types available to add.', array('@types' =>  $ltitle)) . '</div>',
+        '#markup' => '<div class="js-form-item form-item">' . $this->t('There are no @types available to add.', array('@types' => $ltitle)) . '</div>',
       );
     }
     // Add a div to show the selected items
diff --git a/core/modules/views_ui/src/ViewUI.php b/core/modules/views_ui/src/ViewUI.php
index 8168bf2..b6f655f 100644
--- a/core/modules/views_ui/src/ViewUI.php
+++ b/core/modules/views_ui/src/ViewUI.php
@@ -273,7 +273,7 @@ public function standardSubmit($form, FormStateInterface $form_state) {
     }
 
     $submit_handler = [$form_state->getFormObject(), 'submitForm'];
-    call_user_func_array($submit_handler, [&$form, $form_state]);
+    call_user_func_array($submit_handler, [ & $form, $form_state]);
   }
 
   /**
diff --git a/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php b/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php
index 21f6f5f..034d5e5 100644
--- a/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php
+++ b/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php
@@ -442,7 +442,7 @@ public function testGetWithFileInclude() {
    */
   public function testGetForInstantiationWithVariousArgumentLengths() {
     $args = array();
-    for ($i=0; $i < 12; $i++) {
+    for ($i = 0; $i < 12; $i++) {
       $instantiation_service = $this->container->get('service_test_instantiation_'. $i);
       $this->assertEquals($args, $instantiation_service->getArguments());
       $args[] = 'arg_' . $i;
@@ -481,7 +481,7 @@ public function testGetForFactoryService() {
    */
   public function testGetForFactoryClass() {
     $service = $this->container->get('service.provider');
-    $factory_service= $this->container->get('factory_class');
+    $factory_service = $this->container->get('factory_class');
 
     $this->assertInstanceOf(get_class($service), $factory_service);
     $this->assertEquals('bar', $factory_service->getSomeParameter(), 'Correct parameter was passed via the factory class instantiation.');
@@ -893,7 +893,7 @@ protected function getMockContainerDefinition() {
 
     // Test multiple arguments.
     $args = array();
-    for ($i=0; $i < 12; $i++) {
+    for ($i = 0; $i < 12; $i++) {
       $services['service_test_instantiation_' . $i] = array(
         'class' => '\Drupal\Tests\Component\DependencyInjection\MockInstantiationService',
         // Also test a collection that does not need resolving.
diff --git a/core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageBase.php b/core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageBase.php
index 59944ff..30c8341 100644
--- a/core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageBase.php
+++ b/core/tests/Drupal/Tests/Component/PhpStorage/MTimeProtectedFileStorageBase.php
@@ -42,7 +42,7 @@ protected function setUp() {
     $this->secret = $this->randomMachineName();
 
     $this->settings = array(
-      'directory' =>  $this->directory,
+      'directory' => $this->directory,
       'bin' => 'test',
       'secret' => $this->secret,
     );
@@ -74,7 +74,7 @@ public function testSecurity() {
     $php = new $this->storageClass($this->settings);
     $name = 'simpletest.php';
     $php->save($name, '<?php');
-    $expected_root_directory =  $this->directory . '/test';
+    $expected_root_directory = $this->directory . '/test';
     if (substr($name, -4) === '.php') {
       $expected_directory = $expected_root_directory . '/' . substr($name, 0, -4);
     }
diff --git a/core/tests/Drupal/Tests/Component/Utility/NumberTest.php b/core/tests/Drupal/Tests/Component/Utility/NumberTest.php
index bce3873..7e14286 100644
--- a/core/tests/Drupal/Tests/Component/Utility/NumberTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/NumberTest.php
@@ -75,8 +75,8 @@ public static function providerTestValidStep() {
 
       // Valid float steps.
       array(42, 10.5, TRUE),
-      array(1, 1/3, TRUE),
-      array(-100, 100/7, TRUE),
+      array(1, 1 / 3, TRUE),
+      array(-100, 100 / 7, TRUE),
       array(1000, -10, TRUE),
 
       // Valid and very small float steps.
@@ -88,7 +88,7 @@ public static function providerTestValidStep() {
       array(-10, 4, FALSE),
 
       // Invalid float steps.
-      array(6, 5/7, FALSE),
+      array(6, 5 / 7, FALSE),
       array(10.3, 10.25, FALSE),
 
       // Step mismatches very close to being valid.
@@ -107,12 +107,12 @@ public static function providerTestValidStepOffset() {
       // Try obvious fits.
       array(11.3, 10.3, 1, TRUE),
       array(100, 10, 50, TRUE),
-      array(-100, 90/7, -10, TRUE),
-      array(2/7 + 5/9, 1/7, 5/9, TRUE),
+      array(-100, 90 / 7, -10, TRUE),
+      array(2 / 7 + 5 / 9, 1 / 7, 5 / 9, TRUE),
 
       // Ensure a small offset is still invalid.
       array(10.3, 10.3, 0.0001, FALSE),
-      array(1/5, 1/7, 1/11, FALSE),
+      array(1 / 5, 1 / 7, 1 / 11, FALSE),
 
       // Try negative values and offsets.
       array(1000, 10, -5, FALSE),
diff --git a/core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php b/core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php
index e8af816..635e64d 100644
--- a/core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php
@@ -66,7 +66,7 @@ protected function setUp() {
       ->method('getLibrariesByExtension')
       ->with('test')
       ->will($this->returnValue($this->libraryData));
-    $this->libraryDependencyResolver= new LibraryDependencyResolver($this->libraryDiscovery);
+    $this->libraryDependencyResolver = new LibraryDependencyResolver($this->libraryDiscovery);
   }
 
 
diff --git a/core/tests/Drupal/Tests/Core/Batch/PercentagesTest.php b/core/tests/Drupal/Tests/Core/Batch/PercentagesTest.php
index 021f63e..ee92558 100644
--- a/core/tests/Drupal/Tests/Core/Batch/PercentagesTest.php
+++ b/core/tests/Drupal/Tests/Core/Batch/PercentagesTest.php
@@ -77,11 +77,11 @@ public function providerTestPercentages() {
       // but for the last pass through, when 500 out of 501 items have been
       // processed, we do not want to round up to 100%, since that would
       // erroneously indicate that the processing is complete.
-      array('total' => 1, 'current' => 100/501, '20'),
-      array('total' => 1, 'current' => 200/501, '40'),
-      array('total' => 1, 'current' => 300/501, '60'),
-      array('total' => 1, 'current' => 400/501, '80'),
-      array('total' => 1, 'current' => 500/501, '99.8'),
+      array('total' => 1, 'current' => 100 / 501, '20'),
+      array('total' => 1, 'current' => 200 / 501, '40'),
+      array('total' => 1, 'current' => 300 / 501, '60'),
+      array('total' => 1, 'current' => 400 / 501, '80'),
+      array('total' => 1, 'current' => 500 / 501, '99.8'),
     );
   }
 
diff --git a/core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php b/core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
index db8d7b7..e91c9f4 100644
--- a/core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
@@ -264,7 +264,7 @@ public static function getLabel() {
    * {@inheritdoc}
    */
   public function getContext($parameter = NULL) {
-    if (!is_string($parameter) || strlen($parameter) ===  0) {
+    if (!is_string($parameter) || strlen($parameter) === 0) {
       throw new \Exception();
     }
     return str_rot13($parameter);
diff --git a/core/tests/Drupal/Tests/Core/Path/AliasManagerTest.php b/core/tests/Drupal/Tests/Core/Path/AliasManagerTest.php
index 01290c4..fdc9b43 100644
--- a/core/tests/Drupal/Tests/Core/Path/AliasManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/Path/AliasManagerTest.php
@@ -257,7 +257,7 @@ public function testGetAliasByPathMatch() {
    * @covers ::writeCache
    */
   public function testGetAliasByPathCachedMatch() {
-    $path_part1 =  $this->randomMachineName();
+    $path_part1 = $this->randomMachineName();
     $path_part2 = $this->randomMachineName();
     $path = '/' . $path_part1 . '/' . $path_part2;
     $alias = $this->randomMachineName();
diff --git a/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php b/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
index e695c79..e69592f 100644
--- a/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
@@ -407,12 +407,12 @@ function testMergeAttachmentsFeedMerging($a, $b, $expected) {
    * @return array
    */
   public function providerTestMergeAttachmentsFeedMerging() {
-    $feed_a =         [
+    $feed_a = [
       'aggregator/rss',
       'Feed title',
     ];
 
-    $feed_b =         [
+    $feed_b = [
       'taxonomy/term/1/feed',
       'RSS - foo',
     ];
@@ -539,12 +539,12 @@ function testMergeAttachmentsHtmlHeadLinkMerging($a, $b, $expected) {
    * @return array
    */
   public function providerTestMergeAttachmentsHtmlHeadLinkMerging() {
-    $rel =         [
+    $rel = [
       'rel' => 'rel',
       'href' => 'http://rel.example.com',
     ];
 
-    $shortlink =         [
+    $shortlink = [
       'rel' => 'shortlink',
       'href' => 'http://shortlink.example.com',
     ];
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
index e2bc876..0d36129 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
@@ -999,7 +999,7 @@ public function testRenderChildrenPlaceholdersDifferentArguments() {
     $dom = Html::load($cached_element['#markup']);
     $xpath = new \DOMXPath($dom);
     $parent = $xpath->query('//details/summary[text()="Parent"]')->length;
-    $child =  $xpath->query('//details/div[@class="details-wrapper"]/details/summary[text()="Child"]')->length;
+    $child = $xpath->query('//details/div[@class="details-wrapper"]/details/summary[text()="Child"]')->length;
     $subchild = $xpath->query('//details/div[@class="details-wrapper"]/details/div[@class="details-wrapper" and text()="Subchild"]')->length;
     $this->assertTrue($parent && $child && $subchild, 'The correct data is cached: the stored #markup is not affected by placeholder #lazy_builder callbacks.');
 
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererTestBase.php b/core/tests/Drupal/Tests/Core/Render/RendererTestBase.php
index e903739..f87ae18 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererTestBase.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererTestBase.php
@@ -107,7 +107,7 @@ class RendererTestBase extends UnitTestCase {
     'auto_placeholder_conditions' => [
       'max-age' => 0,
       'contexts' => ['session', 'user'],
-      'tags' =>  ['current-temperature'],
+      'tags' => ['current-temperature'],
     ],
   ];
 
