diff --git a/core/includes/common.inc b/core/includes/common.inc
index 037c5b0f44..1757fd2372 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -708,7 +708,7 @@ function drupal_attach_tabledrag(&$element, array $options) {
     'subgroup' => NULL,
     'source' => NULL,
     'hidden' => TRUE,
-    'limit' => 0
+    'limit' => 0,
   );
 
   $group = $options['group'];
diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index ca66c11398..352e433521 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -2010,7 +2010,7 @@ function install_check_requirements($install_state) {
         'severity' => REQUIREMENT_ERROR,
         'description' => t('The @drupal installer requires that the %default-file file not be modified in any way from the original download.', array(
             '@drupal' => drupal_install_profile_distribution_name(),
-            '%default-file' => $default_file
+            '%default-file' => $default_file,
           )),
       );
     }
@@ -2071,7 +2071,7 @@ function install_check_requirements($install_state) {
             '@drupal' => drupal_install_profile_distribution_name(),
             '%file' => $file,
             '%default_file' => $default_file,
-            ':install_txt' => base_path() . 'core/INSTALL.txt'
+            ':install_txt' => base_path() . 'core/INSTALL.txt',
           )),
       );
     }
@@ -2089,7 +2089,7 @@ function install_check_requirements($install_state) {
           'description' => t('@drupal requires read permissions to %file at all times. The <a href=":handbook_url">webhosting issues</a> documentation section offers help on this and other topics.', array(
               '@drupal' => drupal_install_profile_distribution_name(),
               '%file' => $file,
-              ':handbook_url' => 'https://www.drupal.org/server-permissions'
+              ':handbook_url' => 'https://www.drupal.org/server-permissions',
             )),
         );
       }
@@ -2102,7 +2102,7 @@ function install_check_requirements($install_state) {
           'description' => t('The @drupal installer requires write permissions to %file during the installation process. The <a href=":handbook_url">webhosting issues</a> documentation section offers help on this and other topics.', array(
               '@drupal' => drupal_install_profile_distribution_name(),
               '%file' => $file,
-              ':handbook_url' => 'https://www.drupal.org/server-permissions'
+              ':handbook_url' => 'https://www.drupal.org/server-permissions',
             )),
         );
       }
@@ -2122,7 +2122,7 @@ function install_check_requirements($install_state) {
               '%file' => $file,
               '%default_file' => $default_file,
               ':install_txt' => base_path() . 'core/INSTALL.txt',
-              ':handbook_url' => 'https://www.drupal.org/server-permissions'
+              ':handbook_url' => 'https://www.drupal.org/server-permissions',
             )),
         );
       }
diff --git a/core/lib/Drupal/Component/Utility/Html.php b/core/lib/Drupal/Component/Utility/Html.php
index 5456cfaaf3..521af45f5d 100644
--- a/core/lib/Drupal/Component/Utility/Html.php
+++ b/core/lib/Drupal/Component/Utility/Html.php
@@ -122,7 +122,7 @@ public static function cleanCssIdentifier($identifier, array $filter = array(
     // Identifiers cannot start with a digit, two hyphens, or a hyphen followed by a digit.
     $identifier = preg_replace(array(
       '/^[0-9]/',
-      '/^(-[0-9])|^(--)/'
+      '/^(-[0-9])|^(--)/',
     ), array('_', '__'), $identifier);
     return $identifier;
   }
diff --git a/core/lib/Drupal/Core/Block/Plugin/Block/Broken.php b/core/lib/Drupal/Core/Block/Plugin/Block/Broken.php
index 0e4732e499..b7f3a19fff 100644
--- a/core/lib/Drupal/Core/Block/Plugin/Block/Broken.php
+++ b/core/lib/Drupal/Core/Block/Plugin/Block/Broken.php
@@ -38,7 +38,7 @@ public function blockForm($form, FormStateInterface $form_state) {
    */
   protected function brokenMessage() {
     $build['message'] = [
-      '#markup' => $this->t('This block is broken or missing. You may be missing content or you might need to enable the original module.')
+      '#markup' => $this->t('This block is broken or missing. You may be missing content or you might need to enable the original module.'),
     ];
 
     return $build;
diff --git a/core/lib/Drupal/Core/Config/PreExistingConfigException.php b/core/lib/Drupal/Core/Config/PreExistingConfigException.php
index 4c19dfaff4..aea90909c4 100644
--- a/core/lib/Drupal/Core/Config/PreExistingConfigException.php
+++ b/core/lib/Drupal/Core/Config/PreExistingConfigException.php
@@ -59,7 +59,7 @@ public static function create($extension, array $config_objects) {
     $message = SafeMarkup::format('Configuration objects (@config_names) provided by @extension already exist in active configuration',
       array(
         '@config_names' => implode(', ', static::flattenConfigObjects($config_objects)),
-        '@extension' => $extension
+        '@extension' => $extension,
       )
     );
     $e = new static($message);
diff --git a/core/lib/Drupal/Core/Config/UnmetDependenciesException.php b/core/lib/Drupal/Core/Config/UnmetDependenciesException.php
index 9ce487b34f..b0b1e197e7 100644
--- a/core/lib/Drupal/Core/Config/UnmetDependenciesException.php
+++ b/core/lib/Drupal/Core/Config/UnmetDependenciesException.php
@@ -92,7 +92,7 @@ public static function create($extension, array $config_objects) {
     $message = new FormattableMarkup('Configuration objects provided by %extension have unmet dependencies: %config_names',
       array(
         '%config_names' => static::formatConfigObjectList($config_objects),
-        '%extension' => $extension
+        '%extension' => $extension,
       )
     );
     $e = new static($message);
diff --git a/core/lib/Drupal/Core/Diff/DiffFormatter.php b/core/lib/Drupal/Core/Diff/DiffFormatter.php
index 8ebe2f4793..7dd2a210c0 100644
--- a/core/lib/Drupal/Core/Diff/DiffFormatter.php
+++ b/core/lib/Drupal/Core/Diff/DiffFormatter.php
@@ -57,7 +57,7 @@ protected function _block_header($xbeg, $xlen, $ybeg, $ylen) {
       array(
         'data' => $ybeg + $this->line_stats['offset']['y'],
         'colspan' => 2,
-      )
+      ),
     );
   }
 
@@ -94,7 +94,7 @@ protected function addedLine($line) {
       array(
         'data' => ['#markup' => $line],
         'class' => 'diff-context diff-addedline',
-      )
+      ),
     );
   }
 
@@ -116,7 +116,7 @@ protected function deletedLine($line) {
       array(
         'data' => ['#markup' => $line],
         'class' => 'diff-context diff-deletedline',
-      )
+      ),
     );
   }
 
@@ -135,7 +135,7 @@ protected function contextLine($line) {
       array(
         'data' => ['#markup' => $line],
         'class' => 'diff-context',
-      )
+      ),
     );
   }
 
diff --git a/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php b/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php
index ac94c26d00..26eef0662b 100644
--- a/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php
+++ b/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php
@@ -37,7 +37,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
         $form['deleted_translations'] = array(
           '#theme' => 'item_list',
           '#title' => $this->t('The following @entity-type translations will be deleted:', [
-            '@entity-type' => $entity->getEntityType()->getLowercaseLabel()
+            '@entity-type' => $entity->getEntityType()->getLowercaseLabel(),
           ]),
           '#items' => $languages,
         );
diff --git a/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php b/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php
index cd90ecce05..f7cc23d819 100644
--- a/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php
+++ b/core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php
@@ -141,7 +141,7 @@ public function getRenderer($field_name) {
         'form_mode' => $this->originalMode,
         // No need to prepare, defaults have been merged in setComponent().
         'prepare' => FALSE,
-        'configuration' => $configuration
+        'configuration' => $configuration,
       ));
     }
     else {
@@ -327,7 +327,7 @@ public function getPluginCollections() {
     }
 
     return array(
-      'widgets' => new EntityDisplayPluginCollection($this->pluginManager, $configurations)
+      'widgets' => new EntityDisplayPluginCollection($this->pluginManager, $configurations),
     );
   }
 
diff --git a/core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php b/core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php
index a6b83cf2c4..ce4f2172c5 100644
--- a/core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php
+++ b/core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php
@@ -198,7 +198,7 @@ public function getRenderer($field_name) {
         'view_mode' => $this->originalMode,
         // No need to prepare, defaults have been merged in setComponent().
         'prepare' => FALSE,
-        'configuration' => $configuration
+        'configuration' => $configuration,
       ));
     }
     else {
@@ -298,7 +298,7 @@ public function getPluginCollections() {
     }
 
     return array(
-      'formatters' => new EntityDisplayPluginCollection($this->pluginManager, $configurations)
+      'formatters' => new EntityDisplayPluginCollection($this->pluginManager, $configurations),
     );
   }
 
diff --git a/core/lib/Drupal/Core/Entity/EntityDisplayBase.php b/core/lib/Drupal/Core/Entity/EntityDisplayBase.php
index b6c73e5550..e5c4b3f9b8 100644
--- a/core/lib/Drupal/Core/Entity/EntityDisplayBase.php
+++ b/core/lib/Drupal/Core/Entity/EntityDisplayBase.php
@@ -164,7 +164,7 @@ protected function init() {
           // Extra fields are visible by default unless they explicitly say so.
           if (!isset($definition['visible']) || $definition['visible'] == TRUE) {
             $this->content[$name] = array(
-              'weight' => $definition['weight']
+              'weight' => $definition['weight'],
             );
           }
           else {
diff --git a/core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php b/core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php
index 5242e8db4a..1ad45e11eb 100644
--- a/core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php
+++ b/core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php
@@ -96,7 +96,7 @@ public function getDerivativeDefinitions($base_plugin_definition) {
         if ($bundle !== $entity_type_id) {
           $this->derivatives[$entity_type_id . ':' . $bundle] = array(
             'label' => $bundle_info['label'],
-            'constraints' => $this->derivatives[$entity_type_id]['constraints']
+            'constraints' => $this->derivatives[$entity_type_id]['constraints'],
           ) + $base_plugin_definition;
         }
       }
diff --git a/core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php b/core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php
index fb40fd5b4a..7ac0bb9904 100644
--- a/core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php
+++ b/core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php
@@ -253,7 +253,7 @@ protected function getEditFormRoute(EntityTypeInterface $entity_type) {
       $route
         ->setDefaults([
           '_entity_form' => "{$entity_type_id}.{$operation}",
-          '_title_callback' => '\Drupal\Core\Entity\Controller\EntityController::editTitle'
+          '_title_callback' => '\Drupal\Core\Entity\Controller\EntityController::editTitle',
         ])
         ->setRequirement('_entity_access', "{$entity_type_id}.update")
         ->setOption('parameters', [
diff --git a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
index 96cea9f49d..627e2d6e27 100644
--- a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
+++ b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
@@ -983,7 +983,7 @@ protected function initializeRevisionDataTable(ContentEntityTypeInterface $entit
         $entity_type_id . '__revision' => array(
           'table' => $this->storage->getRevisionTable(),
           'columns' => array($revision_key => $revision_key),
-        )
+        ),
       ),
     );
 
@@ -1795,7 +1795,7 @@ protected function getDedicatedTableSchema(FieldStorageDefinitionInterface $stor
           'size' => 'tiny',
           'not null' => TRUE,
           'default' => 0,
-          'description' => 'A boolean indicating whether this data item has been deleted'
+          'description' => 'A boolean indicating whether this data item has been deleted',
         ),
         'entity_id' => $id_schema,
         'revision_id' => $revision_id_schema,
diff --git a/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php
index 24b4c70d5f..718c1e1a72 100644
--- a/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/ConfigImportSubscriber.php
@@ -214,19 +214,19 @@ protected function validateDependencies(ConfigImporter $config_importer) {
         if (!isset($core_extension['module'][$owner]) && isset($module_data[$owner])) {
           $message = $this->t('Configuration %name depends on the %owner module that will not be installed after import.', array(
             '%name' => $name,
-            '%owner' => $module_data[$owner]->info['name']
+            '%owner' => $module_data[$owner]->info['name'],
           ));
         }
         elseif (!isset($core_extension['theme'][$owner]) && isset($theme_data[$owner])) {
           $message = $this->t('Configuration %name depends on the %owner theme that will not be installed after import.', array(
             '%name' => $name,
-            '%owner' => $theme_data[$owner]->info['name']
+            '%owner' => $theme_data[$owner]->info['name'],
           ));
         }
         elseif (!isset($core_extension['module'][$owner]) && !isset($core_extension['theme'][$owner])) {
           $message = $this->t('Configuration %name depends on the %owner extension that will not be installed after import.', array(
             '%name' => $name,
-            '%owner' => $owner
+            '%owner' => $owner,
           ));
         }
 
diff --git a/core/lib/Drupal/Core/Extension/module.api.php b/core/lib/Drupal/Core/Extension/module.api.php
index 74fc76699e..25b49de986 100644
--- a/core/lib/Drupal/Core/Extension/module.api.php
+++ b/core/lib/Drupal/Core/Extension/module.api.php
@@ -935,7 +935,7 @@ function hook_requirements($phase) {
     $requirements['drupal'] = array(
       'title' => t('Drupal'),
       'value' => \Drupal::VERSION,
-      'severity' => REQUIREMENT_INFO
+      'severity' => REQUIREMENT_INFO,
     );
   }
 
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/LanguageFormatter.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/LanguageFormatter.php
index 3a0ee89d54..c10328a713 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/LanguageFormatter.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/LanguageFormatter.php
@@ -118,7 +118,7 @@ protected function viewValue(FieldItemInterface $item) {
     // name. That only depends on formatter settings and no language condition.
     $languages = $this->getSetting('native_language') ? $this->languageManager->getNativeLanguages(LanguageInterface::STATE_ALL) : $this->languageManager->getLanguages(LanguageInterface::STATE_ALL);
     return [
-      '#plain_text' => $item->language && isset($languages[$item->language->getId()]) ? $languages[$item->language->getId()]->getName() : ''
+      '#plain_text' => $item->language && isset($languages[$item->language->getId()]) ? $languages[$item->language->getId()]->getName() : '',
     ];
   }
 
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
index a8849fd37b..f0d74902c6 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
@@ -52,7 +52,7 @@ public static function schema(FieldStorageDefinitionInterface $field_definition)
           'type' => 'numeric',
           'precision' => $field_definition->getSetting('precision'),
           'scale' => $field_definition->getSetting('scale'),
-        )
+        ),
       ),
     );
   }
@@ -98,7 +98,7 @@ public function getConstraints() {
       'value' => array(
         'Regex' => array(
           'pattern' => '/^[+-]?((\d+(\.\d*)?)|(\.\d+))$/i',
-        )
+        ),
       ),
     ));
 
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php
index f42a2b4252..0b044ecb0c 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php
@@ -59,7 +59,7 @@ public function getConstraints() {
         'Length' => array(
           'max' => Email::EMAIL_MAX_LENGTH,
           'maxMessage' => t('%name: the email address can not be longer than @max characters.', array('%name' => $this->getFieldDefinition()->getLabel(), '@max' => Email::EMAIL_MAX_LENGTH)),
-        )
+        ),
       ),
     ));
 
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
index 3babf42875..f65cd87034 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
@@ -510,7 +510,7 @@ public static function onDependencyRemoval(FieldDefinitionInterface $field_defin
                   '%target_entity_type' => $bundle->getEntityType()->getBundleOf(),
                   '%field_name' => $field_definition->getName(),
                   '%entity_type' => $field_definition->getTargetEntityTypeId(),
-                  '%bundle' => $field_definition->getTargetBundle()
+                  '%bundle' => $field_definition->getTargetBundle(),
                 ]);
               }
             }
@@ -657,8 +657,8 @@ public static function getPreconfiguredOptions() {
         'field_storage_config' => [
           'settings' => [
             'target_type' => $entity_type->id(),
-          ]
-        ]
+          ],
+        ],
       ];
     }
 
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php
index 678ab1ff2d..959834d7bd 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php
@@ -86,7 +86,7 @@ public function getConstraints() {
           'Range' => array(
             'min' => $min,
             'minMessage' => t('%name: the value may be no less than %min.', array('%name' => $label, '%min' => $min)),
-          )
+          ),
         ),
       ));
     }
@@ -98,7 +98,7 @@ public function getConstraints() {
           'Range' => array(
             'max' => $max,
             'maxMessage' => t('%name: the value may be no greater than %max.', array('%name' => $label, '%max' => $max)),
-          )
+          ),
         ),
       ));
     }
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php
index 3824810a92..5d30fa8986 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/EntityReferenceAutocompleteWidget.php
@@ -107,7 +107,7 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
     if ($this->getSelectionHandlerSetting('auto_create') && ($bundle = $this->getAutocreateBundle())) {
       $element['#autocreate'] = array(
         'bundle' => $bundle,
-        'uid' => ($entity instanceof EntityOwnerInterface) ? $entity->getOwnerId() : \Drupal::currentUser()->id()
+        'uid' => ($entity instanceof EntityOwnerInterface) ? $entity->getOwnerId() : \Drupal::currentUser()->id(),
       );
     }
 
diff --git a/core/lib/Drupal/Core/Field/PluginSettingsBase.php b/core/lib/Drupal/Core/Field/PluginSettingsBase.php
index a6196ec525..25282f7303 100644
--- a/core/lib/Drupal/Core/Field/PluginSettingsBase.php
+++ b/core/lib/Drupal/Core/Field/PluginSettingsBase.php
@@ -141,7 +141,7 @@ public function calculateDependencies() {
     if (!empty($this->thirdPartySettings)) {
       // Create dependencies on any modules providing third party settings.
       return array(
-        'module' => array_keys($this->thirdPartySettings)
+        'module' => array_keys($this->thirdPartySettings),
       );
     }
     return array();
diff --git a/core/lib/Drupal/Core/Form/FormBuilder.php b/core/lib/Drupal/Core/Form/FormBuilder.php
index 803b4f1c57..0b37ebe612 100644
--- a/core/lib/Drupal/Core/Form/FormBuilder.php
+++ b/core/lib/Drupal/Core/Form/FormBuilder.php
@@ -763,9 +763,9 @@ public function prepareForm($form_id, &$form, FormStateInterface &$form_state) {
           '#attached' => [
             'placeholders' => [
               $placeholder => [
-                '#lazy_builder' => ['form_builder:renderFormTokenPlaceholder', [$placeholder]]
-              ]
-            ]
+                '#lazy_builder' => ['form_builder:renderFormTokenPlaceholder', [$placeholder]],
+              ],
+            ],
           ],
           '#cache' => [
             'max-age' => 0,
diff --git a/core/lib/Drupal/Core/Form/form.api.php b/core/lib/Drupal/Core/Form/form.api.php
index 701871f929..79aa9a99bf 100644
--- a/core/lib/Drupal/Core/Form/form.api.php
+++ b/core/lib/Drupal/Core/Form/form.api.php
@@ -129,7 +129,7 @@ function callback_batch_finished($success, $results, $operations) {
     $error_operation = reset($operations);
     $message = t('An error occurred while processing %error_operation with arguments: @arguments', array(
       '%error_operation' => $error_operation[0],
-      '@arguments' => print_r($error_operation[1], TRUE)
+      '@arguments' => print_r($error_operation[1], TRUE),
     ));
     drupal_set_message($message, 'error');
   }
diff --git a/core/lib/Drupal/Core/Http/ClientFactory.php b/core/lib/Drupal/Core/Http/ClientFactory.php
index 3dcf35374e..e429bbb9cd 100644
--- a/core/lib/Drupal/Core/Http/ClientFactory.php
+++ b/core/lib/Drupal/Core/Http/ClientFactory.php
@@ -58,7 +58,7 @@ public function fromOptions(array $config = []) {
         'http' => NULL,
         'https' => NULL,
         'no' => [],
-      ]
+      ],
     ];
 
     $config = NestedArray::mergeDeep($default_config, Settings::get('http_client_config', []), $config);
diff --git a/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php b/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php
index f5d1c7fe50..26b20848e1 100644
--- a/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php
+++ b/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php
@@ -122,7 +122,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       $form['settings'][$key]['#states'] = array(
         'visible' => array(
           ':input[name=driver]' => array('value' => $key),
-        )
+        ),
       );
     }
 
diff --git a/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php b/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php
index 9f3b4284f3..a05d651e26 100644
--- a/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php
+++ b/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php
@@ -63,7 +63,7 @@ public function getAll() {
       'SELECT name, value FROM {' . $this->connection->escapeTable($this->table) . '} WHERE collection = :collection AND expire > :now',
       array(
         ':collection' => $this->collection,
-        ':now' => REQUEST_TIME
+        ':now' => REQUEST_TIME,
       ))->fetchAllKeyed();
     return array_map(array($this->serializer, 'decode'), $values);
   }
diff --git a/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php b/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php
index d09502826f..441fc9f877 100644
--- a/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php
+++ b/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php
@@ -215,20 +215,20 @@ public function schemaDefinition() {
           'type' => 'varchar_ascii',
           'length' => 255,
           'not null' => TRUE,
-          'default' => ''
+          'default' => '',
         ],
         'value' => [
           'description' => 'A value for the semaphore.',
           'type' => 'varchar_ascii',
           'length' => 255,
           'not null' => TRUE,
-          'default' => ''
+          'default' => '',
         ],
         'expire' => [
           'description' => 'A Unix timestamp with microseconds indicating when the semaphore should expire.',
           'type' => 'float',
           'size' => 'big',
-          'not null' => TRUE
+          'not null' => TRUE,
         ],
       ],
       'indexes' => [
diff --git a/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php
index 455113d4bf..cf9c1a9e4b 100644
--- a/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php
+++ b/core/lib/Drupal/Core/Render/Element/SystemCompactLink.php
@@ -65,7 +65,7 @@ public static function preRenderCompactLink($element) {
       $element['#url'] = BaseUrl::fromRoute('system.admin_compact_page', array('mode' => 'off'));
       $element['#options'] = array(
         'attributes' => array('title' => t('Expand layout to include descriptions.')),
-        'query' => \Drupal::destination()->getAsArray()
+        'query' => \Drupal::destination()->getAsArray(),
       );
     }
     else {
diff --git a/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php b/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
index 54c40f63ca..ec567712ac 100644
--- a/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
+++ b/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
@@ -226,7 +226,7 @@ protected function prepare(array $main_content, Request $request, RouteMatchInte
           return $this->renderer->render($main_content, FALSE);
         });
         $main_content = $this->renderCache->getCacheableRenderArray($main_content) + [
-          '#title' => isset($main_content['#title']) ? $main_content['#title'] : NULL
+          '#title' => isset($main_content['#title']) ? $main_content['#title'] : NULL,
         ];
       }
 
diff --git a/core/lib/Drupal/Core/Render/RenderCache.php b/core/lib/Drupal/Core/Render/RenderCache.php
index 12d52e936b..02e13d5eac 100644
--- a/core/lib/Drupal/Core/Render/RenderCache.php
+++ b/core/lib/Drupal/Core/Render/RenderCache.php
@@ -259,7 +259,7 @@ public function set(array &$elements, array $pre_bubbling_elements) {
           '#cache' => [
             'keys' => $elements['#cache']['keys'],
             'contexts' => $redirect_cacheability_updated->getCacheContexts(),
-          ]
+          ],
         ];
         $cid = $this->createCacheID($recalculated_cid_pseudo_element);
         // Ensure the about-to-be-cached data uses the merged cache contexts.
diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php
index 4bbffc3e70..001b579419 100644
--- a/core/lib/Drupal/Core/Render/Renderer.php
+++ b/core/lib/Drupal/Core/Render/Renderer.php
@@ -324,7 +324,7 @@ protected function doRender(&$elements, $is_root_call = FALSE) {
         // by the Renderer, so we don't crash on them; them being missing when
         // their #lazy_builder callback is invoked won't surprise the developer.
         '#weight',
-        '#printed'
+        '#printed',
       ];
       $unsupported_keys = array_diff(array_keys($elements), $supported_keys);
       if (count($unsupported_keys)) {
diff --git a/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php b/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php
index 5829e396ec..cff58504a3 100644
--- a/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php
+++ b/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php
@@ -73,7 +73,7 @@ public function validate($value, Constraint $constraint) {
     if (!$valid) {
       // @todo: Provide a good violation message for each problem.
       $this->context->addViolation($constraint->message, array(
-        '%value' => is_object($value) ? get_class($value) : (is_array($value) ? 'Array' : (string) $value)
+        '%value' => is_object($value) ? get_class($value) : (is_array($value) ? 'Array' : (string) $value),
       ));
     }
   }
diff --git a/core/modules/action/src/Form/ActionAdminManageForm.php b/core/modules/action/src/Form/ActionAdminManageForm.php
index de487557d1..91b530a948 100644
--- a/core/modules/action/src/Form/ActionAdminManageForm.php
+++ b/core/modules/action/src/Form/ActionAdminManageForm.php
@@ -71,7 +71,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       '#empty_option' => $this->t('Choose an advanced action'),
     );
     $form['parent']['actions'] = array(
-      '#type' => 'actions'
+      '#type' => 'actions',
     );
     $form['parent']['actions']['submit'] = array(
       '#type' => 'submit',
diff --git a/core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php b/core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php
index 1737715f8a..928b3c9b81 100644
--- a/core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php
+++ b/core/modules/action/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php
@@ -40,7 +40,7 @@ public function testActions() {
     $this->assertEntity('send_e_mail', 'Send e-mail', 'system', [
       "recipient" => "test@example.com",
       "subject" => "Drupal migration test",
-      "message" => "Drupal migration test"
+      "message" => "Drupal migration test",
     ]);
     $this->assertEntity('redirect_to_url', 'Redirect to URL', 'system', ["url" => "https://www.drupal.org"]);
 
diff --git a/core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php b/core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php
index 1601449d67..47049f33c6 100644
--- a/core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php
+++ b/core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php
@@ -40,7 +40,7 @@ public function testActions() {
     $this->assertEntity('send_e_mail', 'Send e-mail', 'system', [
       "recipient" => "test@example.com",
       "subject" => "Drupal migration test",
-      "message" => "Drupal migration test"
+      "message" => "Drupal migration test",
     ]);
     $this->assertEntity('redirect_to_url', 'Redirect to URL', 'system', ["url" => "https://www.drupal.org"]);
 
diff --git a/core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php b/core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php
index 99ec48d9ce..2bd2e9318e 100644
--- a/core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php
+++ b/core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php
@@ -87,7 +87,7 @@ public function fetch(FeedInterface $feed) {
       $response = $this->httpClientFactory->fromOptions(['allow_redirects' => [
         'on_redirect' => function(RequestInterface $request, ResponseInterface $response, UriInterface $uri) use (&$actual_uri) {
           $actual_uri = (string) $uri;
-        }
+        },
       ]])->send($request);
 
       // In case of a 304 Not Modified, there is no new content, so return
diff --git a/core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php b/core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php
index 267cc3447c..2ce7820a7d 100644
--- a/core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php
+++ b/core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php
@@ -27,7 +27,7 @@ public function providerSource() {
       [
         'iid' => 1,
         'ip' => '127.0.0.1',
-      ]
+      ],
     ];
     $tests[0]['expected_data'] = [
       [
diff --git a/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php b/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php
index 69ec86fdc2..77e994c90c 100644
--- a/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php
+++ b/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php
@@ -55,7 +55,7 @@ public static function cases(ContainerInterface $container = NULL, AccountInterf
       [
         '#lazy_builder' => [
           'Drupal\Core\Render\Element\StatusMessages::renderMessages',
-          [NULL]
+          [NULL],
         ],
       ]
     );
@@ -104,7 +104,7 @@ public static function cases(ContainerInterface $container = NULL, AccountInterf
         ],
         [
           'command' => 'add_css',
-          'data' => '<link rel="stylesheet" href="' . base_path() . 'core/themes/classy/css/components/messages.css?' . $container->get('state')->get('system.css_js_query_string') . '" media="all" />' . "\n"
+          'data' => '<link rel="stylesheet" href="' . base_path() . 'core/themes/classy/css/components/messages.css?' . $container->get('state')->get('system.css_js_query_string') . '" media="all" />' . "\n",
         ],
         [
           'command' => 'insert',
@@ -153,7 +153,7 @@ public static function cases(ContainerInterface $container = NULL, AccountInterf
       [
         '#lazy_builder' => [
           'route_processor_csrf:renderPlaceholderCsrfToken',
-          ['admin/config/user-interface/shortcut/manage/default/add-link-inline']
+          ['admin/config/user-interface/shortcut/manage/default/add-link-inline'],
         ],
       ]
     );
@@ -180,14 +180,14 @@ public static function cases(ContainerInterface $container = NULL, AccountInterf
         '#attached' => [
           'placeholders' => [
             '<hello' => ['#lazy_builder' => ['\Drupal\big_pipe_test\BigPipeTestController::helloOrYarhar', []]],
-          ]
+          ],
         ],
       ],
       '<hello',
       [
         '#lazy_builder' => [
           'hello_or_yarhar',
-          []
+          [],
         ],
       ]
     );
@@ -214,9 +214,9 @@ public static function cases(ContainerInterface $container = NULL, AccountInterf
               '#pre_render' => [
                 '\Drupal\big_pipe_test\BigPipeTestController::currentTime',
               ],
-            ]
-          ]
-        ]
+            ],
+          ],
+        ],
       ],
       '<time>CURRENT TIME</time>',
       [
diff --git a/core/modules/big_pipe/tests/modules/big_pipe_regression_test/src/BigPipeRegressionTestController.php b/core/modules/big_pipe/tests/modules/big_pipe_regression_test/src/BigPipeRegressionTestController.php
index 50e618bee1..20bedcb383 100644
--- a/core/modules/big_pipe/tests/modules/big_pipe_regression_test/src/BigPipeRegressionTestController.php
+++ b/core/modules/big_pipe/tests/modules/big_pipe_regression_test/src/BigPipeRegressionTestController.php
@@ -39,7 +39,7 @@ public function regression2802923() {
   public static function currentTime() {
     return [
       '#markup' => '<time datetime="' . date('Y-m-d', time()) . '"></time>',
-      '#cache' => ['max-age' => 0]
+      '#cache' => ['max-age' => 0],
     ];
   }
 
diff --git a/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php
index 22307708fd..e421a42354 100644
--- a/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php
+++ b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php
@@ -92,7 +92,7 @@ public function multiOccurrence() {
   public static function currentTime() {
     return [
       '#markup' => '<time datetime="' . date('Y-m-d', 668948400) . '"></time>',
-      '#cache' => ['max-age' => 0]
+      '#cache' => ['max-age' => 0],
     ];
   }
 
diff --git a/core/modules/block/block.install b/core/modules/block/block.install
index 106815c4d1..4f79303386 100644
--- a/core/modules/block/block.install
+++ b/core/modules/block/block.install
@@ -78,7 +78,7 @@ function block_update_8001() {
         // their own updates.
         $update_backup[$block->get('id')] = [
           'missing_context_ids' => $backup_values,
-          'status' => $block->get('status')
+          'status' => $block->get('status'),
         ];
       }
     }
diff --git a/core/modules/block/block.post_update.php b/core/modules/block/block.post_update.php
index d3544e8bd6..4ecc554896 100644
--- a/core/modules/block/block.post_update.php
+++ b/core/modules/block/block.post_update.php
@@ -65,7 +65,7 @@ function block_post_update_disable_blocks_with_missing_contexts() {
     foreach ($blocks as $disabled_block_id => $disabled_block) {
       $message .= '<li>' . t('@label (Visibility: @plugin_ids)', array(
           '@label' => $disabled_block->get('settings')['label'],
-          '@plugin_ids' => implode(', ', array_intersect_key($condition_plugin_id_label_map, array_flip(array_keys($block_update_8001[$disabled_block_id]['missing_context_ids']))))
+          '@plugin_ids' => implode(', ', array_intersect_key($condition_plugin_id_label_map, array_flip(array_keys($block_update_8001[$disabled_block_id]['missing_context_ids'])))),
         )) . '</li>';
     }
     $message .= '</ul>';
diff --git a/core/modules/block/src/BlockListBuilder.php b/core/modules/block/src/BlockListBuilder.php
index 6e5c968b6c..655d06edbb 100644
--- a/core/modules/block/src/BlockListBuilder.php
+++ b/core/modules/block/src/BlockListBuilder.php
@@ -212,7 +212,7 @@ protected function buildBlocksForm() {
         '#theme_wrappers' => array(
           'container' => array(
             '#attributes' => array('class' => 'region-title__action'),
-          )
+          ),
         ),
         '#prefix' => $title,
         '#type' => 'link',
diff --git a/core/modules/block/src/Tests/BlockTest.php b/core/modules/block/src/Tests/BlockTest.php
index 57f4647644..da69a31960 100644
--- a/core/modules/block/src/Tests/BlockTest.php
+++ b/core/modules/block/src/Tests/BlockTest.php
@@ -146,7 +146,7 @@ public function testAddBlockFromLibraryWithWeight() {
       $block_name = 'system_powered_by_block';
       $add_url = Url::fromRoute('block.admin_add', [
         'plugin_id' => $block_name,
-        'theme' => $default_theme
+        'theme' => $default_theme,
       ]);
       $links = $this->xpath('//a[contains(@href, :href)]', [':href' => $add_url->toString()]);
       $this->assertEqual(1, count($links), 'Found one matching link.');
@@ -537,14 +537,14 @@ public function testBlockUserRoleDelete() {
 
     $this->assertEqual($block->getVisibility()['user_role']['roles'], [
       $role1->id() => $role1->id(),
-      $role2->id() => $role2->id()
+      $role2->id() => $role2->id(),
     ]);
 
     $role1->delete();
 
     $block = Block::load($block->id());
     $this->assertEqual($block->getVisibility()['user_role']['roles'], [
-      $role2->id() => $role2->id()
+      $role2->id() => $role2->id(),
     ]);
   }
 
diff --git a/core/modules/block/tests/modules/block_test/src/Form/FavoriteAnimalTestForm.php b/core/modules/block/tests/modules/block_test/src/Form/FavoriteAnimalTestForm.php
index 9aa74c65b3..bd5a0427c1 100644
--- a/core/modules/block/tests/modules/block_test/src/Form/FavoriteAnimalTestForm.php
+++ b/core/modules/block/tests/modules/block_test/src/Form/FavoriteAnimalTestForm.php
@@ -20,7 +20,7 @@ public function getFormId() {
   public function buildForm(array $form, FormStateInterface $form_state) {
     $form['favorite_animal'] = [
       '#type' => 'textfield',
-      '#title' => $this->t('Your favorite animal.')
+      '#title' => $this->t('Your favorite animal.'),
     ];
 
     $form['submit_animal'] = [
diff --git a/core/modules/block/tests/modules/block_test/src/Form/TestForm.php b/core/modules/block/tests/modules/block_test/src/Form/TestForm.php
index 08fd6f69a0..5954781b03 100644
--- a/core/modules/block/tests/modules/block_test/src/Form/TestForm.php
+++ b/core/modules/block/tests/modules/block_test/src/Form/TestForm.php
@@ -20,7 +20,7 @@ public function getFormId() {
   public function buildForm(array $form, FormStateInterface $form_state) {
     $form['email'] = [
       '#type' => 'email',
-      '#title' => $this->t('Your .com email address.')
+      '#title' => $this->t('Your .com email address.'),
     ];
 
     $form['show'] = [
diff --git a/core/modules/block/tests/src/Functional/BlockLanguageTest.php b/core/modules/block/tests/src/Functional/BlockLanguageTest.php
index 7e0a0e1851..d95162e5c3 100644
--- a/core/modules/block/tests/src/Functional/BlockLanguageTest.php
+++ b/core/modules/block/tests/src/Functional/BlockLanguageTest.php
@@ -164,7 +164,7 @@ public function testMultipleLanguageTypes() {
 
     // Change visibility to now depend on content language for this block.
     $edit = [
-      'visibility[language][context_mapping][language]' => '@language.current_language_context:language_content'
+      'visibility[language][context_mapping][language]' => '@language.current_language_context:language_content',
     ];
     $this->drupalPostForm('admin/structure/block/manage/' . $block_id, $edit, t('Save block'));
 
diff --git a/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php b/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php
index c5dfba21c3..4fcb0ce967 100644
--- a/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php
+++ b/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php
@@ -115,7 +115,7 @@ public function testBlockMigration() {
     $visibility = [];
     $visibility['user_role']['id'] = 'user_role';
     $visibility['user_role']['roles'] = [
-      'migrate_test_role_1' => 'migrate_test_role_1'
+      'migrate_test_role_1' => 'migrate_test_role_1',
     ];
     $context_mapping['user'] = '@user.current_user_context:current_user';
     $visibility['user_role']['context_mapping'] = $context_mapping;
diff --git a/core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php b/core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php
index d37f8c7964..66c2679bb0 100644
--- a/core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php
+++ b/core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php
@@ -87,7 +87,7 @@ public function providerSource() {
         'schema_version' => '6055',
         'weight' => '0',
         'info' => 'a:0:{}',
-      ]
+      ],
     ];
 
     // The expected results.
@@ -104,7 +104,7 @@ public function providerSource() {
         'pages' => '',
         'title' => 'Test Title 01',
         'cache' => -1,
-        'roles' => [2]
+        'roles' => [2],
       ],
       [
         'bid' => 2,
@@ -118,7 +118,7 @@ public function providerSource() {
         'pages' => '<front>',
         'title' => 'Test Title 02',
         'cache' => -1,
-        'roles' => [2]
+        'roles' => [2],
       ],
     ];
     return $tests;
diff --git a/core/modules/block/tests/src/Unit/BlockRepositoryTest.php b/core/modules/block/tests/src/Unit/BlockRepositoryTest.php
index aab11fe9fc..06ebdfd3d2 100644
--- a/core/modules/block/tests/src/Unit/BlockRepositoryTest.php
+++ b/core/modules/block/tests/src/Unit/BlockRepositoryTest.php
@@ -118,21 +118,21 @@ public function testGetVisibleBlocksPerRegion(array $blocks_config, array $expec
   public function providerBlocksConfig() {
     $blocks_config = array(
       'block1' => array(
-        AccessResult::allowed(), 'top', 0
+        AccessResult::allowed(), 'top', 0,
       ),
       // Test a block without access.
       'block2' => array(
-        AccessResult::forbidden(), 'bottom', 0
+        AccessResult::forbidden(), 'bottom', 0,
       ),
       // Test some blocks in the same region with specific weight.
       'block4' => array(
-        AccessResult::allowed(), 'bottom', 5
+        AccessResult::allowed(), 'bottom', 5,
       ),
       'block3' => array(
-        AccessResult::allowed(), 'bottom', 5
+        AccessResult::allowed(), 'bottom', 5,
       ),
       'block5' => array(
-        AccessResult::allowed(), 'bottom', -5
+        AccessResult::allowed(), 'bottom', -5,
       ),
     );
 
@@ -142,7 +142,7 @@ public function providerBlocksConfig() {
         'top' => ['block1'],
         'center' => [],
         'bottom' => ['block5', 'block3', 'block4'],
-      ]
+      ],
     ];
     return $test_cases;
   }
diff --git a/core/modules/block_content/src/Controller/BlockContentController.php b/core/modules/block_content/src/Controller/BlockContentController.php
index 1caad74153..8a03e72a7e 100644
--- a/core/modules/block_content/src/Controller/BlockContentController.php
+++ b/core/modules/block_content/src/Controller/BlockContentController.php
@@ -102,7 +102,7 @@ public function add(Request $request) {
    */
   public function addForm(BlockContentTypeInterface $block_content_type, Request $request) {
     $block = $this->blockContentStorage->create(array(
-      'type' => $block_content_type->id()
+      'type' => $block_content_type->id(),
     ));
     if (($theme = $request->query->get('theme')) && in_array($theme, array_keys($this->themeHandler->listInfo()))) {
       // We have navigated to this page from the block library and will keep track
diff --git a/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php b/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
index 2afd0402eb..cc456d240d 100644
--- a/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
+++ b/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
@@ -164,9 +164,9 @@ public function build() {
       return array(
         '#markup' => $this->t('Block with uuid %uuid does not exist. <a href=":url">Add custom block</a>.', array(
           '%uuid' => $this->getDerivativeId(),
-          ':url' => $this->urlGenerator->generate('block_content.add_page')
+          ':url' => $this->urlGenerator->generate('block_content.add_page'),
         )),
-        '#access' => $this->account->hasPermission('administer blocks')
+        '#access' => $this->account->hasPermission('administer blocks'),
       );
     }
   }
diff --git a/core/modules/block_content/src/Plugin/Derivative/BlockContent.php b/core/modules/block_content/src/Plugin/Derivative/BlockContent.php
index ab564451cb..cbd98b8194 100644
--- a/core/modules/block_content/src/Plugin/Derivative/BlockContent.php
+++ b/core/modules/block_content/src/Plugin/Derivative/BlockContent.php
@@ -51,7 +51,7 @@ public function getDerivativeDefinitions($base_plugin_definition) {
       $this->derivatives[$block_content->uuid()] = $base_plugin_definition;
       $this->derivatives[$block_content->uuid()]['admin_label'] = $block_content->label();
       $this->derivatives[$block_content->uuid()]['config_dependencies']['content'] = array(
-        $block_content->getConfigDependencyName()
+        $block_content->getConfigDependencyName(),
       );
     }
     return parent::getDerivativeDefinitions($base_plugin_definition);
diff --git a/core/modules/block_content/src/Tests/BlockContentCreationTest.php b/core/modules/block_content/src/Tests/BlockContentCreationTest.php
index e45892c5c3..3e6580bb4e 100644
--- a/core/modules/block_content/src/Tests/BlockContentCreationTest.php
+++ b/core/modules/block_content/src/Tests/BlockContentCreationTest.php
@@ -30,7 +30,7 @@ class BlockContentCreationTest extends BlockContentTestBase {
    */
   protected $permissions = array(
     'administer blocks',
-    'administer block_content display'
+    'administer block_content display',
   );
 
   /**
@@ -56,7 +56,7 @@ public function testBlockContentCreation() {
     // Check that the Basic block has been created.
     $this->assertRaw(format_string('@block %name has been created.', array(
       '@block' => 'basic',
-      '%name' => $edit['info[0][value]']
+      '%name' => $edit['info[0][value]'],
     )), 'Basic block created.');
 
     // Check that the view mode setting is hidden because only one exists.
@@ -73,7 +73,7 @@ public function testBlockContentCreation() {
 
     // Check that the Basic block has been created.
     $this->assertRaw(format_string('A custom block with block description %value already exists.', array(
-      '%value' => $edit['info[0][value]']
+      '%value' => $edit['info[0][value]'],
     )));
     $this->assertResponse(200);
   }
@@ -103,7 +103,7 @@ public function testBlockContentCreationMultipleViewModes() {
     // Check that the Basic block has been created.
     $this->assertRaw(format_string('@block %name has been created.', array(
       '@block' => 'basic',
-      '%name' => $edit['info[0][value]']
+      '%name' => $edit['info[0][value]'],
     )), 'Basic block created.');
 
     // Save our block permanently
@@ -153,7 +153,7 @@ public function testBlockContentCreationMultipleViewModes() {
 
     // Check that the Basic block has been created.
     $this->assertRaw(format_string('A custom block with block description %value already exists.', array(
-      '%value' => $edit['info[0][value]']
+      '%value' => $edit['info[0][value]'],
     )));
     $this->assertResponse(200);
   }
diff --git a/core/modules/block_content/src/Tests/BlockContentTestBase.php b/core/modules/block_content/src/Tests/BlockContentTestBase.php
index 28c6e227ef..72af30d79d 100644
--- a/core/modules/block_content/src/Tests/BlockContentTestBase.php
+++ b/core/modules/block_content/src/Tests/BlockContentTestBase.php
@@ -32,7 +32,7 @@
    * @var array
    */
   protected $permissions = array(
-    'administer blocks'
+    'administer blocks',
   );
 
   /**
@@ -81,7 +81,7 @@ protected function createBlockContent($title = FALSE, $bundle = 'basic', $save =
     $block_content = BlockContent::create(array(
       'info' => $title,
       'type' => $bundle,
-      'langcode' => 'en'
+      'langcode' => 'en',
     ));
     if ($block_content && $save === TRUE) {
       $block_content->save();
diff --git a/core/modules/block_content/src/Tests/BlockContentTranslationUITest.php b/core/modules/block_content/src/Tests/BlockContentTranslationUITest.php
index 332bf3d734..0b6cb67675 100644
--- a/core/modules/block_content/src/Tests/BlockContentTranslationUITest.php
+++ b/core/modules/block_content/src/Tests/BlockContentTranslationUITest.php
@@ -24,7 +24,7 @@ class BlockContentTranslationUITest extends ContentTranslationUITestBase {
     'content_translation',
     'block',
     'field_ui',
-    'block_content'
+    'block_content',
   );
 
   /**
@@ -60,7 +60,7 @@ protected function setupBundle() {
     $bundle = BlockContentType::create(array(
       'id' => $this->bundle,
       'label' => $this->bundle,
-      'revision' => FALSE
+      'revision' => FALSE,
     ));
     $bundle->save();
   }
@@ -73,7 +73,7 @@ public function getTranslatorPermissions() {
       'translate any entity',
       'access administration pages',
       'administer blocks',
-      'administer block_content fields'
+      'administer block_content fields',
     ));
   }
 
@@ -96,7 +96,7 @@ protected function createBlockContent($title = FALSE, $bundle = FALSE) {
     $block_content = BlockContent::create(array(
       'info' => $title,
       'type' => $bundle,
-      'langcode' => 'en'
+      'langcode' => 'en',
     ));
     $block_content->save();
     return $block_content;
@@ -162,7 +162,7 @@ public function testDisabledBundle() {
     $bundle = BlockContentType::create(array(
       'id' => $disabled_bundle,
       'label' => $disabled_bundle,
-      'revision' => FALSE
+      'revision' => FALSE,
     ));
     $bundle->save();
 
diff --git a/core/modules/block_content/src/Tests/BlockContentTypeTest.php b/core/modules/block_content/src/Tests/BlockContentTypeTest.php
index 8f6ffe19d8..407b69729b 100644
--- a/core/modules/block_content/src/Tests/BlockContentTypeTest.php
+++ b/core/modules/block_content/src/Tests/BlockContentTypeTest.php
@@ -26,7 +26,7 @@ class BlockContentTypeTest extends BlockContentTestBase {
    */
   protected $permissions = array(
     'administer blocks',
-    'administer block_content fields'
+    'administer block_content fields',
   );
 
   /**
diff --git a/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php b/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php
index 65d33c88b1..303df46596 100644
--- a/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php
+++ b/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php
@@ -94,7 +94,7 @@ protected function createBlockContentType(array $values = array()) {
     $values += array(
       'id' => $id,
       'label' => $id,
-      'revision' => FALSE
+      'revision' => FALSE,
     );
     $bundle = BlockContentType::create($values);
     $status = $bundle->save();
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php b/core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php
index f44a773bfd..e7edf7bc74 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php
@@ -29,7 +29,7 @@ protected function createEntity() {
     $block_content_type = BlockContentType::create(array(
       'id' => 'basic',
       'label' => 'basic',
-      'revision' => FALSE
+      'revision' => FALSE,
     ));
     $block_content_type->save();
     block_content_add_body_field($block_content_type->id());
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php b/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php
index a68f4233df..f403693794 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php
@@ -39,7 +39,7 @@ public function testImport() {
       'info' => $info,
       'body' => array('value' => $this->randomMachineName(32)),
       'type' => 'basic',
-      'id' => $test_id
+      'id' => $test_id,
     );
     $block = BlockContent::create($block_array);
     $block->enforceIsNew(TRUE);
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentTestBase.php b/core/modules/block_content/tests/src/Functional/BlockContentTestBase.php
index e5e7736409..86a9382139 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentTestBase.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentTestBase.php
@@ -29,7 +29,7 @@
    * @var array
    */
   protected $permissions = array(
-    'administer blocks'
+    'administer blocks',
   );
 
   /**
@@ -78,7 +78,7 @@ protected function createBlockContent($title = FALSE, $bundle = 'basic', $save =
     $block_content = BlockContent::create(array(
       'info' => $title,
       'type' => $bundle,
-      'langcode' => 'en'
+      'langcode' => 'en',
     ));
     if ($block_content && $save === TRUE) {
       $block_content->save();
diff --git a/core/modules/book/book.module b/core/modules/book/book.module
index ecccb74527..d51e09ad30 100644
--- a/core/modules/book/book.module
+++ b/core/modules/book/book.module
@@ -110,7 +110,7 @@ function book_node_links_alter(array &$links, NodeInterface $node, array &$conte
               'type' => 'html',
               'node' => $node->id(),
             ]),
-            'attributes' => array('title' => t('Show a printer-friendly version of this book page and its sub-pages.'))
+            'attributes' => array('title' => t('Show a printer-friendly version of this book page and its sub-pages.')),
           );
         }
       }
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
index 16c3759d93..e04d9f1326 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
@@ -70,7 +70,7 @@ public function getConfig(Editor $editor) {
    */
   public function getCssFiles(Editor $editor) {
     return array(
-      drupal_get_path('module', 'ckeditor') . '/css/plugins/drupalimagecaption/ckeditor.drupalimagecaption.css'
+      drupal_get_path('module', 'ckeditor') . '/css/plugins/drupalimagecaption/ckeditor.drupalimagecaption.css',
     );
   }
 
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php
index 980d5e909a..42948541f3 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php
@@ -128,7 +128,7 @@ public function settingsForm(array $form, FormStateInterface $form_state, Editor
    */
   function getCssFiles(Editor $editor) {
     return array(
-        drupal_get_path('module', 'ckeditor') . '/css/plugins/language/ckeditor.language.css'
+        drupal_get_path('module', 'ckeditor') . '/css/plugins/language/ckeditor.language.css',
     );
   }
 
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
index 9c4f224752..f7bb4f7e6d 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
@@ -155,7 +155,7 @@ protected function generateStylesSetSetting($styles) {
       );
       if (!empty($classes)) {
         $configured_style['attributes'] = array(
-          'class' => implode(' ', array_map('trim', $classes))
+          'class' => implode(' ', array_map('trim', $classes)),
         );
       }
       $styles_set[] = $configured_style;
diff --git a/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php b/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php
index ba054a61ce..488198fe8f 100644
--- a/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php
+++ b/core/modules/ckeditor/src/Plugin/Editor/CKEditor.php
@@ -210,8 +210,8 @@ public function settingsForm(array $form, FormStateInterface $form_state, Editor
              0 => array(
                'name' => 'All existing buttons',
                'items' => $all_buttons,
-             )
-           )
+             ),
+           ),
          ),
         ),
         'plugins' => $settings['plugins'],
diff --git a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php
index 92c448b691..bf9af344b7 100644
--- a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php
+++ b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php
@@ -151,7 +151,7 @@ function testCssFiles() {
 
     // Case 2: CKEditor iframe instance CSS file.
     $expected = array(
-      'llama_css' => array(drupal_get_path('module', 'ckeditor_test') . '/css/llama.css')
+      'llama_css' => array(drupal_get_path('module', 'ckeditor_test') . '/css/llama.css'),
     );
     $this->assertIdentical($expected, $this->manager->getCssFiles($editor), 'Iframe instance CSS file found.');
   }
diff --git a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
index 3711a54e38..87697aee67 100644
--- a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
+++ b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
@@ -50,7 +50,7 @@ protected function setUp() {
           'status' => 1,
           'settings' => array(
             'allowed_html' => '<h2 id> <h3> <h4> <h5> <h6> <p> <br> <strong> <a href hreflang>',
-          )
+          ),
         ),
       ),
     ));
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php
index 294b39c92a..8b58afa983 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php
@@ -32,7 +32,7 @@ function getButtons() {
    */
   function getCssFiles(Editor $editor) {
     return array(
-      drupal_get_path('module', 'ckeditor_test') . '/css/llama.css'
+      drupal_get_path('module', 'ckeditor_test') . '/css/llama.css',
     );
   }
 
diff --git a/core/modules/ckeditor/tests/src/Unit/CKEditorPluginManagerTest.php b/core/modules/ckeditor/tests/src/Unit/CKEditorPluginManagerTest.php
index 6b9f9af87e..dfa1f163f7 100644
--- a/core/modules/ckeditor/tests/src/Unit/CKEditorPluginManagerTest.php
+++ b/core/modules/ckeditor/tests/src/Unit/CKEditorPluginManagerTest.php
@@ -20,7 +20,7 @@ public function providerGetEnabledButtons() {
     return [
       'empty' => [
         [],
-        []
+        [],
       ],
       '1 row, 1 group' => [
         [
@@ -28,9 +28,9 @@ public function providerGetEnabledButtons() {
           [
             // Group 1.
             ['name' => 'Formatting', 'items' => ['Bold', 'Italic']],
-          ]
+          ],
         ],
-        ['Bold', 'Italic']
+        ['Bold', 'Italic'],
       ],
       '1 row, >1 groups' => [
         [
@@ -42,7 +42,7 @@ public function providerGetEnabledButtons() {
             ['name' => 'Linking', 'items' => ['Link']],
           ],
         ],
-        ['Bold', 'Italic', 'Link']
+        ['Bold', 'Italic', 'Link'],
       ],
       '2 rows, 1 group each' => [
         [
@@ -76,7 +76,7 @@ public function providerGetEnabledButtons() {
             ['name' => 'Advanced', 'items' => ['Llama']],
           ],
         ],
-        ['Bold', 'Italic', 'Link', 'Source', 'Llama']
+        ['Bold', 'Italic', 'Link', 'Source', 'Llama'],
       ],
     ];
   }
diff --git a/core/modules/comment/src/CommentForm.php b/core/modules/comment/src/CommentForm.php
index 3a2e704100..cc10bf93d7 100644
--- a/core/modules/comment/src/CommentForm.php
+++ b/core/modules/comment/src/CommentForm.php
@@ -367,7 +367,7 @@ public function save(array $form, FormStateInterface $form_state) {
       // Add a log entry.
       $logger->notice('Comment posted: %subject.', array(
           '%subject' => $comment->getSubject(),
-          'link' => $this->l(t('View'), $comment->urlInfo()->setOption('fragment', 'comment-' . $comment->id()))
+          'link' => $this->l(t('View'), $comment->urlInfo()->setOption('fragment', 'comment-' . $comment->id())),
         ));
 
       // Explain the approval queue if necessary.
diff --git a/core/modules/comment/src/CommentTypeForm.php b/core/modules/comment/src/CommentTypeForm.php
index 594726ae62..741221b1d1 100644
--- a/core/modules/comment/src/CommentTypeForm.php
+++ b/core/modules/comment/src/CommentTypeForm.php
@@ -109,7 +109,7 @@ public function form(array $form, FormStateInterface $form_state) {
         '#default_value' => $comment_type->getTargetEntityTypeId(),
         '#title' => t('Target entity type'),
         '#options' => $options,
-        '#description' => t('The target entity type can not be changed after the comment type has been created.')
+        '#description' => t('The target entity type can not be changed after the comment type has been created.'),
       );
     }
     else {
diff --git a/core/modules/comment/src/CommentViewsData.php b/core/modules/comment/src/CommentViewsData.php
index e4ca5b0259..2b0c855090 100644
--- a/core/modules/comment/src/CommentViewsData.php
+++ b/core/modules/comment/src/CommentViewsData.php
@@ -202,7 +202,7 @@ public function getViewsData() {
               array(
                 'field' => 'entity_type',
                 'value' => $type,
-                'table' => 'comment_field_data'
+                'table' => 'comment_field_data',
               ),
             ),
           ),
diff --git a/core/modules/comment/src/Form/ConfirmDeleteMultiple.php b/core/modules/comment/src/Form/ConfirmDeleteMultiple.php
index c66e428e92..d5232e1f74 100644
--- a/core/modules/comment/src/Form/ConfirmDeleteMultiple.php
+++ b/core/modules/comment/src/Form/ConfirmDeleteMultiple.php
@@ -95,7 +95,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
         '#type' => 'hidden',
         '#value' => $cid,
         '#prefix' => '<li>',
-        '#suffix' => Html::escape($comment->label()) . '</li>'
+        '#suffix' => Html::escape($comment->label()) . '</li>',
       );
       $comment_counter++;
     }
diff --git a/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php b/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php
index 5d16ed0297..5fb99b36ac 100644
--- a/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php
+++ b/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php
@@ -25,7 +25,7 @@ protected function getCommentVariables() {
         $return['comment'] = array(
           'comment_type' => 'comment',
           'label' => $this->t('Default comments'),
-          'description' => $this->t('Allows commenting on content')
+          'description' => $this->t('Allows commenting on content'),
         );
       }
       else {
@@ -33,7 +33,7 @@ protected function getCommentVariables() {
         $return['comment_no_subject'] = array(
           'comment_type' => 'comment_no_subject',
           'label' => $this->t('Comments without subject field'),
-          'description' => $this->t('Allows commenting on content, comments without subject field')
+          'description' => $this->t('Allows commenting on content, comments without subject field'),
         );
       }
     }
diff --git a/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php b/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php
index 61a5d17ef4..4bcb61bd5d 100644
--- a/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php
+++ b/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php
@@ -32,9 +32,9 @@ public function query() {
         array(
           'field' => 'uid',
           'operator' => '!=',
-          'value' => '0'
-        )
-      )
+          'value' => '0',
+        ),
+      ),
     );
     $join = \Drupal::service('plugin.manager.views.join')->createInstance('standard', $definition);
 
diff --git a/core/modules/comment/src/Tests/CommentAdminTest.php b/core/modules/comment/src/Tests/CommentAdminTest.php
index 5ae57cb819..be3952e809 100644
--- a/core/modules/comment/src/Tests/CommentAdminTest.php
+++ b/core/modules/comment/src/Tests/CommentAdminTest.php
@@ -52,7 +52,7 @@ function testApprovalAdminInterface() {
       'comment_body' => $body,
       'entity_id' => $this->node->id(),
       'entity_type' => 'node',
-      'field_name' => 'comment'
+      'field_name' => 'comment',
     ));
     $this->drupalLogout();
 
@@ -129,7 +129,7 @@ function testApprovalNodeInterface() {
       'comment_body' => $body,
       'entity_id' => $this->node->id(),
       'entity_type' => 'node',
-      'field_name' => 'comment'
+      'field_name' => 'comment',
     ));
     $this->drupalLogout();
 
diff --git a/core/modules/comment/src/Tests/CommentCSSTest.php b/core/modules/comment/src/Tests/CommentCSSTest.php
index f015f3fb39..b118171b7e 100644
--- a/core/modules/comment/src/Tests/CommentCSSTest.php
+++ b/core/modules/comment/src/Tests/CommentCSSTest.php
@@ -20,7 +20,7 @@ protected function setUp() {
     // Allow anonymous users to see comments.
     user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, array(
       'access comments',
-      'access content'
+      'access content',
     ));
   }
 
diff --git a/core/modules/comment/src/Tests/CommentNonNodeTest.php b/core/modules/comment/src/Tests/CommentNonNodeTest.php
index e43e0bc42a..ac0e8a660c 100644
--- a/core/modules/comment/src/Tests/CommentNonNodeTest.php
+++ b/core/modules/comment/src/Tests/CommentNonNodeTest.php
@@ -251,7 +251,7 @@ function getUnapprovedComment($subject) {
    */
   function testCommentFunctionality() {
     $limited_user = $this->drupalCreateUser(array(
-      'administer entity_test fields'
+      'administer entity_test fields',
     ));
     $this->drupalLogin($limited_user);
     // Test that default field exists.
diff --git a/core/modules/comment/src/Tests/CommentPagerTest.php b/core/modules/comment/src/Tests/CommentPagerTest.php
index aa7d09997b..36b6d2784c 100644
--- a/core/modules/comment/src/Tests/CommentPagerTest.php
+++ b/core/modules/comment/src/Tests/CommentPagerTest.php
@@ -316,7 +316,7 @@ function testTwoPagers() {
         'settings' => array(
           'pager_id' => 1,
           'view_mode' => 'default',
-        )
+        ),
       ))
       ->save();
 
diff --git a/core/modules/comment/src/Tests/CommentTranslationUITest.php b/core/modules/comment/src/Tests/CommentTranslationUITest.php
index e89bd3f318..ac08a42d3d 100644
--- a/core/modules/comment/src/Tests/CommentTranslationUITest.php
+++ b/core/modules/comment/src/Tests/CommentTranslationUITest.php
@@ -98,7 +98,7 @@ protected function createEntity($values, $langcode, $comment_type = 'comment_art
     $node = $this->drupalCreateNode(array(
       'type' => $node_type,
       $field_name => array(
-        array('status' => CommentItemInterface::OPEN)
+        array('status' => CommentItemInterface::OPEN),
       ),
     ));
     $values['entity_id'] = $node->id();
diff --git a/core/modules/comment/src/Tests/Views/DefaultViewRecentCommentsTest.php b/core/modules/comment/src/Tests/Views/DefaultViewRecentCommentsTest.php
index ff151c68b6..c7a20b427f 100644
--- a/core/modules/comment/src/Tests/Views/DefaultViewRecentCommentsTest.php
+++ b/core/modules/comment/src/Tests/Views/DefaultViewRecentCommentsTest.php
@@ -119,7 +119,7 @@ public function testBlockDisplay() {
     $map = array(
       'subject' => 'subject',
       'cid' => 'cid',
-      'comment_field_data_created' => 'created'
+      'comment_field_data_created' => 'created',
     );
     $expected_result = array();
     foreach (array_values($this->commentsCreated) as $key => $comment) {
diff --git a/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php b/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php
index 674c7f3e33..a2d5acf34d 100644
--- a/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php
+++ b/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php
@@ -201,7 +201,7 @@ public function testAccessToAdministrativeFields() {
     // Generate permutations.
     $combinations = [
       'comment' => [$comment1, $comment2, $comment3, $comment4],
-      'user' => [$comment_admin_user, $comment_enabled_user, $comment_no_edit_user, $comment_disabled_user, $anonymous_user]
+      'user' => [$comment_admin_user, $comment_enabled_user, $comment_no_edit_user, $comment_disabled_user, $anonymous_user],
     ];
     $permutations = TestBase::generatePermutations($combinations);
 
diff --git a/core/modules/comment/tests/src/Kernel/CommentValidationTest.php b/core/modules/comment/tests/src/Kernel/CommentValidationTest.php
index eb37006ac4..bd908ea890 100644
--- a/core/modules/comment/tests/src/Kernel/CommentValidationTest.php
+++ b/core/modules/comment/tests/src/Kernel/CommentValidationTest.php
@@ -51,7 +51,7 @@ public function testValidation() {
       'type' => 'comment',
       'settings' => array(
         'comment_type' => 'comment',
-      )
+      ),
     ))->save();
 
     // Create a page node type.
diff --git a/core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php b/core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php
index dae2c480cf..5249620bb9 100644
--- a/core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php
+++ b/core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php
@@ -111,7 +111,7 @@ public function testUsername() {
                 'field' => 'name',
                 'id' => 'name',
                 'plugin_id' => 'field',
-                'type' => 'comment_username'
+                'type' => 'comment_username',
               ],
               'subject' => [
                 'table' => 'comment_field_data',
diff --git a/core/modules/config/src/Form/ConfigSync.php b/core/modules/config/src/Form/ConfigSync.php
index 51cded2690..f8fc569658 100644
--- a/core/modules/config/src/Form/ConfigSync.php
+++ b/core/modules/config/src/Form/ConfigSync.php
@@ -212,12 +212,12 @@ public function buildForm(array $form, FormStateInterface $form_state) {
         sort($change_list);
         $message = [
           [
-            '#markup' => $this->t('The following items in your active configuration have changes since the last import that may be lost on the next import.')
+            '#markup' => $this->t('The following items in your active configuration have changes since the last import that may be lost on the next import.'),
           ],
           [
             '#theme' => 'item_list',
             '#items' => $change_list,
-          ]
+          ],
         ];
         drupal_set_message($this->renderer->renderPlain($message), 'warning');
       }
@@ -293,7 +293,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
               'class' => array('use-ajax'),
               'data-dialog-type' => 'modal',
               'data-dialog-options' => json_encode(array(
-                'width' => 700
+                'width' => 700,
               )),
             ),
           );
diff --git a/core/modules/config/tests/config_entity_static_cache_test/src/ConfigOverrider.php b/core/modules/config/tests/config_entity_static_cache_test/src/ConfigOverrider.php
index 2345d55175..5cec7e7608 100644
--- a/core/modules/config/tests/config_entity_static_cache_test/src/ConfigOverrider.php
+++ b/core/modules/config/tests/config_entity_static_cache_test/src/ConfigOverrider.php
@@ -18,7 +18,7 @@ public function loadOverrides($names) {
     return array(
       'config_test.dynamic.test_1' => array(
         'label' => 'Overridden label',
-      )
+      ),
     );
   }
 
diff --git a/core/modules/config/tests/config_events_test/src/EventSubscriber.php b/core/modules/config/tests/config_events_test/src/EventSubscriber.php
index bfa70db3ca..87f375f514 100644
--- a/core/modules/config/tests/config_events_test/src/EventSubscriber.php
+++ b/core/modules/config/tests/config_events_test/src/EventSubscriber.php
@@ -41,7 +41,7 @@ public function configEventRecorder(ConfigCrudEvent $event, $name) {
       'event_name' => $name,
       'current_config_data' => $config->get(),
       'original_config_data' => $config->getOriginal(),
-      'raw_config_data' => $config->getRawData()
+      'raw_config_data' => $config->getRawData(),
     ));
   }
 
diff --git a/core/modules/config/tests/config_override_test/src/ConfigOverriderLowPriority.php b/core/modules/config/tests/config_override_test/src/ConfigOverriderLowPriority.php
index 6f0b12d1ef..16bb0f9476 100644
--- a/core/modules/config/tests/config_override_test/src/ConfigOverriderLowPriority.php
+++ b/core/modules/config/tests/config_override_test/src/ConfigOverriderLowPriority.php
@@ -24,7 +24,7 @@ public function loadOverrides($names) {
             // This override should apply because it is not overridden by the
             // higher priority listener.
             'slogan' => 'Yay for overrides!',
-          )
+          ),
         );
       }
     }
diff --git a/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php b/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
index 5aa194edcf..6e8b031d16 100644
--- a/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
@@ -21,7 +21,7 @@ class ConfigLanguageOverrideWebTest extends BrowserTestBase {
   public static $modules = [
     'block',
     'language',
-    'system'
+    'system',
   ];
 
   /**
diff --git a/core/modules/config_translation/src/ConfigEntityMapper.php b/core/modules/config_translation/src/ConfigEntityMapper.php
index d172e1b705..0619778e23 100644
--- a/core/modules/config_translation/src/ConfigEntityMapper.php
+++ b/core/modules/config_translation/src/ConfigEntityMapper.php
@@ -263,7 +263,7 @@ protected function processRoute(Route $route) {
     $parameters += array(
       $this->entityType => array(
         'type' => 'entity:' . $this->entityType,
-      )
+      ),
     );
     $route->setOption('parameters', $parameters);
   }
diff --git a/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php b/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php
index 5018efa21f..d47fc1c5aa 100644
--- a/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php
+++ b/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php
@@ -910,7 +910,7 @@ public function testSequenceTranslation() {
     $expected = array(
       'kitten',
       'llama',
-      'elephant'
+      'elephant',
     );
     $actual = $config_factory
       ->getEditable('config_translation_test.content')
diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php
index 9ddbdf3a91..ed9fd9aa3e 100644
--- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php
+++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationDateFormatUiTest.php
@@ -15,7 +15,7 @@ class ConfigTranslationDateFormatUiTest extends BrowserTestBase {
   public static $modules = array(
     'language',
     'config_translation',
-    'system'
+    'system',
   );
 
   protected function setUp() {
diff --git a/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php b/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php
index db4af565bc..78c0a76c34 100644
--- a/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php
+++ b/core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php
@@ -189,7 +189,7 @@ public function doCustomContentTypeListTest() {
     $block_content_type = BlockContentType::create(array(
       'id' => Unicode::strtolower($this->randomMachineName(16)),
       'label' => $this->randomMachineName(),
-      'revision' => FALSE
+      'revision' => FALSE,
     ));
     $block_content_type->save();
 
@@ -395,7 +395,7 @@ public function doFieldListTest() {
     $block_content_type = BlockContentType::create(array(
       'id' => 'basic',
       'label' => 'Basic',
-      'revision' => FALSE
+      'revision' => FALSE,
     ));
     $block_content_type->save();
     $field = FieldConfig::create([
diff --git a/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/I18nProfileFieldTest.php b/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/I18nProfileFieldTest.php
index bd8d451d18..8f0503a02c 100644
--- a/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/I18nProfileFieldTest.php
+++ b/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/I18nProfileFieldTest.php
@@ -41,8 +41,8 @@ public function providerSource() {
           'lid' => 11,
           'objectid' => 'profile_love_migrations',
           'type' => 'field',
-          'property' => 'explanation'
-        ]
+          'property' => 'explanation',
+        ],
       ],
       'locales_target' => [
         [
diff --git a/core/modules/contact/src/Tests/ContactPersonalTest.php b/core/modules/contact/src/Tests/ContactPersonalTest.php
index 936aed5892..e409140615 100644
--- a/core/modules/contact/src/Tests/ContactPersonalTest.php
+++ b/core/modules/contact/src/Tests/ContactPersonalTest.php
@@ -93,7 +93,7 @@ function testSendPersonalContactMessage() {
     $placeholders = array(
       '@sender_name' => $this->webUser->username,
       '@sender_email' => $this->webUser->getEmail(),
-      '@recipient_name' => $this->contactUser->getUsername()
+      '@recipient_name' => $this->contactUser->getUsername(),
     );
     $this->assertRaw(SafeMarkup::format('@sender_name (@sender_email) sent @recipient_name an email.', $placeholders));
     // Ensure an unescaped version of the email does not exist anywhere.
diff --git a/core/modules/contact/src/Tests/ContactSitewideTest.php b/core/modules/contact/src/Tests/ContactSitewideTest.php
index ffc2e9091c..ce002309e6 100644
--- a/core/modules/contact/src/Tests/ContactSitewideTest.php
+++ b/core/modules/contact/src/Tests/ContactSitewideTest.php
@@ -78,7 +78,7 @@ function testSiteWideContact() {
     // field_ui enabled admin/structure/contact/manage/personal/fields exists.
     // @todo: See https://www.drupal.org/node/2031223 for the above.
     $edit_link = $this->xpath('//a[@href=:href]', array(
-      ':href' => \Drupal::url('entity.contact_form.edit_form', array('contact_form' => 'personal'))
+      ':href' => \Drupal::url('entity.contact_form.edit_form', array('contact_form' => 'personal')),
     ));
     $this->assertTrue(empty($edit_link), format_string('No link containing href %href found.',
       array('%href' => 'admin/structure/contact/manage/personal')
@@ -356,7 +356,7 @@ function testAutoReply() {
       'administer contact forms',
       'administer permissions',
       'administer users',
-      'access site reports'
+      'access site reports',
     ]);
     $this->drupalLogin($admin_user);
 
diff --git a/core/modules/contact/src/Tests/Views/ContactFieldsTest.php b/core/modules/contact/src/Tests/Views/ContactFieldsTest.php
index cf707996f1..08fbecb3c9 100644
--- a/core/modules/contact/src/Tests/Views/ContactFieldsTest.php
+++ b/core/modules/contact/src/Tests/Views/ContactFieldsTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
     $this->fieldStorage = FieldStorageConfig::create(array(
       'field_name' => strtolower($this->randomMachineName()),
       'entity_type' => 'contact_message',
-      'type' => 'text'
+      'type' => 'text',
     ));
     $this->fieldStorage->save();
 
diff --git a/core/modules/contact/tests/drupal-7.contact.database.php b/core/modules/contact/tests/drupal-7.contact.database.php
index 115f83c17c..6e4b3357eb 100644
--- a/core/modules/contact/tests/drupal-7.contact.database.php
+++ b/core/modules/contact/tests/drupal-7.contact.database.php
@@ -21,7 +21,7 @@
   'recipients',
   'reply',
   'weight',
-  'selected'
+  'selected',
 ))
   ->values(array(
   'category' => 'Upgrade test',
diff --git a/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/d6/ContactSettingsTest.php b/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/d6/ContactSettingsTest.php
index 72ea7f2694..6d6afa36d3 100644
--- a/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/d6/ContactSettingsTest.php
+++ b/core/modules/contact/tests/src/Kernel/Plugin/migrate/source/d6/ContactSettingsTest.php
@@ -37,7 +37,7 @@ public function providerSource() {
         'reply' => '',
         'weight' => '0',
         'selected' => '1',
-      ]
+      ],
     ];
     $tests[0]['expected_data'] = [
       [
diff --git a/core/modules/content_moderation/src/Form/BundleModerationConfigurationForm.php b/core/modules/content_moderation/src/Form/BundleModerationConfigurationForm.php
index 917ec5deda..15830cf04c 100644
--- a/core/modules/content_moderation/src/Form/BundleModerationConfigurationForm.php
+++ b/core/modules/content_moderation/src/Form/BundleModerationConfigurationForm.php
@@ -97,7 +97,7 @@ public function form(array $form, FormStateInterface $form_state) {
       $form['enable_workflow_note'] = [
         '#type' => 'item',
         '#description' => $this->t('After disabling moderation, any existing forward drafts will be accessible via the "Revisions" tab.'),
-        '#access' => !empty($selected_workflow)
+        '#access' => !empty($selected_workflow),
       ];
     }
 
diff --git a/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php b/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php
index 3a19d22d7a..1f421855e5 100644
--- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php
+++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php
@@ -113,7 +113,7 @@ public function permissionsTestCases() {
             ],
           ],
         ],
-        []
+        [],
       ],
     ];
   }
diff --git a/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php b/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php
index 5151155655..aa17a0c29a 100644
--- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php
+++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php
@@ -178,7 +178,7 @@ public function basicModerationTestCases() {
       ],
       'Entity Test with revisions' => [
         'entity_test_rev',
-      ]
+      ],
     ];
   }
 
@@ -321,7 +321,7 @@ public function testNonTranslatableEntityTypeModeration() {
 
     // Create a test entity.
     $entity_test_with_bundle = EntityTestWithBundle::create([
-      'type' => 'example'
+      'type' => 'example',
     ]);
     $entity_test_with_bundle->save();
     $this->assertEquals('draft', $entity_test_with_bundle->moderation_state->value);
@@ -357,7 +357,7 @@ public function testNonLangcodeEntityTypeModeration() {
 
     // Create a test entity.
     $entity_test_with_bundle = EntityTestWithBundle::create([
-      'type' => 'example'
+      'type' => 'example',
     ]);
     $entity_test_with_bundle->save();
     $this->assertEquals('draft', $entity_test_with_bundle->moderation_state->value);
diff --git a/core/modules/content_translation/content_translation.admin.inc b/core/modules/content_translation/content_translation.admin.inc
index 39e3247ca1..3b3660be70 100644
--- a/core/modules/content_translation/content_translation.admin.inc
+++ b/core/modules/content_translation/content_translation.admin.inc
@@ -63,7 +63,7 @@ function content_translation_field_sync_widget(FieldDefinitionInterface $field,
       // does not get lost.
       $element[key($options)]['#attached']['drupalSettings']['contentTranslationDependentOptions'] = [
         'dependent_selectors' => [
-          $element_name => $require_all_groups_for_translation
+          $element_name => $require_all_groups_for_translation,
         ],
       ];
       $element[key($options)]['#attached']['library'][] = 'content_translation/drupal.content_translation.admin';
diff --git a/core/modules/content_translation/content_translation.install b/core/modules/content_translation/content_translation.install
index 0f8a184651..26cbf2228a 100644
--- a/core/modules/content_translation/content_translation.install
+++ b/core/modules/content_translation/content_translation.install
@@ -18,14 +18,14 @@ function content_translation_install() {
   // Translation works when at least two languages are added.
   if (count(\Drupal::languageManager()->getLanguages()) < 2) {
     $t_args = [
-      ':language_url' => Url::fromRoute('entity.configurable_language.collection')->toString()
+      ':language_url' => Url::fromRoute('entity.configurable_language.collection')->toString(),
     ];
     $message = t('This site has only a single language enabled. <a href=":language_url">Add at least one more language</a> in order to translate content.', $t_args);
     drupal_set_message($message, 'warning');
   }
   // Point the user to the content translation settings.
   $t_args = [
-    ':settings_url' => Url::fromRoute('language.content_settings_page')->toString()
+    ':settings_url' => Url::fromRoute('language.content_settings_page')->toString(),
   ];
   $message = t('<a href=":settings_url">Enable translation</a> for <em>content types</em>, <em>taxonomy vocabularies</em>, <em>accounts</em>, or any other element you wish to translate.', $t_args);
   drupal_set_message($message, 'warning');
diff --git a/core/modules/content_translation/src/Tests/ContentTranslationLanguageChangeTest.php b/core/modules/content_translation/src/Tests/ContentTranslationLanguageChangeTest.php
index fea0e140ee..3ebc1ba8dd 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationLanguageChangeTest.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationLanguageChangeTest.php
@@ -135,7 +135,7 @@ public function testTitleDoesNotChangesOnChangingLanguageWidgetAndTriggeringAjax
     $this->assertRaw('<title>Edit Article english_title | Drupal</title>');
     $edit = [
       'langcode[0][value]' => 'en',
-      'field_image_field[0][alt]' => 'alternative_text'
+      'field_image_field[0][alt]' => 'alternative_text',
     ];
     $this->drupalPostForm(NULL, $edit, t('Save and keep published (this translation)'));
 
diff --git a/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php b/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php
index d7490c0471..57f2837c30 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php
@@ -154,7 +154,7 @@ function testSettingsUI() {
       'settings[node][article][settings][language][langcode]' => 'current_interface',
       'settings[node][article][settings][language][language_alterable]' => TRUE,
       'settings[node][article][translatable]' => TRUE,
-      'settings[node][article][fields][title]' => TRUE
+      'settings[node][article][fields][title]' => TRUE,
     );
     $this->assertSettings('node', NULL, TRUE, $edit);
 
diff --git a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
index e5b14c2f45..cf78c98f99 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
@@ -113,7 +113,7 @@ protected function doTestBasicTranslation() {
     $add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
       $entity->getEntityTypeId() => $entity->id(),
       'source' => $default_langcode,
-      'target' => $langcode
+      'target' => $langcode,
     ], array('language' => $language));
     $this->drupalPostForm($add_url, $this->getEditValues($values, $langcode), $this->getFormSubmitActionForNewTranslation($entity, $langcode));
 
@@ -178,7 +178,7 @@ protected function doTestBasicTranslation() {
     $add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
       $entity->getEntityTypeId() => $entity->id(),
       'source' => $default_langcode,
-      'target' => $langcode
+      'target' => $langcode,
     ], array('language' => $language));
     // This does not save anything, it merely reloads the form and fills in the
     // fields with the values from the different source language.
@@ -192,7 +192,7 @@ protected function doTestBasicTranslation() {
     $add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
       $entity->getEntityTypeId() => $entity->id(),
       'source' => $source_langcode,
-      'target' => $langcode
+      'target' => $langcode,
     ], array('language' => $language));
     $this->drupalPostForm($add_url, $edit, $this->getFormSubmitActionForNewTranslation($entity, $langcode));
     $storage->resetCache([$this->entityId]);
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php
index 74d5de5b97..bfcfb7f15d 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php
@@ -25,7 +25,7 @@ function testUICheckSkip() {
     $admin_user = $this->drupalCreateUser(array(
       'translate any entity',
       'administer content translation',
-      'administer languages'
+      'administer languages',
     ));
     $this->drupalLogin($admin_user);
     // Visit the content translation.
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
index 769006e5a4..75a0fd220a 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
@@ -110,7 +110,7 @@ protected function doTestBasicTranslation() {
     $add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
       $entity->getEntityTypeId() => $entity->id(),
       'source' => $default_langcode,
-      'target' => $langcode
+      'target' => $langcode,
     ], array('language' => $language));
     $this->drupalPostForm($add_url, $this->getEditValues($values, $langcode), $this->getFormSubmitActionForNewTranslation($entity, $langcode));
 
@@ -175,7 +175,7 @@ protected function doTestBasicTranslation() {
     $add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
       $entity->getEntityTypeId() => $entity->id(),
       'source' => $default_langcode,
-      'target' => $langcode
+      'target' => $langcode,
     ], array('language' => $language));
     // This does not save anything, it merely reloads the form and fills in the
     // fields with the values from the different source language.
@@ -189,7 +189,7 @@ protected function doTestBasicTranslation() {
     $add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
       $entity->getEntityTypeId() => $entity->id(),
       'source' => $source_langcode,
-      'target' => $langcode
+      'target' => $langcode,
     ], array('language' => $language));
     $this->drupalPostForm($add_url, $edit, $this->getFormSubmitActionForNewTranslation($entity, $langcode));
     $storage->resetCache([$this->entityId]);
diff --git a/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php b/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php
index f650270085..faae057e85 100644
--- a/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php
+++ b/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php
@@ -74,7 +74,7 @@ function testConfigImportUpdates() {
       'langcode' => 'en',
       'status' => TRUE,
       'dependencies' => array(
-        'module' => array('content_translation')
+        'module' => array('content_translation'),
       ),
       'id' => $config_id,
       'target_entity_type_id' => 'entity_test_mul',
diff --git a/core/modules/contextual/contextual.module b/core/modules/contextual/contextual.module
index 6cb1fcffcf..51a0207bed 100644
--- a/core/modules/contextual/contextual.module
+++ b/core/modules/contextual/contextual.module
@@ -85,7 +85,7 @@ function contextual_help($route_name, RouteMatchInterface $route_match) {
       $sample_picture = [
         '#theme' => 'image',
         '#uri' => 'core/misc/icons/bebebe/pencil.svg',
-        '#alt' => t('contextual links button')
+        '#alt' => t('contextual links button'),
       ];
       $sample_picture = \Drupal::service('renderer')->render($sample_picture);
       $output .= '<li>' . t('Hovering over the area of interest will temporarily make the contextual links button visible (which looks like a pencil in most themes, and is normally displayed in the upper right corner of the area). The icon typically looks like this: @picture', array('@picture' => $sample_picture)) . '</li>';
diff --git a/core/modules/contextual/src/Plugin/views/field/ContextualLinks.php b/core/modules/contextual/src/Plugin/views/field/ContextualLinks.php
index 585b7f6691..a4a28ec1db 100644
--- a/core/modules/contextual/src/Plugin/views/field/ContextualLinks.php
+++ b/core/modules/contextual/src/Plugin/views/field/ContextualLinks.php
@@ -130,8 +130,8 @@ public function render(ResultRow $values) {
           array(),
           array(
             'contextual-views-field-links' => UrlHelper::encodePath(Json::encode($links)),
-          )
-        )
+          ),
+        ),
       );
 
       $element = array(
diff --git a/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php b/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
index 680303db32..b8ab6cc196 100644
--- a/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
+++ b/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
@@ -65,7 +65,7 @@ function _contextual_links_id_testcases() {
       'links' => array(
         'views_ui_edit' => array(
           'route_parameters' => array(
-            'view' => 'frontpage'
+            'view' => 'frontpage',
           ),
           'metadata' => array(
             'location' => 'page',
diff --git a/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php b/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
index d246011ae2..7578151951 100644
--- a/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
+++ b/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
@@ -51,9 +51,9 @@ public function defaultValuesForm(array &$form, FormStateInterface $form_state)
           '#states' => array(
             'visible' => array(
               ':input[id="edit-default-value-input-default-date-type"]' => array('value' => static::DEFAULT_VALUE_CUSTOM),
-            )
-          )
-        )
+            ),
+          ),
+        ),
       );
 
       return $element;
@@ -112,7 +112,7 @@ public static function processDefaultValue($default_value, FieldableEntityInterf
         array(
           'value' => $value,
           'date' => $date,
-        )
+        ),
       );
     }
     return $default_value;
diff --git a/core/modules/datetime/src/Tests/DateTimeFieldTest.php b/core/modules/datetime/src/Tests/DateTimeFieldTest.php
index f7aeae819e..5d5ee5bb86 100644
--- a/core/modules/datetime/src/Tests/DateTimeFieldTest.php
+++ b/core/modules/datetime/src/Tests/DateTimeFieldTest.php
@@ -161,7 +161,7 @@ function testDateField() {
         ->setComponent($field_name, $this->displayOptions)
         ->save();
       $expected = SafeMarkup::format($this->displayOptions['settings']['past_format'], [
-        '@interval' => $this->dateFormatter->formatTimeDiffSince($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']])
+        '@interval' => $this->dateFormatter->formatTimeDiffSince($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']]),
       ]);
       $this->renderTestEntity($id);
       $this->assertText($expected, SafeMarkup::format('Formatted date field using datetime_time_ago format displayed as %expected.', array('%expected' => $expected)));
@@ -182,7 +182,7 @@ function testDateField() {
         ->setComponent($field_name, $this->displayOptions)
         ->save();
       $expected = SafeMarkup::format($this->displayOptions['settings']['future_format'], [
-        '@interval' => $this->dateFormatter->formatTimeDiffUntil($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']])
+        '@interval' => $this->dateFormatter->formatTimeDiffUntil($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']]),
       ]);
       $this->renderTestEntity($id);
       $this->assertText($expected, SafeMarkup::format('Formatted date field using datetime_time_ago format displayed as %expected.', array('%expected' => $expected)));
@@ -302,7 +302,7 @@ function testDatetimeField() {
       ->setComponent($field_name, $this->displayOptions)
       ->save();
     $expected = SafeMarkup::format($this->displayOptions['settings']['past_format'], [
-      '@interval' => $this->dateFormatter->formatTimeDiffSince($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']])
+      '@interval' => $this->dateFormatter->formatTimeDiffSince($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']]),
     ]);
     $this->renderTestEntity($id);
     $this->assertText($expected, SafeMarkup::format('Formatted date field using datetime_time_ago format displayed as %expected.', array('%expected' => $expected)));
@@ -323,7 +323,7 @@ function testDatetimeField() {
       ->setComponent($field_name, $this->displayOptions)
       ->save();
     $expected = SafeMarkup::format($this->displayOptions['settings']['future_format'], [
-      '@interval' => $this->dateFormatter->formatTimeDiffUntil($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']])
+      '@interval' => $this->dateFormatter->formatTimeDiffUntil($timestamp, ['granularity' => $this->displayOptions['settings']['granularity']]),
     ]);
     $this->renderTestEntity($id);
     $this->assertText($expected, SafeMarkup::format('Formatted date field using datetime_time_ago format displayed as %expected.', array('%expected' => $expected)));
diff --git a/core/modules/datetime/src/Tests/Views/ArgumentDateTimeTest.php b/core/modules/datetime/src/Tests/Views/ArgumentDateTimeTest.php
index e3a17bb9c4..6e8e4148f3 100644
--- a/core/modules/datetime/src/Tests/Views/ArgumentDateTimeTest.php
+++ b/core/modules/datetime/src/Tests/Views/ArgumentDateTimeTest.php
@@ -32,7 +32,7 @@ protected function setUp() {
       $this->nodes[] = $this->drupalCreateNode([
         'field_date' => [
           'value' => $date,
-        ]
+        ],
       ]);
     }
   }
diff --git a/core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php b/core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php
index 42f309d6d7..944d37191c 100644
--- a/core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php
+++ b/core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php
@@ -44,7 +44,7 @@ protected function setUp() {
     // Add a date field to page nodes.
     $node_type = NodeType::create([
       'type' => 'page',
-      'name' => 'page'
+      'name' => 'page',
     ]);
     $node_type->save();
     $fieldStorage = FieldStorageConfig::create([
diff --git a/core/modules/datetime/src/Tests/Views/FilterDateTest.php b/core/modules/datetime/src/Tests/Views/FilterDateTest.php
index 2a8d7cdb29..59da437e66 100644
--- a/core/modules/datetime/src/Tests/Views/FilterDateTest.php
+++ b/core/modules/datetime/src/Tests/Views/FilterDateTest.php
@@ -51,7 +51,7 @@ protected function setUp() {
       $this->nodes[] = $this->drupalCreateNode([
         'field_date' => [
           'value' => $date,
-        ]
+        ],
       ]);
     }
   }
diff --git a/core/modules/datetime/src/Tests/Views/FilterDateTimeTest.php b/core/modules/datetime/src/Tests/Views/FilterDateTimeTest.php
index a15263d57d..5c0a1934d9 100644
--- a/core/modules/datetime/src/Tests/Views/FilterDateTimeTest.php
+++ b/core/modules/datetime/src/Tests/Views/FilterDateTimeTest.php
@@ -50,7 +50,7 @@ protected function setUp() {
       $this->nodes[] = $this->drupalCreateNode([
         'field_date' => [
           'value' => $date,
-        ]
+        ],
       ]);
     }
   }
diff --git a/core/modules/datetime/src/Tests/Views/SortDateTimeTest.php b/core/modules/datetime/src/Tests/Views/SortDateTimeTest.php
index c1f23a04c2..9c35db5fd9 100644
--- a/core/modules/datetime/src/Tests/Views/SortDateTimeTest.php
+++ b/core/modules/datetime/src/Tests/Views/SortDateTimeTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
       $this->nodes[] = $this->drupalCreateNode([
         'field_date' => [
           'value' => $date,
-        ]
+        ],
       ]);
     }
   }
diff --git a/core/modules/dblog/dblog.module b/core/modules/dblog/dblog.module
index 06fef103fe..c41ce4558c 100644
--- a/core/modules/dblog/dblog.module
+++ b/core/modules/dblog/dblog.module
@@ -101,7 +101,7 @@ function dblog_form_system_logging_settings_alter(&$form, FormStateInterface $fo
     '#title' => t('Database log messages to keep'),
     '#default_value' => \Drupal::configFactory()->getEditable('dblog.settings')->get('row_limit'),
     '#options' => array(0 => t('All')) + array_combine($row_limits, $row_limits),
-    '#description' => t('The maximum number of messages to keep in the database log. Requires a <a href=":cron">cron maintenance task</a>.', array(':cron' => \Drupal::url('system.status')))
+    '#description' => t('The maximum number of messages to keep in the database log. Requires a <a href=":cron">cron maintenance task</a>.', array(':cron' => \Drupal::url('system.status'))),
   );
 
   $form['#submit'][] = 'dblog_logging_settings_submit';
diff --git a/core/modules/editor/src/Tests/EditorLoadingTest.php b/core/modules/editor/src/Tests/EditorLoadingTest.php
index 88055e916a..3f689a08a2 100644
--- a/core/modules/editor/src/Tests/EditorLoadingTest.php
+++ b/core/modules/editor/src/Tests/EditorLoadingTest.php
@@ -118,7 +118,7 @@ public function testLoading() {
         'directory' => 'inline-images',
         'max_size' => '',
         'max_dimensions' => array('width' => '', 'height' => ''),
-      )
+      ),
     ]);
     $editor->save();
 
@@ -194,7 +194,7 @@ public function testLoading() {
     $this->drupalCreateNode(array(
       'type' => 'article',
       'body' => array(
-        array('value' => $this->randomMachineName(32), 'format' => 'full_html')
+        array('value' => $this->randomMachineName(32), 'format' => 'full_html'),
       ),
     ));
 
@@ -226,7 +226,7 @@ public function testSupportedElementTypes() {
         'directory' => 'inline-images',
         'max_size' => '',
         'max_dimensions' => array('width' => '', 'height' => ''),
-      )
+      ),
     ]);
     $editor->save();
 
@@ -234,7 +234,7 @@ public function testSupportedElementTypes() {
     $this->drupalCreateNode(array(
       'type' => 'page',
       'field_text' => array(
-        array('value' => $this->randomMachineName(32), 'format' => 'full_html')
+        array('value' => $this->randomMachineName(32), 'format' => 'full_html'),
       ),
     ));
 
diff --git a/core/modules/editor/src/Tests/EditorSecurityTest.php b/core/modules/editor/src/Tests/EditorSecurityTest.php
index c771439c69..bf152a2276 100644
--- a/core/modules/editor/src/Tests/EditorSecurityTest.php
+++ b/core/modules/editor/src/Tests/EditorSecurityTest.php
@@ -93,7 +93,7 @@ protected function setUp() {
           'status' => 1,
           'settings' => array(
             'allowed_html' => '<h2> <h3> <h4> <h5> <h6> <p> <br> <strong> <a>',
-          )
+          ),
         ),
       ),
     ));
@@ -108,7 +108,7 @@ protected function setUp() {
           'status' => 1,
           'settings' => array(
             'allowed_html' => '<h2> <h3> <h4> <h5> <h6> <p> <br> <strong> <a>',
-          )
+          ),
         ),
       ),
     ));
@@ -128,7 +128,7 @@ protected function setUp() {
           'status' => 1,
           'settings' => array(
             'allowed_html' => '<h2> <h3> <h4> <h5> <h6> <p> <br> <strong> <a> <embed>',
-          )
+          ),
         ),
       ),
     ));
@@ -210,9 +210,9 @@ protected function setUp() {
       $this->drupalCreateNode(array(
         'type' => 'article',
         'body' => array(
-          array('value' => self::$sampleContent, 'format' => $sample['format'])
+          array('value' => self::$sampleContent, 'format' => $sample['format']),
         ),
-        'uid' => $sample['author']
+        'uid' => $sample['author'],
       ));
     }
   }
diff --git a/core/modules/editor/src/Tests/EditorUploadImageScaleTest.php b/core/modules/editor/src/Tests/EditorUploadImageScaleTest.php
index 5ac88c70fa..5641929076 100644
--- a/core/modules/editor/src/Tests/EditorUploadImageScaleTest.php
+++ b/core/modules/editor/src/Tests/EditorUploadImageScaleTest.php
@@ -51,9 +51,9 @@ protected function setUp() {
         'max_size' => '',
         'max_dimensions' => [
           'width' => NULL,
-          'height' => NULL
+          'height' => NULL,
         ],
-      ]
+      ],
     ])->save();
 
     // Create admin user.
diff --git a/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php b/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php
index 9b9d13c588..be2784f931 100644
--- a/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php
+++ b/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php
@@ -57,8 +57,8 @@ protected function setUp() {
         0 => array(
           'value' => '<p>Do you also love Drupal?</p><img src="druplicon.png" data-caption="Druplicon" />',
           'format' => 'filtered_html',
-        )
-      )
+        ),
+      ),
     ));
   }
 
@@ -73,7 +73,7 @@ public function testUsersWithoutPermission() {
     $users = array(
       $this->drupalCreateUser(static::$basicPermissions),
       $this->drupalCreateUser(array_merge(static::$basicPermissions, array('edit any article content'))),
-      $this->drupalCreateUser(array_merge(static::$basicPermissions, array('access in-place editing')))
+      $this->drupalCreateUser(array_merge(static::$basicPermissions, array('access in-place editing'))),
     );
 
     // Now test with each of the 3 users with insufficient permissions.
diff --git a/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php b/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
index d62cb681ae..65e2bb6edb 100644
--- a/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
+++ b/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
@@ -221,7 +221,7 @@ public function testGetUntransformedTextCommand() {
       array(
         'command' => 'editorGetUntransformedText',
         'data' => 'Test',
-      )
+      ),
     );
 
     $ajax_response_attachments_processor = \Drupal::service('ajax_response.attachments_processor');
diff --git a/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php b/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php
index d19758e5a0..2f9e46c714 100644
--- a/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php
+++ b/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php
@@ -578,20 +578,20 @@ public function providerTestBlackListMode() {
         '<unknown style="visibility:hidden">Pink Fairy Armadillo</unknown><video src="gerenuk.mp4"><script>alert(0)</script>',
         '<unknown>Pink Fairy Armadillo</unknown><video src="gerenuk.mp4">alert(0)',
         'Disallow only the script tag',
-        array('script')
+        array('script'),
       ),
       array(
         '<unknown style="visibility:hidden">Pink Fairy Armadillo</unknown><video src="gerenuk.mp4"><script>alert(0)</script>',
         '<unknown>Pink Fairy Armadillo</unknown>alert(0)',
         'Disallow both the script and video tags',
-        array('script', 'video')
+        array('script', 'video'),
       ),
       // No real use case for this, but it is an edge case we must ensure works.
       array(
         '<unknown style="visibility:hidden">Pink Fairy Armadillo</unknown><video src="gerenuk.mp4"><script>alert(0)</script>',
         '<unknown>Pink Fairy Armadillo</unknown><video src="gerenuk.mp4"><script>alert(0)</script>',
         'Disallow no tags',
-        array()
+        array(),
       ),
     );
   }
diff --git a/core/modules/field/field.module b/core/modules/field/field.module
index 8133007176..13dcd3e3c5 100644
--- a/core/modules/field/field.module
+++ b/core/modules/field/field.module
@@ -260,7 +260,7 @@ function field_entity_bundle_delete($entity_type_id, $bundle) {
             '%target_entity_type' => $entity_type_id,
             '%field_name' => $field_config->getName(),
             '%entity_type' => $field_config->getTargetEntityTypeId(),
-            '%bundle' => $field_config->getTargetBundle()
+            '%bundle' => $field_config->getTargetBundle(),
           ]);
         }
       }
diff --git a/core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerFormDisplay.php b/core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerFormDisplay.php
index 62de5d9d6b..92959f4e35 100644
--- a/core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerFormDisplay.php
+++ b/core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerFormDisplay.php
@@ -23,7 +23,7 @@ public function query() {
         'field_name',
         'bundle',
         'data',
-        'entity_type'
+        'entity_type',
       ))
       ->fields('fc', array(
         'type',
diff --git a/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php b/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php
index 5fa491b20a..a63f864f68 100644
--- a/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php
+++ b/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php
@@ -125,7 +125,7 @@ function testBooleanField() {
         'type' => 'boolean_checkbox',
         'settings' => array(
           'display_label' => FALSE,
-        )
+        ),
       ))
       ->save();
 
diff --git a/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php b/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
index 3803029d77..8d54b2dce1 100644
--- a/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
+++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
@@ -292,7 +292,7 @@ public function testFieldAdminHandler() {
 
     $edit = array(
       'title[0][value]' => 'Example',
-      'field_test_entity_ref_field[0][target_id]' => 'Test'
+      'field_test_entity_ref_field[0][target_id]' => 'Test',
     );
     $this->drupalPostForm('node/add/' . $this->type, $edit, t('Save'));
 
@@ -301,7 +301,7 @@ public function testFieldAdminHandler() {
 
     $edit = array(
       'title[0][value]' => 'Test',
-      'field_test_entity_ref_field[0][target_id]' => $node1->getTitle()
+      'field_test_entity_ref_field[0][target_id]' => $node1->getTitle(),
     );
     $this->drupalPostForm('node/add/' . $this->type, $edit, t('Save'));
 
@@ -314,7 +314,7 @@ public function testFieldAdminHandler() {
 
     $edit = array(
       'title[0][value]' => 'Test',
-      'field_test_entity_ref_field[0][target_id]' => $node1->getTitle() . ' (' . $node1->id() . ')'
+      'field_test_entity_ref_field[0][target_id]' => $node1->getTitle() . ' (' . $node1->id() . ')',
     );
     $this->drupalPostForm('node/add/' . $this->type, $edit, t('Save'));
     $this->assertLink($node1->getTitle());
diff --git a/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php b/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php
index 6aef0f8283..0ba645b8f1 100644
--- a/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php
+++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceFileUploadTest.php
@@ -83,7 +83,7 @@ protected function setUp() {
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => $file_field_name,
       'entity_type' => 'node',
-      'type' => 'file'
+      'type' => 'file',
     ));
     $field_storage->save();
     FieldConfig::create([
diff --git a/core/modules/field/src/Tests/FormTest.php b/core/modules/field/src/Tests/FormTest.php
index 16625a9ab4..3a19d632c1 100644
--- a/core/modules/field/src/Tests/FormTest.php
+++ b/core/modules/field/src/Tests/FormTest.php
@@ -116,7 +116,7 @@ function testFieldFormSingle() {
 
     // Submit with invalid value (field-level validation).
     $edit = array(
-      "{$field_name}[0][value]" => -1
+      "{$field_name}[0][value]" => -1,
     );
     $this->drupalPostForm(NULL, $edit, t('Save'));
     $this->assertRaw(t('%name does not accept the value -1.', array('%name' => $this->field['label'])), 'Field validation fails with invalid input.');
@@ -153,7 +153,7 @@ function testFieldFormSingle() {
     // Empty the field.
     $value = '';
     $edit = array(
-      "{$field_name}[0][value]" => $value
+      "{$field_name}[0][value]" => $value,
     );
     $this->drupalPostForm('entity_test/manage/' . $id . '/edit', $edit, t('Save'));
     $this->assertText(t('entity_test @id has been updated.', array('@id' => $id)), 'Entity was updated');
diff --git a/core/modules/field/src/Tests/Number/NumberFieldTest.php b/core/modules/field/src/Tests/Number/NumberFieldTest.php
index 14777ec342..fa61f59725 100644
--- a/core/modules/field/src/Tests/Number/NumberFieldTest.php
+++ b/core/modules/field/src/Tests/Number/NumberFieldTest.php
@@ -47,7 +47,7 @@ function testNumberDecimalField() {
       'type' => 'decimal',
       'settings' => array(
         'precision' => 8, 'scale' => 4,
-      )
+      ),
     ))->save();
     FieldConfig::create([
       'field_name' => $field_name,
@@ -59,7 +59,7 @@ function testNumberDecimalField() {
       ->setComponent($field_name, array(
         'type' => 'number',
         'settings' => array(
-          'placeholder' => '0.00'
+          'placeholder' => '0.00',
         ),
       ))
       ->save();
@@ -144,14 +144,14 @@ function testNumberIntegerField() {
       'bundle' => 'entity_test',
       'settings' => array(
         'min' => $minimum, 'max' => $maximum, 'prefix' => 'ThePrefix',
-      )
+      ),
     ])->save();
 
     entity_get_form_display('entity_test', 'entity_test', 'default')
       ->setComponent($field_name, array(
         'type' => 'number',
         'settings' => array(
-          'placeholder' => '4'
+          'placeholder' => '4',
         ),
       ))
       ->save();
@@ -170,12 +170,12 @@ function testNumberIntegerField() {
         'value' => array(
           'type' => 'int',
           'unsigned' => '',
-          'size' => 'normal'
+          'size' => 'normal',
         ),
       ),
       'unique keys' => array(),
       'indexes' => array(),
-      'foreign keys' => array()
+      'foreign keys' => array(),
     );
     $this->assertEqual($storage->getSchema(), $expected);
 
@@ -290,7 +290,7 @@ function testNumberFloatField() {
       ->setComponent($field_name, array(
         'type' => 'number',
         'settings' => array(
-          'placeholder' => '0.00'
+          'placeholder' => '0.00',
         ),
       ))
       ->save();
@@ -393,7 +393,7 @@ function testNumberFormatter() {
       'bundle' => $type,
       'settings' => array(
         'prefix' => $prefix,
-        'suffix' => $suffix
+        'suffix' => $suffix,
       ),
     ])->save();
 
@@ -403,7 +403,7 @@ function testNumberFormatter() {
       'bundle' => $type,
       'settings' => array(
         'prefix' => $prefix,
-        'suffix' => $suffix
+        'suffix' => $suffix,
       ),
     ])->save();
 
@@ -411,13 +411,13 @@ function testNumberFormatter() {
       ->setComponent($float_field, array(
         'type' => 'number',
         'settings' => array(
-          'placeholder' => '0.00'
+          'placeholder' => '0.00',
         ),
       ))
       ->setComponent($integer_field, array(
         'type' => 'number',
         'settings' => array(
-          'placeholder' => '0.00'
+          'placeholder' => '0.00',
         ),
       ))
       ->save();
diff --git a/core/modules/field/src/Tests/String/StringFieldTest.php b/core/modules/field/src/Tests/String/StringFieldTest.php
index 0ac5748775..24ed5fb4bc 100644
--- a/core/modules/field/src/Tests/String/StringFieldTest.php
+++ b/core/modules/field/src/Tests/String/StringFieldTest.php
@@ -55,7 +55,7 @@ function _testTextfieldWidgets($field_type, $widget_type) {
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => $field_type
+      'type' => $field_type,
     ));
     $field_storage->save();
     FieldConfig::create([
diff --git a/core/modules/field/src/Tests/reEnableModuleFieldTest.php b/core/modules/field/src/Tests/reEnableModuleFieldTest.php
index b718e75883..f7cddd38d3 100644
--- a/core/modules/field/src/Tests/reEnableModuleFieldTest.php
+++ b/core/modules/field/src/Tests/reEnableModuleFieldTest.php
@@ -23,7 +23,7 @@ class reEnableModuleFieldTest extends WebTestBase {
     'node',
     // We use telephone module instead of test_field because test_field is
     // hidden and does not display on the admin/modules page.
-    'telephone'
+    'telephone',
   );
 
   protected function setUp() {
diff --git a/core/modules/field/tests/fixtures/update/drupal-8.views_entity_reference_plugins-2429191.php b/core/modules/field/tests/fixtures/update/drupal-8.views_entity_reference_plugins-2429191.php
index ecedb93a7b..5ecacf5e33 100644
--- a/core/modules/field/tests/fixtures/update/drupal-8.views_entity_reference_plugins-2429191.php
+++ b/core/modules/field/tests/fixtures/update/drupal-8.views_entity_reference_plugins-2429191.php
@@ -66,7 +66,7 @@
   ->condition('collection', 'entity.definitions.installed')
   ->condition('name', 'node.field_storage_definitions')
   ->fields([
-    'value' => serialize($installed)
+    'value' => serialize($installed),
   ])
   ->execute();
 
diff --git a/core/modules/field/tests/modules/field_test/src/Form/NestedEntityTestForm.php b/core/modules/field/tests/modules/field_test/src/Form/NestedEntityTestForm.php
index d54c6836fd..f2bb7ffe60 100644
--- a/core/modules/field/tests/modules/field_test/src/Form/NestedEntityTestForm.php
+++ b/core/modules/field/tests/modules/field_test/src/Form/NestedEntityTestForm.php
@@ -40,7 +40,7 @@ public function buildForm(array $form, FormStateInterface $form_state, EntityInt
       '#tree' => TRUE,
       '#parents' => ['entity_2'],
       '#weight' => 50,
-      '#attributes' => ['class' => ['entity-2']]
+      '#attributes' => ['class' => ['entity-2']],
     ];
 
     $form_display_2->buildForm($entity_2, $form['entity_2'], $form_state);
diff --git a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php
index 1b8822f60f..0f2a6a0597 100644
--- a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php
+++ b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php
@@ -120,7 +120,7 @@ public function getConstraints() {
         'TestField' => array(
           'value' => -1,
           'message' => t('%name does not accept the value @value.', array('%name' => $this->getFieldDefinition()->getLabel(), '@value' => -1)),
-        )
+        ),
       ),
     ));
 
diff --git a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithPreconfiguredOptions.php b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithPreconfiguredOptions.php
index 2dce022397..6c98205f4f 100644
--- a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithPreconfiguredOptions.php
+++ b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithPreconfiguredOptions.php
@@ -29,7 +29,7 @@ public static function getPreconfiguredOptions() {
         'field_storage_config' => [
           'cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED,
           'settings' => [
-            'test_field_storage_setting' => 'preconfigured_storage_setting'
+            'test_field_storage_setting' => 'preconfigured_storage_setting',
           ],
         ],
         'field_config' => [
diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php
index 46986ec474..ce0edbd8de 100644
--- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php
+++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceXSSTest.php
@@ -60,7 +60,7 @@ public function testEntityReferenceXSS() {
 
     $edit = [
       'title[0][value]' => $this->randomString(),
-      'entity_reference_test' => $referenced_node->id()
+      'entity_reference_test' => $referenced_node->id(),
     ];
     $this->drupalPostForm(NULL, $edit, 'Save and publish');
     $this->assertEscaped($referenced_node->getTitle());
diff --git a/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php b/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php
index 4ccf8cfcf6..c9f0b52f9e 100644
--- a/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php
+++ b/core/modules/field/tests/src/Functional/EntityReference/Views/SelectionTest.php
@@ -127,7 +127,7 @@ public function testSelectionHandlerRelationship() {
         'table' => 'users_field_data',
         'field' => 'uid',
         'relationship' => 'test_relationship',
-      )
+      ),
     ));
 
     // Set view to distinct so only one row per node is returned.
diff --git a/core/modules/field/tests/src/Kernel/Boolean/BooleanFormatterTest.php b/core/modules/field/tests/src/Kernel/Boolean/BooleanFormatterTest.php
index 94f5bc6c30..1ef9d1a579 100644
--- a/core/modules/field/tests/src/Kernel/Boolean/BooleanFormatterTest.php
+++ b/core/modules/field/tests/src/Kernel/Boolean/BooleanFormatterTest.php
@@ -115,7 +115,7 @@ public function testBooleanFormatter() {
     $format = [
       'format' => 'custom',
       'format_custom_false' => 'FALSE',
-      'format_custom_true' => 'TRUE'
+      'format_custom_true' => 'TRUE',
     ];
     $data[] = [0, $format, 'FALSE'];
     $data[] = [1, $format, 'TRUE'];
diff --git a/core/modules/field/tests/src/Kernel/BulkDeleteTest.php b/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
index b01926ad87..8f8b7c4fb9 100644
--- a/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
+++ b/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
@@ -105,7 +105,7 @@ protected function setUp() {
       'field_name' => 'bf_1',
       'entity_type' => $this->entityTypeId,
       'type' => 'test_field',
-      'cardinality' => 1
+      'cardinality' => 1,
     ));
     $field_storage->save();
     $this->fieldStorages[] = $field_storage;
@@ -113,7 +113,7 @@ protected function setUp() {
       'field_name' => 'bf_2',
       'entity_type' => $this->entityTypeId,
       'type' => 'test_field',
-      'cardinality' => 4
+      'cardinality' => 4,
     ));
     $field_storage->save();
     $this->fieldStorages[] = $field_storage;
@@ -222,7 +222,7 @@ public function testPurgeWithDeletedAndActiveField() {
       'field_name' => $field_name,
       'entity_type' => $this->entityTypeId,
       'type' => 'test_field',
-      'cardinality' => 1
+      'cardinality' => 1,
     ));
     $deleted_field_storage->save();
     // Create the field.
@@ -253,7 +253,7 @@ public function testPurgeWithDeletedAndActiveField() {
       'field_name' => $field_name,
       'entity_type' => $this->entityTypeId,
       'type' => 'test_field',
-      'cardinality' => 1
+      'cardinality' => 1,
     ));
     $field_storage->save();
     FieldConfig::create([
diff --git a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
index 90d4d1f774..bfa6be9019 100644
--- a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
+++ b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
@@ -309,7 +309,7 @@ public function testSelectionHandlerSettings() {
       'entity_type' => 'entity_test',
       'type' => 'entity_reference',
       'settings' => array(
-        'target_type' => 'entity_test'
+        'target_type' => 'entity_test',
       ),
     ));
     $field_storage->save();
diff --git a/core/modules/field/tests/src/Kernel/FieldKernelTestBase.php b/core/modules/field/tests/src/Kernel/FieldKernelTestBase.php
index 4d6bd5111d..b2d7b7d314 100644
--- a/core/modules/field/tests/src/Kernel/FieldKernelTestBase.php
+++ b/core/modules/field/tests/src/Kernel/FieldKernelTestBase.php
@@ -113,7 +113,7 @@ protected function createFieldWithStorage($suffix = '', $entity_type = 'entity_t
         'type' => 'test_field_widget',
         'settings' => array(
           'test_widget_setting' => $this->randomMachineName(),
-        )
+        ),
       ))
       ->save();
   }
diff --git a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
index da1948c149..4b15d95863 100644
--- a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
@@ -113,7 +113,7 @@ function testCreate() {
     try {
       $field_storage_definition = array(
         'field_name' => 'test_field',
-        'type' => 'test_field'
+        'type' => 'test_field',
       );
       FieldStorageConfig::create($field_storage_definition)->save();
       $this->fail('Cannot create a field without an entity type.');
@@ -188,7 +188,7 @@ function testCreate() {
    */
   function testCreateWithExplicitSchema() {
     $schema = array(
-      'dummy' => 'foobar'
+      'dummy' => 'foobar',
     );
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => 'field_2',
@@ -433,7 +433,7 @@ function testUpdateForbid() {
       'type' => 'test_field',
       'settings' => array(
         'changeable' => 0,
-        'unchangeable' => 0
+        'unchangeable' => 0,
     )));
     $field_storage->save();
     $field_storage->setSetting('changeable', $field_storage->getSetting('changeable') + 1);
diff --git a/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstancePerFormDisplayTest.php b/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstancePerFormDisplayTest.php
index a4ef2f6e6b..dfbcc9f866 100644
--- a/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstancePerFormDisplayTest.php
+++ b/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstancePerFormDisplayTest.php
@@ -57,7 +57,7 @@ public function providerSource() {
         'db_columns' => $empty_array,
         'active' => '1',
         'locked' => '0',
-      ]
+      ],
     ];
     $tests[0]['source_data']['content_node_field_instance'] = [
       [
diff --git a/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php b/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php
index 9766a067fb..145546c853 100644
--- a/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php
+++ b/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php
@@ -48,7 +48,7 @@ public function testTestItemWithDepenencies() {
     $this->assertEqual([
       'content' => ['node:article:uuid'],
       'config' => ['field.storage.entity_test.field_test'],
-      'module' => ['entity_test', 'field_test', 'test_module']
+      'module' => ['entity_test', 'field_test', 'test_module'],
     ], $field->getDependencies());
   }
 
diff --git a/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php b/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
index 3f687d4b9f..5ef68aeece 100644
--- a/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
+++ b/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
@@ -229,13 +229,13 @@ public function testOnDependencyRemoval() {
       'dependencies' => [
         'module' => [
           'fruiter',
-        ]
+        ],
       ],
       'third_party_settings' => [
         'fruiter' => [
           'fruit' => 'apple',
-        ]
-      ]
+        ],
+      ],
     ]);
     $changed = $field->onDependencyRemoval(['module' => ['fruiter']]);
     $this->assertTrue($changed);
diff --git a/core/modules/field_ui/src/Element/FieldUiTable.php b/core/modules/field_ui/src/Element/FieldUiTable.php
index 05d5d04e53..a158c363b1 100644
--- a/core/modules/field_ui/src/Element/FieldUiTable.php
+++ b/core/modules/field_ui/src/Element/FieldUiTable.php
@@ -159,7 +159,7 @@ public static function preRenderRegionRows($elements) {
         $elements['#rows'][] = [
           'class' => [
             'region-title',
-            'region-' . $region_name_class . '-title'
+            'region-' . $region_name_class . '-title',
           ],
           'no_striping' => TRUE,
           'data' => [
diff --git a/core/modules/field_ui/src/FieldUiPermissions.php b/core/modules/field_ui/src/FieldUiPermissions.php
index be73db6658..a127fcc71b 100644
--- a/core/modules/field_ui/src/FieldUiPermissions.php
+++ b/core/modules/field_ui/src/FieldUiPermissions.php
@@ -55,10 +55,10 @@ public function fieldPermissions() {
           'restrict access' => TRUE,
         ];
         $permissions['administer ' . $entity_type_id . ' form display'] = [
-          'title' => $this->t('%entity_label: Administer form display', ['%entity_label' => $entity_type->getLabel()])
+          'title' => $this->t('%entity_label: Administer form display', ['%entity_label' => $entity_type->getLabel()]),
         ];
         $permissions['administer ' . $entity_type_id . ' display'] = [
-          'title' => $this->t('%entity_label: Administer display', ['%entity_label' => $entity_type->getLabel()])
+          'title' => $this->t('%entity_label: Administer display', ['%entity_label' => $entity_type->getLabel()]),
         ];
       }
     }
diff --git a/core/modules/field_ui/src/Form/EntityDisplayFormBase.php b/core/modules/field_ui/src/Form/EntityDisplayFormBase.php
index 8908f659b6..75d1393687 100644
--- a/core/modules/field_ui/src/Form/EntityDisplayFormBase.php
+++ b/core/modules/field_ui/src/Form/EntityDisplayFormBase.php
@@ -94,11 +94,11 @@ public function getRegions() {
       'content' => array(
         'title' => $this->t('Content'),
         'invisible' => TRUE,
-        'message' => $this->t('No field is displayed.')
+        'message' => $this->t('No field is displayed.'),
       ),
       'hidden' => array(
         'title' => $this->t('Disabled', array(), array('context' => 'Plural')),
-        'message' => $this->t('No field is hidden.')
+        'message' => $this->t('No field is hidden.'),
       ),
     );
   }
@@ -241,7 +241,7 @@ public function form(array $form, FormStateInterface $form_state) {
         // spinners will be added manually by the client-side script.
         'progress' => 'none',
       ),
-      '#attributes' => array('class' => array('visually-hidden'))
+      '#attributes' => array('class' => array('visually-hidden')),
     );
 
     $form['actions'] = array('#type' => 'actions');
diff --git a/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php b/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php
index 174726f2c6..74fd1c73f4 100644
--- a/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php
+++ b/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php
@@ -71,8 +71,8 @@ protected function buildExtraFieldRow($field_id, $extra_field) {
     // Insert an empty placeholder for the label column.
     $label = array(
       'empty_cell' => array(
-        '#markup' => '&nbsp;'
-      )
+        '#markup' => '&nbsp;',
+      ),
     );
     $label_position = array_search('plugin', array_keys($extra_field_row));
     $extra_field_row = array_slice($extra_field_row, 0, $label_position, TRUE) + $label + array_slice($extra_field_row, $label_position, count($extra_field_row) - 1, TRUE);
diff --git a/core/modules/field_ui/src/Form/FieldConfigEditForm.php b/core/modules/field_ui/src/Form/FieldConfigEditForm.php
index ff6d157117..b6b692279f 100644
--- a/core/modules/field_ui/src/Form/FieldConfigEditForm.php
+++ b/core/modules/field_ui/src/Form/FieldConfigEditForm.php
@@ -75,7 +75,7 @@ public function form(array $form, FormStateInterface $form_state) {
     $ids = (object) array(
       'entity_type' => $this->entity->getTargetEntityTypeId(),
       'bundle' => $this->entity->getTargetBundle(),
-      'entity_id' => NULL
+      'entity_id' => NULL,
     );
     $form['#entity'] = _field_create_entity_from_ids($ids);
     $items = $form['#entity']->get($this->entity->getName());
diff --git a/core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php b/core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php
index bbaeb63322..38afea777a 100644
--- a/core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php
+++ b/core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php
@@ -82,7 +82,7 @@ public function form(array $form, FormStateInterface $form_state) {
     $ids = (object) array(
       'entity_type' => $form_state->get('entity_type_id'),
       'bundle' => $form_state->get('bundle'),
-      'entity_id' => NULL
+      'entity_id' => NULL,
     );
     $entity = _field_create_entity_from_ids($ids);
     $items = $entity->get($this->entity->getName());
@@ -99,7 +99,7 @@ public function form(array $form, FormStateInterface $form_state) {
       '#attributes' => array('class' => array(
         'container-inline',
         'fieldgroup',
-        'form-composite'
+        'form-composite',
       )),
     );
     $form['cardinality_container']['cardinality'] = array(
diff --git a/core/modules/field_ui/src/Tests/ManageDisplayTest.php b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
index 902a193c1e..f7d0e78a7a 100644
--- a/core/modules/field_ui/src/Tests/ManageDisplayTest.php
+++ b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
@@ -118,7 +118,7 @@ function testFormatterUI() {
     $edit = array(
       'fields[field_test][type]' => 'field_test_multiple',
       'fields[field_test][region]' => 'content',
-      'refresh_rows' => 'field_test'
+      'refresh_rows' => 'field_test',
     );
     $this->drupalPostAjaxForm(NULL, $edit, array('op' => t('Refresh')));
     $format = 'field_test_multiple';
diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
index cbe9f53e9f..3b68f490fe 100644
--- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php
+++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
@@ -409,7 +409,7 @@ function testDefaultValue() {
     FieldStorageConfig::create(array(
       'field_name' => $field_name,
       'entity_type' => 'node',
-      'type' => 'test_field'
+      'type' => 'test_field',
     ))->save();
     $field = FieldConfig::create(array(
       'field_name' => $field_name,
@@ -548,7 +548,7 @@ function testLockedField() {
       'entity_type' => 'node',
       'type' => 'test_field',
       'cardinality' => 1,
-      'locked' => TRUE
+      'locked' => TRUE,
     ));
     $field_storage->save();
     FieldConfig::create(array(
diff --git a/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php b/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
index d0601639b8..e929ab4955 100644
--- a/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
+++ b/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
@@ -87,7 +87,7 @@ public function testEntityDisplayCRUD() {
         'link_to_entity' => FALSE,
       ),
       'third_party_settings' => array(),
-      'region' => 'content'
+      'region' => 'content',
     );
     $this->assertEqual($display->getComponents(), $expected);
 
@@ -214,7 +214,7 @@ public function testFieldComponent() {
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => 'test_field'
+      'type' => 'test_field',
     ));
     $field_storage->save();
     $field = FieldConfig::create(array(
@@ -360,7 +360,7 @@ public function testDeleteField() {
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => 'test_field'
+      'type' => 'test_field',
     ));
     $field_storage->save();
     $field = FieldConfig::create(array(
@@ -409,7 +409,7 @@ public function testOnDependencyRemoval() {
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => 'text'
+      'type' => 'text',
     ));
     $field_storage->save();
     $field = FieldConfig::create(array(
diff --git a/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php b/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php
index 6f770d6fdf..88cfa01e3e 100644
--- a/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php
+++ b/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php
@@ -55,7 +55,7 @@ public function testFieldComponent() {
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => 'test_field'
+      'type' => 'test_field',
     ));
     $field_storage->save();
     $field = FieldConfig::create(array(
@@ -185,7 +185,7 @@ public function testDeleteField() {
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => 'test_field'
+      'type' => 'test_field',
     ));
     $field_storage->save();
     $field = FieldConfig::create(array(
@@ -234,7 +234,7 @@ public function testOnDependencyRemoval() {
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => 'text'
+      'type' => 'text',
     ));
     $field_storage->save();
     $field = FieldConfig::create(array(
diff --git a/core/modules/file/src/Tests/FileFieldWidgetTest.php b/core/modules/file/src/Tests/FileFieldWidgetTest.php
index 414c86b55f..82fb4f3cbf 100644
--- a/core/modules/file/src/Tests/FileFieldWidgetTest.php
+++ b/core/modules/file/src/Tests/FileFieldWidgetTest.php
@@ -271,7 +271,7 @@ function testMultiValuedWidget() {
     // Try to upload exactly the allowed number of files on revision. Create an
     // empty node first, to fill it in its first revision.
     $node = $this->drupalCreateNode([
-      'type' => $type_name
+      'type' => $type_name,
     ]);
     $this->uploadNodeFile($test_file, $field_name, $node->id(), 1);
     $node_storage->resetCache(array($nid));
diff --git a/core/modules/file/src/Tests/SaveUploadTest.php b/core/modules/file/src/Tests/SaveUploadTest.php
index 3aaa5cff04..2120016442 100644
--- a/core/modules/file/src/Tests/SaveUploadTest.php
+++ b/core/modules/file/src/Tests/SaveUploadTest.php
@@ -280,7 +280,7 @@ function testHandleFileMunge() {
   function testExistingRename() {
     $edit = array(
       'file_test_replace' => FILE_EXISTS_RENAME,
-      'files[file_test_upload]' => drupal_realpath($this->image->getFileUri())
+      'files[file_test_upload]' => drupal_realpath($this->image->getFileUri()),
     );
     $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
     $this->assertResponse(200, 'Received a 200 response for posted test file.');
@@ -296,7 +296,7 @@ function testExistingRename() {
   function testExistingReplace() {
     $edit = array(
       'file_test_replace' => FILE_EXISTS_REPLACE,
-      'files[file_test_upload]' => drupal_realpath($this->image->getFileUri())
+      'files[file_test_upload]' => drupal_realpath($this->image->getFileUri()),
     );
     $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
     $this->assertResponse(200, 'Received a 200 response for posted test file.');
@@ -312,7 +312,7 @@ function testExistingReplace() {
   function testExistingError() {
     $edit = array(
       'file_test_replace' => FILE_EXISTS_ERROR,
-      'files[file_test_upload]' => drupal_realpath($this->image->getFileUri())
+      'files[file_test_upload]' => drupal_realpath($this->image->getFileUri()),
     );
     $this->drupalPostForm('file-test/upload', $edit, t('Submit'));
     $this->assertResponse(200, 'Received a 200 response for posted test file.');
@@ -341,7 +341,7 @@ function testDrupalMovingUploadedFileError() {
 
     $edit = array(
       'file_subdir' => $test_directory,
-      'files[file_test_upload]' => drupal_realpath($this->image->getFileUri())
+      'files[file_test_upload]' => drupal_realpath($this->image->getFileUri()),
     );
 
     \Drupal::state()->set('file_test.disable_error_collection', TRUE);
@@ -355,7 +355,7 @@ function testDrupalMovingUploadedFileError() {
     $this->assertResponse(200);
     $this->assertRaw(t('Upload error. Could not move uploaded file @file to destination @destination.', array(
       '@file' => $this->image->getFilename(),
-      '@destination' => 'temporary://' . $test_directory . '/' . $this->image->getFilename()
+      '@destination' => 'temporary://' . $test_directory . '/' . $this->image->getFilename(),
     )), 'Found upload error log entry.');
   }
 
diff --git a/core/modules/file/tests/src/Kernel/FileItemValidationTest.php b/core/modules/file/tests/src/Kernel/FileItemValidationTest.php
index a5c2d69f72..9472203beb 100644
--- a/core/modules/file/tests/src/Kernel/FileItemValidationTest.php
+++ b/core/modules/file/tests/src/Kernel/FileItemValidationTest.php
@@ -77,9 +77,9 @@ public function testFileValidationConstraint($file_type) {
         'default' => [
           'files' => [
             'test.txt' => str_repeat('a', 3000),
-          ]
-        ]
-      ]
+          ],
+        ],
+      ],
     ]);
 
     // Test for max filesize.
@@ -93,7 +93,7 @@ public function testFileValidationConstraint($file_type) {
       'uid' => $this->user->id(),
       'field_test_file' => [
         'target_id' => $file->id(),
-      ]
+      ],
     ]);
     $result = $entity_test->validate();
     $this->assertCount(2, $result);
diff --git a/core/modules/file/tests/src/Kernel/UsageTest.php b/core/modules/file/tests/src/Kernel/UsageTest.php
index 8e2601510b..1ba0be4412 100644
--- a/core/modules/file/tests/src/Kernel/UsageTest.php
+++ b/core/modules/file/tests/src/Kernel/UsageTest.php
@@ -26,7 +26,7 @@ function testGetUsage() {
         'module' => 'testing',
         'type' => 'foo',
         'id' => 1,
-        'count' => 1
+        'count' => 1,
       ))
       ->execute();
     db_insert('file_usage')
@@ -35,7 +35,7 @@ function testGetUsage() {
         'module' => 'testing',
         'type' => 'bar',
         'id' => 2,
-        'count' => 2
+        'count' => 2,
       ))
       ->execute();
 
diff --git a/core/modules/file/tests/src/Kernel/Views/FileViewsFieldAccessTest.php b/core/modules/file/tests/src/Kernel/Views/FileViewsFieldAccessTest.php
index 18a6f51143..539cb5d41f 100644
--- a/core/modules/file/tests/src/Kernel/Views/FileViewsFieldAccessTest.php
+++ b/core/modules/file/tests/src/Kernel/Views/FileViewsFieldAccessTest.php
@@ -48,7 +48,7 @@ public function testFileFields() {
       'uri' => 'public://test.txt',
       'status' => TRUE,
       'langcode' => 'fr',
-      'uid' => $user->id()
+      'uid' => $user->id(),
     ]);
     $file->save();
 
diff --git a/core/modules/filter/filter.module b/core/modules/filter/filter.module
index f52614a425..d2d6da1562 100644
--- a/core/modules/filter/filter.module
+++ b/core/modules/filter/filter.module
@@ -74,7 +74,7 @@ function filter_theme() {
         'caption' => NULL,
         'classes' => NULL,
       ),
-    )
+    ),
   );
 }
 
diff --git a/core/modules/filter/src/FilterPermissions.php b/core/modules/filter/src/FilterPermissions.php
index fc22f3c4cc..bdad0e9ca5 100644
--- a/core/modules/filter/src/FilterPermissions.php
+++ b/core/modules/filter/src/FilterPermissions.php
@@ -57,7 +57,7 @@ public function permissions() {
           'description' => [
             '#prefix' => '<em>',
             '#markup' => $this->t('Warning: This permission may have security implications depending on how the text format is configured.'),
-            '#suffix' => '</em>'
+            '#suffix' => '</em>',
           ],
         ];
       }
diff --git a/core/modules/filter/src/FilterProcessResult.php b/core/modules/filter/src/FilterProcessResult.php
index 3fa592b627..d5cfea4c42 100644
--- a/core/modules/filter/src/FilterProcessResult.php
+++ b/core/modules/filter/src/FilterProcessResult.php
@@ -143,7 +143,7 @@ public function createPlaceholder($callback, array $args) {
       'placeholders' => [
         $placeholder_markup => [
           '#lazy_builder' => [$callback, $args],
-        ]
+        ],
       ],
     ]);
 
diff --git a/core/modules/filter/src/Plugin/Filter/FilterHtml.php b/core/modules/filter/src/Plugin/Filter/FilterHtml.php
index 1dc71fba01..9e1e3d3bea 100644
--- a/core/modules/filter/src/Plugin/Filter/FilterHtml.php
+++ b/core/modules/filter/src/Plugin/Filter/FilterHtml.php
@@ -386,7 +386,7 @@ public function tips($long = FALSE) {
       'h3' => array($this->t('Heading'), '<h3>' . $this->t('Subtitle three') . '</h3>'),
       'h4' => array($this->t('Heading'), '<h4>' . $this->t('Subtitle four') . '</h4>'),
       'h5' => array($this->t('Heading'), '<h5>' . $this->t('Subtitle five') . '</h5>'),
-      'h6' => array($this->t('Heading'), '<h6>' . $this->t('Subtitle six') . '</h6>')
+      'h6' => array($this->t('Heading'), '<h6>' . $this->t('Subtitle six') . '</h6>'),
     );
     $header = array($this->t('Tag Description'), $this->t('You Type'), $this->t('You Get'));
     preg_match_all('/<([a-z0-9]+)[^a-z0-9]/i', $allowed_html, $out);
@@ -400,7 +400,7 @@ public function tips($long = FALSE) {
             array(
               '#prefix' => '<code>',
               '#plain_text' => $tips[$tag][1],
-              '#suffix' => '</code>'
+              '#suffix' => '</code>',
             ),
             'class' => array('type')),
           // The markup must not be escaped because this is the example output
diff --git a/core/modules/filter/src/Tests/FilterAdminTest.php b/core/modules/filter/src/Tests/FilterAdminTest.php
index 830cf18d77..8e1ae92662 100644
--- a/core/modules/filter/src/Tests/FilterAdminTest.php
+++ b/core/modules/filter/src/Tests/FilterAdminTest.php
@@ -140,7 +140,7 @@ function testFormatAdmin() {
     // exists.
     // @todo: See https://www.drupal.org/node/2031223 for the above.
     $edit_link = $this->xpath('//a[@href=:href]', array(
-      ':href' => \Drupal::url('entity.filter_format.edit_form', ['filter_format' => $format_id])
+      ':href' => \Drupal::url('entity.filter_format.edit_form', ['filter_format' => $format_id]),
     ));
     $this->assertTrue($edit_link, format_string('Link href %href found.',
       array('%href' => 'admin/config/content/formats/manage/' . $format_id)
diff --git a/core/modules/filter/tests/src/Kernel/FilterAPITest.php b/core/modules/filter/tests/src/Kernel/FilterAPITest.php
index 50189a6ab4..6709c13d85 100644
--- a/core/modules/filter/tests/src/Kernel/FilterAPITest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterAPITest.php
@@ -48,7 +48,7 @@ function testCheckMarkupFilterOrder() {
             'allowed_html' => '<p>',
           ),
         ),
-      )
+      ),
     ));
     $crazy_format->save();
 
@@ -180,10 +180,10 @@ function testFilterFormatAPI() {
                 'a' => array('href' => TRUE),
                 'em' => TRUE,
               ),
-            )
+            ),
           ),
         ),
-      )
+      ),
     ));
     $very_restricted_html_format->save();
     $this->assertIdentical(
@@ -217,7 +217,7 @@ function testFilterFormatAPI() {
             'allowed_html' => '<a> <b class> <c class="*"> <d class="foo bar-* *">',
           ),
         ),
-      )
+      ),
     ));
     $nonsensical_restricted_html->save();
     $this->assertIdentical(
@@ -413,7 +413,7 @@ public function testFilterFormatPreSave() {
             'allowed_html' => '<p>',
           ),
         ),
-      )
+      ),
     ));
     $crazy_format->save();
     // Use config to directly load the configuration and check that only enabled
diff --git a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
index 06c1e4b53f..72264c86f4 100644
--- a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
@@ -195,7 +195,7 @@ function testCaptionFilter() {
         'allowed_html' => '<img src data-align data-caption>',
         'filter_html_help' => 1,
         'filter_html_nofollow' => 0,
-      )
+      ),
     ));
     $test_with_html_filter = function ($input) use ($filter, $html_filter, $renderer) {
       return $renderer->executeInRenderContext(new RenderContext(), function () use ($input, $filter, $html_filter) {
@@ -411,7 +411,7 @@ function testHtmlFilter() {
         'allowed_html' => '<a> <p> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <br>',
         'filter_html_help' => 1,
         'filter_html_nofollow' => 0,
-      )
+      ),
     ));
 
     // HTML filter is not able to secure some tags, these should never be
@@ -466,7 +466,7 @@ function testHtmlFilter() {
         'allowed_html' => '<a href llama> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <br>',
         'filter_html_help' => 1,
         'filter_html_nofollow' => 0,
-      )
+      ),
     ));
     $f = (string) $filter->process('<a kitten="cute" llama="awesome">link</a>', Language::LANGCODE_NOT_SPECIFIED);
     $this->assertNormalized($f, '<a llama="awesome">link</a>', 'HTML filter keeps explicitly allowed attributes, and removes attributes that are not explicitly allowed.');
@@ -478,7 +478,7 @@ function testHtmlFilter() {
         'allowed_html' => '<a href llama="majestical epic"> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <br>',
         'filter_html_help' => 1,
         'filter_html_nofollow' => 0,
-      )
+      ),
     ));
     $f = (string) $filter->process('<a kitten="cute" llama="awesome">link</a>', Language::LANGCODE_NOT_SPECIFIED);
     $this->assertIdentical($f, '<a>link</a>', 'HTML filter removes allowed attributes that do not have an explicitly allowed value.');
@@ -501,7 +501,7 @@ function testNoFollowFilter() {
         'allowed_html' => '<a href>',
         'filter_html_help' => 1,
         'filter_html_nofollow' => 1,
-      )
+      ),
     ));
 
     // Test if the rel="nofollow" attribute is added, even if we try to prevent
@@ -549,7 +549,7 @@ function testUrlFilter() {
     $filter->setConfiguration(array(
       'settings' => array(
         'filter_url_length' => 496,
-      )
+      ),
     ));
 
     // @todo Possible categories:
@@ -842,7 +842,7 @@ function testUrlFilter() {
     $filter->setConfiguration(array(
       'settings' => array(
         'filter_url_length' => 20,
-      )
+      ),
     ));
     $tests = array(
       'www.trimmed.com/d/ff.ext?a=1&b=2#a1' => array(
@@ -924,7 +924,7 @@ function testUrlFilterContent() {
     $filter->setConfiguration(array(
       'settings' => array(
         'filter_url_length' => 496,
-      )
+      ),
     ));
     $path = __DIR__ . '/../..';
 
diff --git a/core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php b/core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php
index 85de742eb6..65a8357942 100644
--- a/core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php
+++ b/core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php
@@ -157,7 +157,7 @@ public function testValidateNoMatchingFormats() {
       ]);
 
     $expected = [
-      'Provides a filter plugin that is in use in the following filter formats: <em class="placeholder">Filter Format 1 Label, Filter Format 2 Label</em>'
+      'Provides a filter plugin that is in use in the following filter formats: <em class="placeholder">Filter Format 1 Label, Filter Format 2 Label</em>',
     ];
     $reasons = $this->filterUninstallValidator->validate($this->randomMachineName());
     $this->assertSame($expected, $this->castSafeStrings($reasons));
diff --git a/core/modules/forum/forum.views.inc b/core/modules/forum/forum.views.inc
index fa7174f0b2..ec2c92e04d 100644
--- a/core/modules/forum/forum.views.inc
+++ b/core/modules/forum/forum.views.inc
@@ -94,7 +94,7 @@ function forum_views_data() {
       'id' => 'date',
     ),
     'sort' => array(
-      'id' => 'date'
+      'id' => 'date',
     ),
     'filter' => array(
       'id' => 'date',
diff --git a/core/modules/forum/src/Form/Overview.php b/core/modules/forum/src/Form/Overview.php
index ba9c033de7..a95a33a3e0 100644
--- a/core/modules/forum/src/Form/Overview.php
+++ b/core/modules/forum/src/Form/Overview.php
@@ -82,7 +82,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
     // Use the existing taxonomy overview submit handler.
     $form['terms']['#empty'] = $this->t('No containers or forums available. <a href=":container">Add container</a> or <a href=":forum">Add forum</a>.', array(
       ':container' => $this->url('forum.add_container'),
-      ':forum' => $this->url('forum.add_forum')
+      ':forum' => $this->url('forum.add_forum'),
     ));
     return $form;
   }
diff --git a/core/modules/forum/src/ForumManager.php b/core/modules/forum/src/ForumManager.php
index 9fe49a8413..bc9c6a1100 100644
--- a/core/modules/forum/src/ForumManager.php
+++ b/core/modules/forum/src/ForumManager.php
@@ -184,7 +184,7 @@ public function getTopics($tid, AccountInterface $account) {
         'cid',
         'last_comment_uid',
         'last_comment_timestamp',
-        'comment_count'
+        'comment_count',
       ));
 
       $query->join('forum_index', 'f', 'f.nid = n.nid');
@@ -435,7 +435,7 @@ public function getIndex() {
       'container' => 1,
       'parents' => array(),
       'isIndex' => TRUE,
-      'vid' => $vid
+      'vid' => $vid,
     ));
 
     // Load the tree below.
diff --git a/core/modules/forum/src/ForumSettingsForm.php b/core/modules/forum/src/ForumSettingsForm.php
index ac9b325cf2..5627a2549d 100644
--- a/core/modules/forum/src/ForumSettingsForm.php
+++ b/core/modules/forum/src/ForumSettingsForm.php
@@ -50,7 +50,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       1 => $this->t('Date - newest first'),
       2 => $this->t('Date - oldest first'),
       3 => $this->t('Posts - most active first'),
-      4 => $this->t('Posts - least active first')
+      4 => $this->t('Posts - least active first'),
     );
     $form['forum_order'] = array(
       '#type' => 'radios',
diff --git a/core/modules/forum/src/ForumUninstallValidator.php b/core/modules/forum/src/ForumUninstallValidator.php
index 8ee0310fe9..24ae880264 100644
--- a/core/modules/forum/src/ForumUninstallValidator.php
+++ b/core/modules/forum/src/ForumUninstallValidator.php
@@ -67,7 +67,7 @@ public function validate($module) {
         }
         else {
           $reasons[] = $this->t('To uninstall Forum, first delete all %vocabulary terms', [
-            '%vocabulary' => $vocabulary->label()
+            '%vocabulary' => $vocabulary->label(),
           ]);
         }
       }
diff --git a/core/modules/forum/src/Tests/Views/ForumIntegrationTest.php b/core/modules/forum/src/Tests/Views/ForumIntegrationTest.php
index 99ed94569f..ba89d09e0e 100644
--- a/core/modules/forum/src/Tests/Views/ForumIntegrationTest.php
+++ b/core/modules/forum/src/Tests/Views/ForumIntegrationTest.php
@@ -72,17 +72,17 @@ public function testForumIntegration() {
     $expected_result[] = array(
       'nid' => $nodes[0]->id(),
       'sticky' => NodeInterface::STICKY,
-      'comment_count' => 1.
+      'comment_count' => 1.,
     );
     $expected_result[] = array(
       'nid' => $nodes[1]->id(),
       'sticky' => NodeInterface::NOT_STICKY,
-      'comment_count' => 2.
+      'comment_count' => 2.,
     );
     $expected_result[] = array(
       'nid' => $nodes[2]->id(),
       'sticky' => NodeInterface::NOT_STICKY,
-      'comment_count' => 3.
+      'comment_count' => 3.,
     );
     $column_map = array(
       'nid' => 'nid',
diff --git a/core/modules/hal/tests/src/Functional/EntityResource/Comment/CommentHalJsonTestBase.php b/core/modules/hal/tests/src/Functional/EntityResource/Comment/CommentHalJsonTestBase.php
index fc9248aca7..85c03bd2ad 100644
--- a/core/modules/hal/tests/src/Functional/EntityResource/Comment/CommentHalJsonTestBase.php
+++ b/core/modules/hal/tests/src/Functional/EntityResource/Comment/CommentHalJsonTestBase.php
@@ -90,7 +90,7 @@ protected function getExpectedNormalizedEntity() {
               ],
             ],
             'uuid' => [
-              ['value' => $commented_entity->uuid()]
+              ['value' => $commented_entity->uuid()],
             ],
           ],
         ],
@@ -105,7 +105,7 @@ protected function getExpectedNormalizedEntity() {
               ],
             ],
             'uuid' => [
-              ['value' => $author->uuid()]
+              ['value' => $author->uuid()],
             ],
             'lang' => 'en',
           ],
diff --git a/core/modules/hal/tests/src/Functional/EntityResource/EntityTest/EntityTestHalJsonAnonTest.php b/core/modules/hal/tests/src/Functional/EntityResource/EntityTest/EntityTestHalJsonAnonTest.php
index ef3826bea6..28faacd8b3 100644
--- a/core/modules/hal/tests/src/Functional/EntityResource/EntityTest/EntityTestHalJsonAnonTest.php
+++ b/core/modules/hal/tests/src/Functional/EntityResource/EntityTest/EntityTestHalJsonAnonTest.php
@@ -66,7 +66,7 @@ protected function getExpectedNormalizedEntity() {
               ],
             ],
             'uuid' => [
-              ['value' => $author->uuid()]
+              ['value' => $author->uuid()],
             ],
             'lang' => 'en',
           ],
diff --git a/core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php b/core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php
index e92a3d6643..abf5bbd8a9 100644
--- a/core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php
+++ b/core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php
@@ -83,7 +83,7 @@ protected function getExpectedNormalizedEntity() {
               ],
             ],
             'uuid' => [
-              ['value' => $author->uuid()]
+              ['value' => $author->uuid()],
             ],
             'lang' => 'en',
           ],
@@ -99,7 +99,7 @@ protected function getExpectedNormalizedEntity() {
               ],
             ],
             'uuid' => [
-              ['value' => $author->uuid()]
+              ['value' => $author->uuid()],
             ],
           ],
         ],
diff --git a/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php b/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php
index 74f5104c2f..dee3e9114b 100644
--- a/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php
+++ b/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php
@@ -51,7 +51,7 @@ public function testNodeTranslation() {
       'sticky' => 0,
       'body' => [
         'value' => $this->randomMachineName(),
-        'format' => $this->randomMachineName()
+        'format' => $this->randomMachineName(),
       ],
       'revision_log' => $this->randomString(),
     ]);
@@ -59,7 +59,7 @@ public function testNodeTranslation() {
       'title' => 'German title',
       'body' => [
         'value' => $this->randomMachineName(),
-        'format' => $this->randomMachineName()
+        'format' => $this->randomMachineName(),
       ],
     ]);
     $node->save();
diff --git a/core/modules/hal/tests/src/Kernel/NormalizeTest.php b/core/modules/hal/tests/src/Kernel/NormalizeTest.php
index cfffb4a865..bef1356647 100644
--- a/core/modules/hal/tests/src/Kernel/NormalizeTest.php
+++ b/core/modules/hal/tests/src/Kernel/NormalizeTest.php
@@ -48,7 +48,7 @@ public function testNormalize() {
       'name' => $this->randomMachineName(),
       'field_test_entity_reference' => array(
         'target_id' => $target_entity_en->id(),
-      )
+      ),
     );
 
     $entity = EntityTest::create($values);
diff --git a/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php b/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php
index b24c697268..d45287e8c4 100644
--- a/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php
+++ b/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php
@@ -115,7 +115,7 @@ public function settingsForm(array $form, FormStateInterface $form_state) {
       '#empty_option' => t('None (original image)'),
       '#options' => $image_styles,
       '#description' => $description_link->toRenderable() + [
-        '#access' => $this->currentUser->hasPermission('administer image styles')
+        '#access' => $this->currentUser->hasPermission('administer image styles'),
       ],
     ];
     $link_types = array(
diff --git a/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php b/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php
index a0f0274973..aeeb3ae7d0 100644
--- a/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php
+++ b/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php
@@ -323,7 +323,7 @@ public function testInvalidDefaultImage() {
       'settings' => array(
         'default_image' => array(
           'uuid' => 100000,
-        )
+        ),
       ),
     ));
     $field_storage->save();
@@ -338,7 +338,7 @@ public function testInvalidDefaultImage() {
       'settings' => array(
         'default_image' => array(
           'uuid' => 100000,
-        )
+        ),
       ),
     ]);
     $field->save();
diff --git a/core/modules/image/src/Tests/ImageFieldValidateTest.php b/core/modules/image/src/Tests/ImageFieldValidateTest.php
index 5f0bf213fa..cd5f4b6d0a 100644
--- a/core/modules/image/src/Tests/ImageFieldValidateTest.php
+++ b/core/modules/image/src/Tests/ImageFieldValidateTest.php
@@ -19,27 +19,27 @@ function testResolution() {
     ];
     $min_resolution = [
       'width' => 50,
-      'height' => 50
+      'height' => 50,
     ];
     $max_resolution = [
       'width' => 100,
-      'height' => 100
+      'height' => 100,
     ];
     $no_height_min_resolution = [
       'width' => 50,
-      'height' => NULL
+      'height' => NULL,
     ];
     $no_height_max_resolution = [
       'width' => 100,
-      'height' => NULL
+      'height' => NULL,
     ];
     $no_width_min_resolution = [
       'width' => NULL,
-      'height' => 50
+      'height' => 50,
     ];
     $no_width_max_resolution = [
       'width' => NULL,
-      'height' => 100
+      'height' => 100,
     ];
     $field_settings = [
       0 => $this->getFieldSettings($min_resolution, $max_resolution),
diff --git a/core/modules/image/src/Tests/ImageThemeFunctionTest.php b/core/modules/image/src/Tests/ImageThemeFunctionTest.php
index 52cf6c6e5d..573b013672 100644
--- a/core/modules/image/src/Tests/ImageThemeFunctionTest.php
+++ b/core/modules/image/src/Tests/ImageThemeFunctionTest.php
@@ -116,7 +116,7 @@ function testImageFormatterTheme() {
       ':fragment' => '#' . $fragment,
       ':url' => $url,
       ':width' => $image->getWidth(),
-      ':height' => $image->getHeight()
+      ':height' => $image->getHeight(),
     ));
     $this->assertEqual(count($elements), 1, 'theme_image_formatter() correctly renders a link fragment.');
   }
diff --git a/core/modules/image/tests/src/Kernel/ImageImportTest.php b/core/modules/image/tests/src/Kernel/ImageImportTest.php
index 14eeaa3f2b..9cf69570b6 100644
--- a/core/modules/image/tests/src/Kernel/ImageImportTest.php
+++ b/core/modules/image/tests/src/Kernel/ImageImportTest.php
@@ -22,7 +22,7 @@ class ImageImportTest extends KernelTestBase {
    */
   public function testImport() {
     $style = ImageStyle::create([
-      'name' => 'test'
+      'name' => 'test',
     ]);
 
     $style->addImageEffect(['id' => 'image_module_test_null']);
diff --git a/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php b/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php
index 10cc68df0a..0166981dc1 100644
--- a/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php
+++ b/core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php
@@ -142,7 +142,7 @@ public function testInvalidCropValues() {
     $this->startCollectingMessages();
     $this->executeMigration('d6_imagecache_presets');
     $this->assertEqual(['error' => [
-     'The Drupal 8 image crop effect does not support numeric values for x and y offsets. Use keywords to set crop effect offsets instead.'
+     'The Drupal 8 image crop effect does not support numeric values for x and y offsets. Use keywords to set crop effect offsets instead.',
     ]], $this->migrateMessages);
   }
 
diff --git a/core/modules/language/src/Form/LanguageFormBase.php b/core/modules/language/src/Form/LanguageFormBase.php
index 00771621be..682c4fb537 100644
--- a/core/modules/language/src/Form/LanguageFormBase.php
+++ b/core/modules/language/src/Form/LanguageFormBase.php
@@ -50,11 +50,11 @@ public function commonForm(array &$form) {
       $form['langcode_view'] = array(
         '#type' => 'item',
         '#title' => $this->t('Language code'),
-        '#markup' => $language->id()
+        '#markup' => $language->id(),
       );
       $form['langcode'] = array(
         '#type' => 'value',
-        '#value' => $language->id()
+        '#value' => $language->id(),
       );
     }
     else {
diff --git a/core/modules/language/src/Form/NegotiationConfigureForm.php b/core/modules/language/src/Form/NegotiationConfigureForm.php
index 41f57a32f6..ae296ae622 100644
--- a/core/modules/language/src/Form/NegotiationConfigureForm.php
+++ b/core/modules/language/src/Form/NegotiationConfigureForm.php
@@ -234,7 +234,7 @@ protected function configureFormTable(array &$form, $type)  {
         '#attributes' => array('class' => array('language-customization-checkbox')),
         '#attached' => array(
           'library' => array(
-            'language/drupal.language.admin'
+            'language/drupal.language.admin',
           ),
         ),
       );
diff --git a/core/modules/language/src/Tests/LanguageConfigurationElementTest.php b/core/modules/language/src/Tests/LanguageConfigurationElementTest.php
index 93b821d183..3967cbfaff 100644
--- a/core/modules/language/src/Tests/LanguageConfigurationElementTest.php
+++ b/core/modules/language/src/Tests/LanguageConfigurationElementTest.php
@@ -170,7 +170,7 @@ public function testNodeTypeUpdate() {
     $this->assertTrue($configuration->isLanguageAlterable(), 'The alterable language configuration has been saved on the Article content type.');
     // Update the article content type by changing the title label.
     $edit = array(
-      'title_label' => 'Name'
+      'title_label' => 'Name',
     );
     $this->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
     // Check that we still have the settings for the updated node type.
@@ -189,7 +189,7 @@ public function testNodeTypeDelete() {
     if ($this->profile != 'standard') {
       $this->drupalCreateContentType(array(
         'type' => 'article',
-        'name' => 'Article'
+        'name' => 'Article',
       ));
     }
     $admin_user = $this->drupalCreateUser(array('administer content types'));
@@ -240,7 +240,7 @@ public function testTaxonomyVocabularyUpdate() {
     $this->assertTrue($configuration->isLanguageAlterable(), 'The alterable language configuration has been saved on the Country vocabulary.');
     // Update the vocabulary.
     $edit = array(
-      'name' => 'Nation'
+      'name' => 'Nation',
     );
     $this->drupalPostForm('admin/structure/taxonomy/manage/country', $edit, t('Save'));
     // Check that we still have the settings for the updated vocabulary.
diff --git a/core/modules/language/src/Tests/LanguageUrlRewritingTest.php b/core/modules/language/src/Tests/LanguageUrlRewritingTest.php
index 5cd80dc4a9..5e19b44831 100644
--- a/core/modules/language/src/Tests/LanguageUrlRewritingTest.php
+++ b/core/modules/language/src/Tests/LanguageUrlRewritingTest.php
@@ -109,7 +109,7 @@ function testDomainNameNegotiationPort() {
     $edit = array(
       'language_negotiation_url_part' => LanguageNegotiationUrl::CONFIG_DOMAIN,
       'domain[en]' => $base_url_host,
-      'domain[fr]' => $language_domain
+      'domain[fr]' => $language_domain,
     );
     $this->drupalPostForm('admin/config/regional/language/detection/url', $edit, t('Save configuration'));
     // Rebuild the container so that the new language gets picked up by services
diff --git a/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php b/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php
index 8991437822..e2ced91805 100644
--- a/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php
@@ -90,7 +90,7 @@ public function testEnabledLanguageContentNegotiator() {
     $config->set('configurable', [LanguageInterface::TYPE_INTERFACE, LanguageInterface::TYPE_CONTENT]);
     $config->set('negotiation.language_content.enabled', [
       LanguageNegotiationUrl::METHOD_ID => 0,
-      LanguageNegotiationContentEntity::METHOD_ID => 1
+      LanguageNegotiationContentEntity::METHOD_ID => 1,
     ]);
     $config->save();
 
@@ -105,7 +105,7 @@ public function testEnabledLanguageContentNegotiator() {
     // language-url.
     $config->set('negotiation.language_content.enabled', [
       LanguageNegotiationContentEntity::METHOD_ID => 0,
-      LanguageNegotiationUrl::METHOD_ID => 1
+      LanguageNegotiationUrl::METHOD_ID => 1,
     ]);
     $config->save();
 
diff --git a/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php b/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php
index fb62f48158..8154e42a46 100644
--- a/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php
+++ b/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php
@@ -74,7 +74,7 @@ public function testEntityUrlLanguageWithLanguageContentEnabled() {
     $config->set('configurable', [LanguageInterface::TYPE_INTERFACE, LanguageInterface::TYPE_CONTENT]);
     $config->set('negotiation.language_content.enabled', [
       LanguageNegotiationContentEntity::METHOD_ID => 0,
-      LanguageNegotiationUrl::METHOD_ID => 1
+      LanguageNegotiationUrl::METHOD_ID => 1,
     ]);
     $config->save();
 
@@ -98,7 +98,7 @@ public function testEntityUrlLanguageWithLanguageContentEnabled() {
     // where the language-content-entity is turned off.
     $config->set('negotiation.language_content.enabled', [
       LanguageNegotiationUrl::METHOD_ID => 0,
-      LanguageNegotiationContentEntity::METHOD_ID => 1
+      LanguageNegotiationContentEntity::METHOD_ID => 1,
     ]);
     $config->save();
 
diff --git a/core/modules/language/tests/src/Kernel/Migrate/MigrateDefaultLanguageTrait.php b/core/modules/language/tests/src/Kernel/Migrate/MigrateDefaultLanguageTrait.php
index 94bb02d339..d88aed45e8 100644
--- a/core/modules/language/tests/src/Kernel/Migrate/MigrateDefaultLanguageTrait.php
+++ b/core/modules/language/tests/src/Kernel/Migrate/MigrateDefaultLanguageTrait.php
@@ -25,7 +25,7 @@ protected function doTestMigration($langcode, $existing = TRUE) {
     $value = 'O:8:"stdClass":11:{s:8:"language";s:2:"' . $langcode . '";s:4:"name";s:6:"French";s:6:"native";s:6:"French";s:9:"direction";s:1:"0";s:7:"enabled";i:1;s:7:"plurals";s:1:"0";s:7:"formula";s:0:"";s:6:"domain";s:0:"";s:6:"prefix";s:0:"";s:6:"weight";s:1:"0";s:10:"javascript";s:0:"";}';
     $this->sourceDatabase->update('variable')
       ->fields(array(
-        'value' => $value
+        'value' => $value,
       ))
       ->condition('name', 'language_default' )
       ->execute();
diff --git a/core/modules/language/tests/src/Kernel/Views/FilterLanguageTest.php b/core/modules/language/tests/src/Kernel/Views/FilterLanguageTest.php
index 0c6241a4ea..eebaa12fd2 100644
--- a/core/modules/language/tests/src/Kernel/Views/FilterLanguageTest.php
+++ b/core/modules/language/tests/src/Kernel/Views/FilterLanguageTest.php
@@ -48,7 +48,7 @@ public function testFilter() {
         'en',
         'xx-lolspeak',
         'und',
-        'zxx'
+        'zxx',
       ];
       $this->assertIdentical(array_keys($view->filter['langcode']->getValueOptions()), $expected);
 
diff --git a/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php b/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
index 6e98ae2254..a8aa9c2b5b 100644
--- a/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
+++ b/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
@@ -32,7 +32,7 @@ class LinkItem extends FieldItemBase implements LinkItemInterface {
   public static function defaultFieldSettings() {
     return array(
       'title' => DRUPAL_OPTIONAL,
-      'link_type' => LinkItemInterface::LINK_GENERIC
+      'link_type' => LinkItemInterface::LINK_GENERIC,
     ) + parent::defaultFieldSettings();
   }
 
diff --git a/core/modules/link/src/Tests/Views/LinkViewsTokensTest.php b/core/modules/link/src/Tests/Views/LinkViewsTokensTest.php
index ec06ca614f..8ae3cf8562 100644
--- a/core/modules/link/src/Tests/Views/LinkViewsTokensTest.php
+++ b/core/modules/link/src/Tests/Views/LinkViewsTokensTest.php
@@ -45,7 +45,7 @@ protected function setUp() {
     // Create Basic page node type.
     $this->drupalCreateContentType(array(
       'type' => 'page',
-      'name' => 'Basic page'
+      'name' => 'Basic page',
     ));
 
     // Create a field.
diff --git a/core/modules/locale/locale.batch.inc b/core/modules/locale/locale.batch.inc
index 81ca966671..32fe6b0c30 100644
--- a/core/modules/locale/locale.batch.inc
+++ b/core/modules/locale/locale.batch.inc
@@ -241,7 +241,7 @@ function locale_translation_http_check($uri) {
     $response = \Drupal::service('http_client_factory')->fromOptions(['allow_redirects' => [
       'on_redirect' => function(RequestInterface $request, ResponseInterface $response, UriInterface $request_uri) use (&$actual_uri) {
         $actual_uri = (string) $request_uri;
-      }
+      },
     ]])->head($uri);
     $result = array();
 
diff --git a/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php b/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
index 9ad620fcf4..4ce6f3e649 100644
--- a/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
+++ b/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
@@ -122,7 +122,7 @@ public function testConfigTranslationModuleInstall() {
     $expected = [
       'translatable_no_default' => 'This translation is preserved',
       'translatable_default_with_translation' => 'This translation is preserved',
-      'translatable_default_with_no_translation' => 'This translation is preserved'
+      'translatable_default_with_no_translation' => 'This translation is preserved',
     ];
     $this->assertEqual($expected, $override->get());
   }
@@ -193,7 +193,7 @@ function testLocaleRemovalAndConfigOverridePreserve() {
     $expected = [
       'translatable_default_with_translation' => 'Locale can translate Afrikaans',
       'translatable_no_default' => 'This translation is preserved',
-      'translatable_default_with_no_translation' => 'This translation is preserved'
+      'translatable_default_with_no_translation' => 'This translation is preserved',
     ];
     $this->assertEqual($expected, $override->get());
 
@@ -215,7 +215,7 @@ function testLocaleRemovalAndConfigOverridePreserve() {
     $override = \Drupal::languageManager()->getLanguageConfigOverride('af', 'locale_test_translate.settings');
     $expected = [
       'translatable_no_default' => 'This translation is preserved',
-      'translatable_default_with_no_translation' => 'This translation is preserved'
+      'translatable_default_with_no_translation' => 'This translation is preserved',
     ];
     $this->assertEqual($expected, $override->get());
   }
diff --git a/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php b/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php
index 1e417552e1..635e0d1150 100644
--- a/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php
+++ b/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php
@@ -45,7 +45,7 @@ function testFileConfigurationPage() {
     // The setting should persist.
     $translation_path = $this->publicFilesDirectory . '/translations_changed';
     $fields = array(
-      'translation_path' => $translation_path
+      'translation_path' => $translation_path,
     );
     $this->drupalPostForm(NULL, $fields, t('Save configuration'));
     $this->drupalGet('admin/config/media/file-system');
diff --git a/core/modules/locale/src/Tests/LocaleUpdateInterfaceTest.php b/core/modules/locale/src/Tests/LocaleUpdateInterfaceTest.php
index 45740acbc3..820c8008f7 100644
--- a/core/modules/locale/src/Tests/LocaleUpdateInterfaceTest.php
+++ b/core/modules/locale/src/Tests/LocaleUpdateInterfaceTest.php
@@ -86,7 +86,7 @@ public function testInterface() {
     $release_details = new FormattableMarkup('@module (@version). @info', [
       '@module' => 'Locale test translate',
       '@version' => '1.3-dev',
-      '@info' => t('File not found at %local_path', array('%local_path' => 'core/modules/locale/tests/test.de.po'))
+      '@info' => t('File not found at %local_path', array('%local_path' => 'core/modules/locale/tests/test.de.po')),
     ]);
     $this->assertRaw($release_details->__toString(), 'Release details');
 
diff --git a/core/modules/migrate/tests/src/Functional/process/DownloadFunctionalTest.php b/core/modules/migrate/tests/src/Functional/process/DownloadFunctionalTest.php
index 2a73d702ee..792ef6d9fd 100644
--- a/core/modules/migrate/tests/src/Functional/process/DownloadFunctionalTest.php
+++ b/core/modules/migrate/tests/src/Functional/process/DownloadFunctionalTest.php
@@ -42,7 +42,7 @@ public function testExceptionThrow() {
         'uri' => [
           'plugin' => 'download',
           'source' => ['url', 'uri'],
-        ]
+        ],
       ],
       'destination' => [
         'plugin' => 'entity:file',
diff --git a/core/modules/migrate/tests/src/Kernel/MigrateConfigRollbackTest.php b/core/modules/migrate/tests/src/Kernel/MigrateConfigRollbackTest.php
index 14e50b9514..27aa45bcce 100644
--- a/core/modules/migrate/tests/src/Kernel/MigrateConfigRollbackTest.php
+++ b/core/modules/migrate/tests/src/Kernel/MigrateConfigRollbackTest.php
@@ -34,7 +34,7 @@ public function testConfigRollback() {
     $ids = [
       'id' =>
         [
-          'type' => 'string'
+          'type' => 'string',
         ],
     ];
     $definition = [
@@ -100,12 +100,12 @@ public function testConfigRollback() {
     $ids = [
       'id' =>
         [
-          'type' => 'string'
+          'type' => 'string',
         ],
       'language' =>
         [
-          'type' => 'string'
-        ]
+          'type' => 'string',
+        ],
     ];
     $definition = [
       'id' => 'i18n_config',
diff --git a/core/modules/migrate/tests/src/Kernel/MigrateRollbackEntityConfigTest.php b/core/modules/migrate/tests/src/Kernel/MigrateRollbackEntityConfigTest.php
index 76945a7454..c21add01af 100644
--- a/core/modules/migrate/tests/src/Kernel/MigrateRollbackEntityConfigTest.php
+++ b/core/modules/migrate/tests/src/Kernel/MigrateRollbackEntityConfigTest.php
@@ -82,14 +82,14 @@ public function testConfigEntityRollback() {
         'name' => '1',
         'language' => 'fr',
         'property' => 'name',
-        'translation' => 'fr - categories'
+        'translation' => 'fr - categories',
       ],
       [
         'id' => '2',
         'name' => '2',
         'language' => 'fr',
         'property' => 'name',
-        'translation' => 'fr - tags'
+        'translation' => 'fr - tags',
       ],
     ];
     $ids = [
@@ -105,7 +105,7 @@ public function testConfigEntityRollback() {
         'ids' => $ids,
         'constants' => [
           'name' => 'name',
-        ]
+        ],
       ],
       'process' => [
         'vid' => 'id',
diff --git a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php
index 0af144598b..0a3ed34774 100644
--- a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php
+++ b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php
@@ -39,7 +39,7 @@ public function testGetMigrationDependencies() {
         'f1' => 'bar',
         'f2' => [
           'plugin' => 'migration',
-          'migration' => 'm1'
+          'migration' => 'm1',
         ],
         'f3' => [
           'plugin' => 'iterator',
diff --git a/core/modules/migrate/tests/src/Kernel/process/CopyFileTest.php b/core/modules/migrate/tests/src/Kernel/process/CopyFileTest.php
index ecd1bb14d4..52bd42c61c 100644
--- a/core/modules/migrate/tests/src/Kernel/process/CopyFileTest.php
+++ b/core/modules/migrate/tests/src/Kernel/process/CopyFileTest.php
@@ -46,17 +46,17 @@ public function testSuccessfulCopies() {
       // Test a local to local copy.
       [
         $this->root . '/core/modules/simpletest/files/image-test.jpg',
-        'public://file1.jpg'
+        'public://file1.jpg',
       ],
       // Test a temporary file using an absolute path.
       [
         $file_absolute,
-        'temporary://test.jpg'
+        'temporary://test.jpg',
       ],
       // Test a temporary file using a relative path.
       [
         $file_absolute,
-        'temporary://core/modules/simpletest/files/test.jpg'
+        'temporary://core/modules/simpletest/files/test.jpg',
       ],
     ];
     foreach ($data_sets as $data) {
@@ -109,17 +109,17 @@ public function testSuccessfulMoves() {
       // Test a local to local copy.
       [
         $local_file,
-        'public://file1.jpg'
+        'public://file1.jpg',
       ],
       // Test a temporary file using an absolute path.
       [
         $file_1_absolute,
-        'temporary://test.jpg'
+        'temporary://test.jpg',
       ],
       // Test a temporary file using a relative path.
       [
         $file_2_absolute,
-        'temporary://core/modules/simpletest/files/test.jpg'
+        'temporary://core/modules/simpletest/files/test.jpg',
       ],
     ];
     foreach ($data_sets as $data) {
diff --git a/core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php b/core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php
index 451d832c3f..8b527b4b1f 100644
--- a/core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php
+++ b/core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php
@@ -50,17 +50,17 @@ public function testSuccessfulCopies() {
       // Test a local to local copy.
       [
         $this->root . '/core/modules/simpletest/files/image-test.jpg',
-        'public://file1.jpg'
+        'public://file1.jpg',
       ],
       // Test a temporary file using an absolute path.
       [
         $file_absolute,
-        'temporary://test.jpg'
+        'temporary://test.jpg',
       ],
       // Test a temporary file using a relative path.
       [
         $file_absolute,
-        'temporary://core/modules/simpletest/files/test.jpg'
+        'temporary://core/modules/simpletest/files/test.jpg',
       ],
     ];
     foreach ($data_sets as $data) {
@@ -87,17 +87,17 @@ public function testSuccessfulMoves() {
       // Test a local to local copy.
       [
         $local_file,
-        'public://file1.jpg'
+        'public://file1.jpg',
       ],
       // Test a temporary file using an absolute path.
       [
         $file_1_absolute,
-        'temporary://test.jpg'
+        'temporary://test.jpg',
       ],
       // Test a temporary file using a relative path.
       [
         $file_2_absolute,
-        'temporary://core/modules/simpletest/files/test.jpg'
+        'temporary://core/modules/simpletest/files/test.jpg',
       ],
     ];
     foreach ($data_sets as $data) {
diff --git a/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php b/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php
index 60809a90d7..01edc235b0 100644
--- a/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php
+++ b/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php
@@ -383,7 +383,7 @@ public function testImportWithValidRowWithException() {
   public function testProcessRow() {
     $expected = array(
       'test' => 'test destination',
-      'test1' => 'test1 destination'
+      'test1' => 'test1 destination',
     );
     foreach ($expected as $key => $value) {
       $plugins[$key][0] = $this->getMock('Drupal\migrate\Plugin\MigrateProcessInterface');
diff --git a/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php b/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php
index 3c9aa4234a..767ef8e70c 100644
--- a/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php
+++ b/core/modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php
@@ -28,7 +28,7 @@ public function testEnsureTablesNotExist() {
       'type' => 'varchar',
       'length' => 64,
       'not null' => 1,
-      'description' => 'Hash of source ids. Used as primary key'
+      'description' => 'Hash of source ids. Used as primary key',
     );
     $fields['sourceid1'] = array(
       'type' => 'int',
@@ -101,7 +101,7 @@ public function testEnsureTablesNotExist() {
       'type' => 'varchar',
       'length' => 64,
       'not null' => 1,
-      'description' => 'Hash of source ids. Used as primary key'
+      'description' => 'Hash of source ids. Used as primary key',
     );
     $fields['level'] = array(
       'type' => 'int',
diff --git a/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ConfigTest.php b/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ConfigTest.php
index 20b80957db..3cf4031907 100644
--- a/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ConfigTest.php
+++ b/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ConfigTest.php
@@ -72,7 +72,7 @@ public function providerSource() {
       ],
       'collections' => [
         'language.af',
-      ]
+      ],
     ];
 
     // Test with name and no collection in configuration.
diff --git a/core/modules/migrate_drupal/tests/src/Unit/source/d6/i18nVariableTest.php b/core/modules/migrate_drupal/tests/src/Unit/source/d6/i18nVariableTest.php
index bcfb6c2027..e49e6afafc 100644
--- a/core/modules/migrate_drupal/tests/src/Unit/source/d6/i18nVariableTest.php
+++ b/core/modules/migrate_drupal/tests/src/Unit/source/d6/i18nVariableTest.php
@@ -43,7 +43,7 @@ class i18nVariableTest extends MigrateSqlSourceTestCase {
       'language' => 'mi',
       'site_slogan' => 'Ko whakamataku heke',
       'site_name' => 'ingoa_pae',
-    ]
+    ],
   ];
 
   /**
diff --git a/core/modules/node/node.admin.inc b/core/modules/node/node.admin.inc
index dc1be65265..30064ac6ef 100644
--- a/core/modules/node/node.admin.inc
+++ b/core/modules/node/node.admin.inc
@@ -35,7 +35,7 @@ function node_mass_update(array $nodes, array $updates, $langcode = NULL, $load
   if (count($nodes) > 10) {
     $batch = array(
       'operations' => array(
-        array('_node_mass_update_batch_process', array($nodes, $updates, $langcode, $load, $revisions))
+        array('_node_mass_update_batch_process', array($nodes, $updates, $langcode, $load, $revisions)),
       ),
       'finished' => '_node_mass_update_batch_finished',
       'title' => t('Processing'),
diff --git a/core/modules/node/node.api.php b/core/modules/node/node.api.php
index a4937f7421..044d148385 100644
--- a/core/modules/node/node.api.php
+++ b/core/modules/node/node.api.php
@@ -169,7 +169,7 @@ function hook_node_access_records(\Drupal\node\NodeInterface $node) {
         'grant_view' => 1,
         'grant_update' => 0,
         'grant_delete' => 0,
-        'langcode' => 'ca'
+        'langcode' => 'ca',
       );
     }
     // For the example_author array, the GID is equivalent to a UID, which
@@ -183,7 +183,7 @@ function hook_node_access_records(\Drupal\node\NodeInterface $node) {
         'grant_view' => 1,
         'grant_update' => 1,
         'grant_delete' => 1,
-        'langcode' => 'ca'
+        'langcode' => 'ca',
       );
     }
 
diff --git a/core/modules/node/node.module b/core/modules/node/node.module
index 7d7247b75b..aa2ef57a0c 100644
--- a/core/modules/node/node.module
+++ b/core/modules/node/node.module
@@ -828,7 +828,7 @@ function node_page_top(array &$page) {
     $page['page_top']['node_preview'] = array(
       '#type' => 'container',
       '#attributes' => array(
-        'class' => array('node-preview-container', 'container-inline')
+        'class' => array('node-preview-container', 'container-inline'),
       ),
     );
 
@@ -1173,7 +1173,7 @@ function node_access_rebuild($batch_mode = FALSE) {
         'operations' => array(
           array('_node_access_rebuild_batch_operation', array()),
         ),
-        'finished' => '_node_access_rebuild_batch_finished'
+        'finished' => '_node_access_rebuild_batch_finished',
       );
       batch_set($batch);
     }
diff --git a/core/modules/node/src/Form/NodePreviewForm.php b/core/modules/node/src/Form/NodePreviewForm.php
index 829fee100a..381f76820b 100644
--- a/core/modules/node/src/Form/NodePreviewForm.php
+++ b/core/modules/node/src/Form/NodePreviewForm.php
@@ -105,7 +105,7 @@ public function buildForm(array $form, FormStateInterface $form_state, EntityInt
       '#default_value' => $view_mode,
       '#attributes' => array(
         'data-drupal-autosubmit' => TRUE,
-      )
+      ),
     );
 
     $form['submit'] = array(
diff --git a/core/modules/node/src/NodeTypeListBuilder.php b/core/modules/node/src/NodeTypeListBuilder.php
index bdd08745b2..005f309999 100644
--- a/core/modules/node/src/NodeTypeListBuilder.php
+++ b/core/modules/node/src/NodeTypeListBuilder.php
@@ -56,7 +56,7 @@ public function getDefaultOperations(EntityInterface $entity) {
   public function render() {
     $build = parent::render();
     $build['table']['#empty'] = $this->t('No content types available. <a href=":link">Add content type</a>.', [
-        ':link' => Url::fromRoute('node.type_add')->toString()
+        ':link' => Url::fromRoute('node.type_add')->toString(),
       ]);
     return $build;
   }
diff --git a/core/modules/node/src/NodeViewBuilder.php b/core/modules/node/src/NodeViewBuilder.php
index c65250ee90..0d87b25d84 100644
--- a/core/modules/node/src/NodeViewBuilder.php
+++ b/core/modules/node/src/NodeViewBuilder.php
@@ -45,7 +45,7 @@ public function buildComponents(array &$build, array $entities, array $displays,
           '#title' => t('Language'),
           '#markup' => $entity->language()->getName(),
           '#prefix' => '<div id="field-language-display">',
-          '#suffix' => '</div>'
+          '#suffix' => '</div>',
         );
       }
     }
diff --git a/core/modules/node/src/NodeViewsData.php b/core/modules/node/src/NodeViewsData.php
index 21e1e44b2d..db08177718 100644
--- a/core/modules/node/src/NodeViewsData.php
+++ b/core/modules/node/src/NodeViewsData.php
@@ -330,7 +330,7 @@ public function getViewsData() {
             'field' => 'sid',
             'table' => 'search_index',
             'extra' => "node_search_index.type = 'node_search' AND node_search_index.langcode = node_field_data.langcode",
-          )
+          ),
         );
 
         $data['node_search_total']['table']['join'] = array(
diff --git a/core/modules/node/src/Plugin/Search/NodeSearch.php b/core/modules/node/src/Plugin/Search/NodeSearch.php
index ef61064e02..d2081b6b4e 100644
--- a/core/modules/node/src/Plugin/Search/NodeSearch.php
+++ b/core/modules/node/src/Plugin/Search/NodeSearch.php
@@ -475,7 +475,7 @@ protected function indexNode(NodeInterface $node) {
         '#prefix' => '<h1>',
         '#plain_text' => $node->label(),
         '#suffix' => '</h1>',
-        '#weight' => -1000
+        '#weight' => -1000,
       ];
       $text = $this->renderer->renderPlain($build);
 
@@ -781,7 +781,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
       '#open' => TRUE,
     );
     $form['content_ranking']['info'] = array(
-      '#markup' => '<p><em>' . $this->t('Influence is a numeric multiplier used in ordering search results. A higher number means the corresponding factor has more influence on search results; zero means the factor is ignored. Changing these numbers does not require the search index to be rebuilt. Changes take effect immediately.') . '</em></p>'
+      '#markup' => '<p><em>' . $this->t('Influence is a numeric multiplier used in ordering search results. A higher number means the corresponding factor has more influence on search results; zero means the factor is ignored. Changing these numbers does not require the search index to be rebuilt. Changes take effect immediately.') . '</em></p>',
     );
     // Prepare table.
     $header = [$this->t('Factor'), $this->t('Influence')];
diff --git a/core/modules/node/src/Plugin/views/wizard/Node.php b/core/modules/node/src/Plugin/views/wizard/Node.php
index ce267e662e..b36baffab6 100644
--- a/core/modules/node/src/Plugin/views/wizard/Node.php
+++ b/core/modules/node/src/Plugin/views/wizard/Node.php
@@ -36,7 +36,7 @@ class Node extends WizardPluginBase {
       'plugin_id' => 'boolean',
       'entity_type' => 'node',
       'entity_field' => 'status',
-    )
+    ),
   );
 
   /**
@@ -49,7 +49,7 @@ class Node extends WizardPluginBase {
   public function getAvailableSorts() {
     // You can't execute functions in properties, so override the method
     return array(
-      'node_field_data-title:ASC' => $this->t('Title')
+      'node_field_data-title:ASC' => $this->t('Title'),
     );
   }
 
diff --git a/core/modules/node/src/Plugin/views/wizard/NodeRevision.php b/core/modules/node/src/Plugin/views/wizard/NodeRevision.php
index 64bc7beda3..1ef5ab68b4 100644
--- a/core/modules/node/src/Plugin/views/wizard/NodeRevision.php
+++ b/core/modules/node/src/Plugin/views/wizard/NodeRevision.php
@@ -35,7 +35,7 @@ class NodeRevision extends WizardPluginBase {
       'plugin_id' => 'boolean',
       'entity_type' => 'node',
       'entity_field' => 'status',
-    )
+    ),
   );
 
   /**
diff --git a/core/modules/node/src/Tests/NodeAccessRebuildNodeGrantsTest.php b/core/modules/node/src/Tests/NodeAccessRebuildNodeGrantsTest.php
index d151aadc36..9229ec570b 100644
--- a/core/modules/node/src/Tests/NodeAccessRebuildNodeGrantsTest.php
+++ b/core/modules/node/src/Tests/NodeAccessRebuildNodeGrantsTest.php
@@ -52,7 +52,7 @@ public function testNodeAccessRebuildNodeGrants() {
     for ($i = 0; $i < 30; $i++) {
       $nodes[] = $this->drupalCreateNode(array(
         'uid' => $this->webUser->id(),
-        'private' => [['value' => 1]]
+        'private' => [['value' => 1]],
       ));
     }
 
diff --git a/core/modules/node/src/Tests/NodeTestBase.php b/core/modules/node/src/Tests/NodeTestBase.php
index a5da2b4f5b..ee01f0fe88 100644
--- a/core/modules/node/src/Tests/NodeTestBase.php
+++ b/core/modules/node/src/Tests/NodeTestBase.php
@@ -105,7 +105,7 @@ function nodeAccessAssertMessage($operation, $result, $langcode = NULL) {
       array(
         '@result' => $result ? 'true' : 'false',
         '%op' => $operation,
-        '%langcode' => !empty($langcode) ? $langcode : 'empty'
+        '%langcode' => !empty($langcode) ? $langcode : 'empty',
       )
     );
   }
diff --git a/core/modules/node/src/Tests/NodeTranslationUITest.php b/core/modules/node/src/Tests/NodeTranslationUITest.php
index 063469d38a..b749e8e47f 100644
--- a/core/modules/node/src/Tests/NodeTranslationUITest.php
+++ b/core/modules/node/src/Tests/NodeTranslationUITest.php
@@ -27,7 +27,7 @@ class NodeTranslationUITest extends ContentTranslationUITestBase {
     'timezone',
     'url.path.parent',
     'url.query_args:_wrapper_format',
-    'user'
+    'user',
   ];
 
   /**
@@ -97,7 +97,7 @@ public function testPublishedStatusNoFields() {
     $add_url = Url::fromRoute("entity.$entity_type_id.content_translation_add", [
       $entity->getEntityTypeId() => $entity->id(),
       'source' => $default_langcode,
-      'target' => $langcode
+      'target' => $langcode,
     ], array('language' => $language));
     $this->drupalPostForm($add_url, $this->getEditValues($values, $langcode), t('Save and unpublish (this translation)'));
 
diff --git a/core/modules/node/src/Tests/NodeTypeTest.php b/core/modules/node/src/Tests/NodeTypeTest.php
index 0d2d8deabf..603b9dabb5 100644
--- a/core/modules/node/src/Tests/NodeTypeTest.php
+++ b/core/modules/node/src/Tests/NodeTypeTest.php
@@ -238,7 +238,7 @@ public function testNodeTypeNoContentType() {
     // Navigate to content type administration screen
     $this->drupalGet('admin/structure/types');
     $this->assertRaw(t('No content types available. <a href=":link">Add content type</a>.', [
-        ':link' => Url::fromRoute('node.type_add')->toString()
+        ':link' => Url::fromRoute('node.type_add')->toString(),
       ]), 'Empty text when there are no content types in the system is correct.');
 
     $bundle_info->clearCachedBundles();
diff --git a/core/modules/node/src/Tests/NodeViewTest.php b/core/modules/node/src/Tests/NodeViewTest.php
index 3a27ade0d9..7d760cb851 100644
--- a/core/modules/node/src/Tests/NodeViewTest.php
+++ b/core/modules/node/src/Tests/NodeViewTest.php
@@ -47,7 +47,7 @@ public function testHtmlHeadLinks() {
     // ensure caches are handled properly.
     $this->drupalLogin($this->rootUser);
     $edit = [
-      'anonymous[edit own ' . $node->bundle() . ' content]' => TRUE
+      'anonymous[edit own ' . $node->bundle() . ' content]' => TRUE,
     ];
     $this->drupalPostForm('admin/people/permissions', $edit, 'Save permissions');
     $this->drupalLogout();
diff --git a/core/modules/node/src/Tests/PagePreviewTest.php b/core/modules/node/src/Tests/PagePreviewTest.php
index 086ae82709..5f2ca93d27 100644
--- a/core/modules/node/src/Tests/PagePreviewTest.php
+++ b/core/modules/node/src/Tests/PagePreviewTest.php
@@ -134,7 +134,7 @@ protected function setUp() {
       'type' => 'text',
       'settings' => [
         'max_length' => 50,
-      ]
+      ],
     ]);
     $field_storage->save();
     FieldConfig::create([
diff --git a/core/modules/node/src/Tests/Views/FrontPageTest.php b/core/modules/node/src/Tests/Views/FrontPageTest.php
index 19cb659da2..51e4736590 100644
--- a/core/modules/node/src/Tests/Views/FrontPageTest.php
+++ b/core/modules/node/src/Tests/Views/FrontPageTest.php
@@ -281,7 +281,7 @@ protected function doTestFrontPageViewCacheTags($do_assert_views_caches) {
           [
             'value' => $this->randomMachineName(32),
             'format' => filter_default_format(),
-          ]
+          ],
         ],
         'type' => 'article',
         'created' => $i,
diff --git a/core/modules/node/src/Tests/Views/NodeLanguageTest.php b/core/modules/node/src/Tests/Views/NodeLanguageTest.php
index 4561508e57..61be377180 100644
--- a/core/modules/node/src/Tests/Views/NodeLanguageTest.php
+++ b/core/modules/node/src/Tests/Views/NodeLanguageTest.php
@@ -75,7 +75,7 @@ protected function setUp() {
       ),
       'fr' => array(
         'Premier nœud fr',
-      )
+      ),
     );
 
     // Create nodes with translations.
diff --git a/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php b/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php
index a84b7b61de..e8b5432da5 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php
@@ -54,7 +54,7 @@ protected function setUp() {
     FieldStorageConfig::create(array(
       'field_name' => $this->fieldName,
       'entity_type' => 'node',
-      'type' => 'text'
+      'type' => 'text',
     ))->save();
     FieldConfig::create([
       'field_name' => $this->fieldName,
diff --git a/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php b/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php
index 9d12098b87..0d48e84e53 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessMenuLinkTest.php
@@ -33,7 +33,7 @@ protected function setUp() {
     $this->contentAdminUser = $this->drupalCreateUser(array(
       'access content',
       'administer content types',
-      'administer menu'
+      'administer menu',
     ));
 
     $this->config('user.role.' . RoleInterface::ANONYMOUS_ID)->set('permissions', array())->save();
diff --git a/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php b/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
index 9f3949ebce..e63b4dbee0 100644
--- a/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
+++ b/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
@@ -25,7 +25,7 @@ protected function setUp() {
         'revert page revisions',
         'delete page revisions',
         'edit any page content',
-        'delete any page content'
+        'delete any page content',
       )
     );
     $this->drupalLogin($web_user);
@@ -95,7 +95,7 @@ function testRevisions() {
         'revert all revisions',
         'delete all revisions',
         'edit any page content',
-        'delete any page content'
+        'delete any page content',
       )
     );
     $this->drupalLogin($content_admin);
@@ -120,7 +120,7 @@ function testRevisions() {
       array(
         '@type' => 'Basic page',
         '%title' => $nodes[1]->getTitle(),
-        '%revision-date' => format_date($nodes[1]->getRevisionCreationTime())
+        '%revision-date' => format_date($nodes[1]->getRevisionCreationTime()),
       )),
       'Revision reverted.');
     $node_storage->resetCache(array($node->id()));
diff --git a/core/modules/node/tests/src/Functional/NodeTestBase.php b/core/modules/node/tests/src/Functional/NodeTestBase.php
index c3b269ecfe..4358ef3aa0 100644
--- a/core/modules/node/tests/src/Functional/NodeTestBase.php
+++ b/core/modules/node/tests/src/Functional/NodeTestBase.php
@@ -102,7 +102,7 @@ function nodeAccessAssertMessage($operation, $result, $langcode = NULL) {
       array(
         '@result' => $result ? 'true' : 'false',
         '%op' => $operation,
-        '%langcode' => !empty($langcode) ? $langcode : 'empty'
+        '%langcode' => !empty($langcode) ? $langcode : 'empty',
       )
     );
   }
diff --git a/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php b/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php
index 1f526b888c..ae215a753d 100644
--- a/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php
+++ b/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php
@@ -31,7 +31,7 @@ protected function setUp() {
     $this->executeMigrations([
       'd6_node_setting_promote',
       'd6_node_setting_status',
-      'd6_node_setting_sticky'
+      'd6_node_setting_sticky',
     ]);
   }
 
diff --git a/core/modules/page_cache/src/Tests/PageCacheTest.php b/core/modules/page_cache/src/Tests/PageCacheTest.php
index d4fae54a5f..eb312a72fd 100644
--- a/core/modules/page_cache/src/Tests/PageCacheTest.php
+++ b/core/modules/page_cache/src/Tests/PageCacheTest.php
@@ -356,7 +356,7 @@ function testPageCacheAnonymous403404() {
           0 => array(
             'value' => $this->randomString(),
             'format' => 'plain_text',
-          )
+          ),
         ),
       );
       $entity = EntityTest::create($entity_values);
diff --git a/core/modules/path/src/Form/PathFormBase.php b/core/modules/path/src/Form/PathFormBase.php
index dba3a3fa5d..4b8d8a9e3e 100644
--- a/core/modules/path/src/Form/PathFormBase.php
+++ b/core/modules/path/src/Form/PathFormBase.php
@@ -138,7 +138,7 @@ public function buildForm(array $form, FormStateInterface $form_state, $pid = NU
     else {
       $form['langcode'] = array(
         '#type' => 'value',
-        '#value' => $this->path['langcode']
+        '#value' => $this->path['langcode'],
       );
     }
 
diff --git a/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php b/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php
index df64a5c2e8..bd0bbbdfc8 100644
--- a/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php
+++ b/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
   public function testNoCanonicalLinkTemplate() {
     $entity_type = EntityTestTranslatableUISkip::create([
       'name' => 'name english',
-      'language' => 'en'
+      'language' => 'en',
     ]);
     $entity_type->save();
 
diff --git a/core/modules/quickedit/src/QuickEditController.php b/core/modules/quickedit/src/QuickEditController.php
index a42bcd0939..d0ab570c56 100644
--- a/core/modules/quickedit/src/QuickEditController.php
+++ b/core/modules/quickedit/src/QuickEditController.php
@@ -221,7 +221,7 @@ public function fieldForm(EntityInterface $entity, $field_name, $langcode, $view
       $errors = $form_state->getErrors();
       if (count($errors)) {
         $status_messages = array(
-          '#type' => 'status_messages'
+          '#type' => 'status_messages',
         );
         $response->addCommand(new FieldFormValidationErrorsCommand($this->renderer->renderRoot($status_messages)));
       }
@@ -293,7 +293,7 @@ public function entitySave(EntityInterface $entity) {
     // to identify it.
     $output = array(
       'entity_type' => $entity->getEntityTypeId(),
-      'entity_id' => $entity->id()
+      'entity_id' => $entity->id(),
     );
 
     // Respond to client that the entity was saved properly.
diff --git a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
index ab66227ad1..a212e3c3b8 100644
--- a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
+++ b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
@@ -80,7 +80,7 @@ protected function setUp() {
         0 => array(
           'value' => '<p>How are you?</p>',
           'format' => 'filtered_html',
-        )
+        ),
       ),
       'revision_log' => $this->randomString(),
     ));
@@ -181,7 +181,7 @@ public function testUserWithPermission() {
         'label' => 'Body',
         'access' => TRUE,
         'editor' => 'form',
-      )
+      ),
     );
     $this->assertIdentical(Json::decode($response), $expected, 'The metadata HTTP request answers with the correct JSON response.');
     // Restore drupalSettings to build the next requests; simpletest wipes them
@@ -339,7 +339,7 @@ public function testTitleBaseField() {
         'label' => 'Title',
         'access' => TRUE,
         'editor' => 'plain_text',
-      )
+      ),
     );
     $this->assertIdentical(Json::decode($response), $expected, 'The metadata HTTP request answers with the correct JSON response.');
     // Restore drupalSettings to build the next requests; simpletest wipes them
diff --git a/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php b/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
index 7fdc8fbf6d..b76b7f7247 100644
--- a/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
+++ b/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
@@ -169,7 +169,7 @@ public function testEditorWithCustomMetadata() {
       'label' => 'Rich text field',
       'editor' => 'wysiwyg',
       'custom' => array(
-        'format' => 'full_html'
+        'format' => 'full_html',
       ),
     );
     $this->assertEqual($expected, $metadata); //, 'The correct metadata (including custom metadata) is generated.');
diff --git a/core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php b/core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php
index bfdb229f68..fc72e0e446 100644
--- a/core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php
+++ b/core/modules/quickedit/tests/src/Kernel/QuickEditTestBase.php
@@ -97,7 +97,7 @@ protected function createFieldWithStorage($field_name, $type, $cardinality, $lab
       ->setComponent($field_name, array(
         'label' => 'above',
         'type' => $formatter_type,
-        'settings' => $formatter_settings
+        'settings' => $formatter_settings,
       ))
       ->save();
   }
diff --git a/core/modules/rdf/tests/src/Functional/UserAttributesTest.php b/core/modules/rdf/tests/src/Functional/UserAttributesTest.php
index 82c70d9dba..5e914f37a6 100644
--- a/core/modules/rdf/tests/src/Functional/UserAttributesTest.php
+++ b/core/modules/rdf/tests/src/Functional/UserAttributesTest.php
@@ -45,7 +45,7 @@ function testUserAttributesInMarkup() {
     $authors = array(
       $this->drupalCreateUser(array(), $this->randomMachineName(30)),
       $this->drupalCreateUser(array(), $this->randomMachineName(20)),
-      $this->drupalCreateUser(array(), $this->randomMachineName(5))
+      $this->drupalCreateUser(array(), $this->randomMachineName(5)),
     );
 
     $this->drupalLogin($user1);
diff --git a/core/modules/responsive_image/src/ResponsiveImageStyleForm.php b/core/modules/responsive_image/src/ResponsiveImageStyleForm.php
index 3e5b051ade..eab69a2d93 100644
--- a/core/modules/responsive_image/src/ResponsiveImageStyleForm.php
+++ b/core/modules/responsive_image/src/ResponsiveImageStyleForm.php
@@ -257,7 +257,7 @@ public function save(array $form, FormStateInterface $form_state) {
               'image_mapping' => array(
                 'sizes' => $image_style_mapping['sizes'],
                 'sizes_image_styles' => array_keys(array_filter($image_style_mapping['sizes_image_styles'])),
-              )
+              ),
             );
             $responsive_image_style->addImageStyleMapping($breakpoint_id, $multiplier, $mapping);
           }
diff --git a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
index aef5ec016e..4817e1ac13 100644
--- a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
+++ b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
@@ -52,7 +52,7 @@ protected function setUp() {
       'create article content',
       'edit any article content',
       'delete any article content',
-      'administer image styles'
+      'administer image styles',
     ));
     $this->drupalLogin($this->adminUser);
     // Add responsive image style.
diff --git a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php
index 3d0e32ee6b..bfe2e150ce 100644
--- a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php
+++ b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php
@@ -78,7 +78,7 @@ function testResponsiveImageFormatterUI() {
       ))
       ->addImageStyleMapping('responsive_image_test_module.narrow', '1x', array(
         'image_mapping_type' => 'image_style',
-        'image_mapping' => 'medium'
+        'image_mapping' => 'medium',
       ))
       // Test the normal output of mapping to an image style.
       ->addImageStyleMapping('responsive_image_test_module.wide', '1x', array(
diff --git a/core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php b/core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php
index c3f45e9d4f..a7b59f425f 100644
--- a/core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php
+++ b/core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php
@@ -241,7 +241,7 @@ public function testGetKeyedImageStyleMappings() {
           'image_mapping_type' => 'image_style',
           'image_mapping' => '_original image_',
         ),
-      )
+      ),
     );
     $this->assertEquals($expected, $entity->getKeyedImageStyleMappings());
 
diff --git a/core/modules/rest/rest.post_update.php b/core/modules/rest/rest.post_update.php
index ecbc73c405..e340afb513 100644
--- a/core/modules/rest/rest.post_update.php
+++ b/core/modules/rest/rest.post_update.php
@@ -58,7 +58,7 @@ function rest_post_update_resource_granularity() {
         $resource_config_entity->set('configuration', [
           'methods' => array_keys($configuration),
           'formats' => $configuration[$first_method]['supported_formats'],
-          'authentication' => $configuration[$first_method]['supported_auth']
+          'authentication' => $configuration[$first_method]['supported_auth'],
         ]);
         $resource_config_entity->set('granularity', RestResourceConfigInterface::RESOURCE_GRANULARITY);
         $resource_config_entity->save();
diff --git a/core/modules/rest/src/Entity/RestResourceConfig.php b/core/modules/rest/src/Entity/RestResourceConfig.php
index 12bd846ea6..3a4e39790a 100644
--- a/core/modules/rest/src/Entity/RestResourceConfig.php
+++ b/core/modules/rest/src/Entity/RestResourceConfig.php
@@ -203,7 +203,7 @@ protected function getFormatsForMethodGranularity($method) {
    */
   public function getPluginCollections() {
     return [
-      'resource' => new DefaultSingleLazyPluginCollection($this->getResourcePluginManager(), $this->plugin_id, [])
+      'resource' => new DefaultSingleLazyPluginCollection($this->getResourcePluginManager(), $this->plugin_id, []),
     ];
   }
 
diff --git a/core/modules/rest/src/Tests/RESTTestBase.php b/core/modules/rest/src/Tests/RESTTestBase.php
index 405493bccb..c902107169 100644
--- a/core/modules/rest/src/Tests/RESTTestBase.php
+++ b/core/modules/rest/src/Tests/RESTTestBase.php
@@ -381,7 +381,7 @@ protected function enableService($resource_type, $method = 'GET', $format = NULL
         $resource_config = $this->resourceConfigStorage->create([
           'id' => $resource_config_id,
           'granularity' => RestResourceConfigInterface::METHOD_GRANULARITY,
-          'configuration' => []
+          'configuration' => [],
         ]);
       }
       $configuration = $resource_config->get('configuration');
diff --git a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
index 4c004fcafc..da916e2aab 100644
--- a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
+++ b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
@@ -281,7 +281,7 @@ public function testRestRenderCaching() {
       'entity_test:7',
       'entity_test:8',
       'entity_test:9',
-      'entity_test_list'
+      'entity_test_list',
     ];
     $cache_contexts = [
       'entity_test_view_grants',
diff --git a/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8201.php b/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8201.php
index 17a69d5378..ac9b19119c 100644
--- a/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8201.php
+++ b/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8201.php
@@ -54,6 +54,6 @@
   ->fields([
     'name' => 'rest.settings',
     'data' => serialize($config),
-    'collection' => ''
+    'collection' => '',
   ])
   ->execute();
diff --git a/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8203.php b/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8203.php
index 15acff9409..c20ba9531d 100644
--- a/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8203.php
+++ b/core/modules/rest/tests/fixtures/update/drupal-8.rest-rest_update_8203.php
@@ -53,6 +53,6 @@
   ->fields([
     'name' => 'rest.settings',
     'data' => serialize($config),
-    'collection' => ''
+    'collection' => '',
   ])
   ->execute();
diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php
index 2d3c9980ef..21a709351d 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php
@@ -68,8 +68,8 @@ protected function getExpectedNormalizedEntity() {
     $normalization = [
       'uuid' => [
         [
-          'value' => $this->entity->uuid()
-        ]
+          'value' => $this->entity->uuid(),
+        ],
       ],
       'id' => [
         [
@@ -84,17 +84,17 @@ protected function getExpectedNormalizedEntity() {
       'type' => [
         [
           'value' => 'entity_test',
-        ]
+        ],
       ],
       'name' => [
         [
           'value' => 'Llama',
-        ]
+        ],
       ],
       'created' => [
         [
           'value' => $this->entity->get('created')->value,
-        ]
+        ],
       ],
       'user_id' => [
         [
@@ -102,7 +102,7 @@ protected function getExpectedNormalizedEntity() {
           'target_type' => 'user',
           'target_uuid' => $author->uuid(),
           'url' => $author->toUrl()->toString(),
-        ]
+        ],
       ],
       'field_test_text' => [],
     ];
diff --git a/core/modules/rest/tests/src/Functional/ResourceTestBase.php b/core/modules/rest/tests/src/Functional/ResourceTestBase.php
index 3f76c4364d..1cc37681a7 100644
--- a/core/modules/rest/tests/src/Functional/ResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/ResourceTestBase.php
@@ -150,7 +150,7 @@ protected function provisionResource($resource_type, $formats = [], $authenticat
         'methods' => ['GET', 'POST', 'PATCH', 'DELETE'],
         'formats' => $formats,
         'authentication' => $authentication,
-      ]
+      ],
     ])->save();
     $this->refreshTestStateAfterRestConfigChange();
   }
diff --git a/core/modules/rest/tests/src/Kernel/Entity/ConfigDependenciesTest.php b/core/modules/rest/tests/src/Kernel/Entity/ConfigDependenciesTest.php
index f62ee03f26..01ca8d6b89 100644
--- a/core/modules/rest/tests/src/Kernel/Entity/ConfigDependenciesTest.php
+++ b/core/modules/rest/tests/src/Kernel/Entity/ConfigDependenciesTest.php
@@ -238,7 +238,7 @@ public function providerOnDependencyRemovalForResourceGranularity() {
           'methods' => ['GET', 'POST'],
           'formats' => ['json'],
           'authentication' => ['cookie', 'basic_auth'],
-        ]
+        ],
       ],
       'resource with only HAL+JSON format' => [
         [
@@ -251,7 +251,7 @@ public function providerOnDependencyRemovalForResourceGranularity() {
           ],
         ],
         'hal',
-        FALSE
+        FALSE,
       ],
       'resource with multiple authentication providers' => [
         [
@@ -268,7 +268,7 @@ public function providerOnDependencyRemovalForResourceGranularity() {
           'methods' => ['GET', 'POST'],
           'formats' => ['json', 'hal_json'],
           'authentication' => ['cookie'],
-        ]
+        ],
       ],
       'resource with only basic_auth authentication' => [
         [
diff --git a/core/modules/search/search.module b/core/modules/search/search.module
index c36aa443d1..dc8f19e807 100644
--- a/core/modules/search/search.module
+++ b/core/modules/search/search.module
@@ -782,7 +782,7 @@ function search_excerpt($keys, $text, $langcode = NULL) {
   $text = trim(preg_replace('/' . $preceded_by_boundary . '(?:' . implode('|', $keys) . ')' . $followed_by_boundary . '/iu', '<strong>\0</strong>', ' ' . $text . ' '));
   return [
     '#markup' => $text,
-    '#allowed_tags' => ['strong']
+    '#allowed_tags' => ['strong'],
   ];
 }
 
diff --git a/core/modules/search/src/SearchPageListBuilder.php b/core/modules/search/src/SearchPageListBuilder.php
index c76a999aa9..ea7f61ba94 100644
--- a/core/modules/search/src/SearchPageListBuilder.php
+++ b/core/modules/search/src/SearchPageListBuilder.php
@@ -145,7 +145,7 @@ public function buildRow(EntityInterface $entity) {
       $status = $entity->getPlugin()->indexStatus();
       $row['progress']['#markup'] = $this->t('%num_indexed of %num_total indexed', array(
         '%num_indexed' => $status['total'] - $status['remaining'],
-        '%num_total' => $status['total']
+        '%num_total' => $status['total'],
       ));
     }
     else {
@@ -215,7 +215,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       '#open' => TRUE,
     );
     $form['indexing_settings']['info'] = array(
-      '#markup' => $this->t("<p>Search pages that use an index may use the default index provided by the Search module, or they may use a different indexing mechanism. These settings are for the default index. <em>Changing these settings will cause the default search index to be rebuilt to reflect the new settings. Searching will continue to work, based on the existing index, but new content won't be indexed until all existing content has been re-indexed.</em></p><p><em>The default settings should be appropriate for the majority of sites.</em></p>")
+      '#markup' => $this->t("<p>Search pages that use an index may use the default index provided by the Search module, or they may use a different indexing mechanism. These settings are for the default index. <em>Changing these settings will cause the default search index to be rebuilt to reflect the new settings. Searching will continue to work, based on the existing index, but new content won't be indexed until all existing content has been re-indexed.</em></p><p><em>The default settings should be appropriate for the majority of sites.</em></p>"),
     );
     $form['indexing_settings']['minimum_word_size'] = array(
       '#type' => 'number',
@@ -229,7 +229,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       '#type' => 'checkbox',
       '#title' => $this->t('Simple CJK handling'),
       '#default_value' => $search_settings->get('index.overlap_cjk'),
-      '#description' => $this->t('Whether to apply a simple Chinese/Japanese/Korean tokenizer based on overlapping sequences. Turn this off if you want to use an external preprocessor for this instead. Does not affect other languages.')
+      '#description' => $this->t('Whether to apply a simple Chinese/Japanese/Korean tokenizer based on overlapping sequences. Turn this off if you want to use an external preprocessor for this instead. Does not affect other languages.'),
     );
 
     // Indexing settings:
diff --git a/core/modules/search/src/Tests/SearchPageCacheTagsTest.php b/core/modules/search/src/Tests/SearchPageCacheTagsTest.php
index 667b2135f8..85ffac7439 100644
--- a/core/modules/search/src/Tests/SearchPageCacheTagsTest.php
+++ b/core/modules/search/src/Tests/SearchPageCacheTagsTest.php
@@ -154,7 +154,7 @@ public function testSearchTagsBubbling() {
     // reference field.
     $edit = [
       'title[0][value]' => 'Llama shop',
-      'field_test__ref[0][target_id]' => $this->node->getTitle()
+      'field_test__ref[0][target_id]' => $this->node->getTitle(),
     ];
     $this->drupalPostForm('node/add/' . $type->id(), $edit, t('Save'));
 
diff --git a/core/modules/search/tests/src/Kernel/SearchMatchTest.php b/core/modules/search/tests/src/Kernel/SearchMatchTest.php
index 0a17f7173e..08ccd90963 100644
--- a/core/modules/search/tests/src/Kernel/SearchMatchTest.php
+++ b/core/modules/search/tests/src/Kernel/SearchMatchTest.php
@@ -156,7 +156,7 @@ function _testQueries() {
       '"am minim veniam" -"cillum dolore"' => array(5, 6),
       '"am minim veniam" -"dolore cillum"' => array(5, 6, 7),
       'xxxxx "minim am veniam es" OR dolore' => array(),
-      'xx "minim am veniam es" OR dolore' => array()
+      'xx "minim am veniam es" OR dolore' => array(),
     );
     foreach ($queries as $query => $results) {
       $result = db_select('search_index', 'i')
diff --git a/core/modules/serialization/tests/fixtures/update/drupal-8.rest-serialization_update_8301.php b/core/modules/serialization/tests/fixtures/update/drupal-8.rest-serialization_update_8301.php
index b83448b5f055c729cdea49064fdfb44cb1071520..c595ce8cfc0afb73027673dbd5ea42e43f093c2e 100644
GIT binary patch
delta 13
UcmZ3gwoGk<fH0%ZWC3AO03D(OV*mgE

delta 11
ScmZ3cwp49{fbe8NVNn1V?*lgg

diff --git a/core/modules/shortcut/src/Tests/ShortcutTranslationUITest.php b/core/modules/shortcut/src/Tests/ShortcutTranslationUITest.php
index 4be41c36dc..3216d41c4a 100644
--- a/core/modules/shortcut/src/Tests/ShortcutTranslationUITest.php
+++ b/core/modules/shortcut/src/Tests/ShortcutTranslationUITest.php
@@ -28,7 +28,7 @@ class ShortcutTranslationUITest extends ContentTranslationUITestBase {
     'content_translation',
     'link',
     'shortcut',
-    'toolbar'
+    'toolbar',
   );
 
   /**
diff --git a/core/modules/shortcut/tests/src/Kernel/Plugin/migrate/source/d7/ShortcutTest.php b/core/modules/shortcut/tests/src/Kernel/Plugin/migrate/source/d7/ShortcutTest.php
index 9f8fd3ae66..4435e81b2f 100644
--- a/core/modules/shortcut/tests/src/Kernel/Plugin/migrate/source/d7/ShortcutTest.php
+++ b/core/modules/shortcut/tests/src/Kernel/Plugin/migrate/source/d7/ShortcutTest.php
@@ -52,7 +52,7 @@ public function providerSource() {
         'p8' => '0',
         'p9' => '0',
         'updated' => '0',
-      ]
+      ],
     ];
 
     // The expected results.
diff --git a/core/modules/simpletest/src/Form/SimpletestResultsForm.php b/core/modules/simpletest/src/Form/SimpletestResultsForm.php
index c22c0a7d0c..da33dcfad5 100644
--- a/core/modules/simpletest/src/Form/SimpletestResultsForm.php
+++ b/core/modules/simpletest/src/Form/SimpletestResultsForm.php
@@ -288,7 +288,7 @@ public static function addResultForm(array &$form, array $results) {
       'Filename',
       'Line',
       'Function',
-      array('colspan' => 2, 'data' => 'Status')
+      array('colspan' => 2, 'data' => 'Status'),
     );
     $form['result']['results'] = array();
     foreach ($test_results as $group => $assertions) {
diff --git a/core/modules/simpletest/src/Tests/KernelTestBaseTest.php b/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
index 472fdf9e45..b80b48f065 100644
--- a/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
+++ b/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
@@ -278,7 +278,7 @@ function testEnableModulesFixedList() {
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => 'test_field',
       'entity_type' => 'entity_test',
-      'type' => 'test_field'
+      'type' => 'test_field',
     ));
     $field_storage->save();
     FieldConfig::create([
@@ -354,7 +354,7 @@ public function run(array $methods = array()) {
       $info = Database::getConnectionInfo();
       $connection->query('ATTACH DATABASE :database AS :prefix', [
         ':database' => $info['default']['database'] . '-' . $this->databasePrefix,
-        ':prefix' => $this->databasePrefix
+        ':prefix' => $this->databasePrefix,
       ]);
 
       $result = $connection->query("SELECT name FROM " . $this->databasePrefix . ".sqlite_master WHERE type = :type AND name LIKE :table_name AND name NOT LIKE :pattern", array(
diff --git a/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php b/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php
index 0b21d546db..5cd914d1e7 100644
--- a/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php
+++ b/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php
@@ -30,7 +30,7 @@ protected function setUp() {
   protected function checkRequirements() {
     if ($this->isInChildSite()) {
       return array(
-        'Test is not allowed to run.'
+        'Test is not allowed to run.',
       );
     }
     return parent::checkRequirements();
diff --git a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
index 3b2061ec4b..bea5498bca 100644
--- a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
+++ b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
@@ -59,7 +59,7 @@ public function testInternalBrowser() {
     $this->maximumRedirects = 1;
     $edit = array(
       'name' => $user->getUsername(),
-      'pass' => $user->pass_raw
+      'pass' => $user->pass_raw,
     );
     $this->drupalPostForm('user/login', $edit, t('Log in'), array(
       'query' => array('destination' => 'user/logout'),
diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php
index 6ff76aee61..07097f2b42 100644
--- a/core/modules/simpletest/src/WebTestBase.php
+++ b/core/modules/simpletest/src/WebTestBase.php
@@ -336,7 +336,7 @@ protected function drupalLogin(AccountInterface $account) {
 
     $edit = array(
       'name' => $account->getUsername(),
-      'pass' => $account->pass_raw
+      'pass' => $account->pass_raw,
     );
     $this->drupalPostForm('user/login', $edit, t('Log in'));
 
@@ -788,7 +788,7 @@ protected function curlExec($curl_options, $redirect = FALSE) {
       '@method' => !empty($curl_options[CURLOPT_NOBODY]) ? 'HEAD' : (empty($curl_options[CURLOPT_POSTFIELDS]) ? 'GET' : 'POST'),
       '@url' => isset($original_url) ? $original_url : $url,
       '@status' => $status,
-      '@length' => format_size(strlen($this->getRawContent()))
+      '@length' => format_size(strlen($this->getRawContent())),
     );
     $message = SafeMarkup::format('@method @url returned @status (@length).', $message_vars);
     $this->assertTrue($this->getRawContent() !== FALSE, $message, 'Browser');
diff --git a/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php b/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php
index 8bd84b2b78..d1cf163f2e 100644
--- a/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php
+++ b/core/modules/statistics/src/Plugin/Block/StatisticsPopularBlock.php
@@ -95,7 +95,7 @@ public function defaultConfiguration() {
     return array(
       'top_day_num' => 0,
       'top_all_num' => 0,
-      'top_last_num' => 0
+      'top_last_num' => 0,
     );
   }
 
diff --git a/core/modules/statistics/tests/src/Functional/StatisticsAttachedTest.php b/core/modules/statistics/tests/src/Functional/StatisticsAttachedTest.php
index 9ea6e942aa..0f13511188 100644
--- a/core/modules/statistics/tests/src/Functional/StatisticsAttachedTest.php
+++ b/core/modules/statistics/tests/src/Functional/StatisticsAttachedTest.php
@@ -46,7 +46,7 @@ public function testAttached() {
     $node = Node::create([
       'type' => 'page',
       'title' => 'Page node',
-      'body' => 'body text'
+      'body' => 'body text',
     ]);
     $node->save();
     $this->drupalGet('node/' . $node->id());
diff --git a/core/modules/system/src/Controller/DbUpdateController.php b/core/modules/system/src/Controller/DbUpdateController.php
index fdedcc652e..29afb63fc8 100644
--- a/core/modules/system/src/Controller/DbUpdateController.php
+++ b/core/modules/system/src/Controller/DbUpdateController.php
@@ -524,7 +524,7 @@ public function requirements($severity, array $requirements, Request $request) {
     $build['status_report'] = array(
       '#type' => 'status_report',
       '#requirements' => $requirements,
-      '#suffix' => $this->t('Check the messages and <a href=":url">try again</a>.', array(':url' => $try_again_url))
+      '#suffix' => $this->t('Check the messages and <a href=":url">try again</a>.', array(':url' => $try_again_url)),
     );
 
     $build['#title'] = $this->t('Requirements problem');
diff --git a/core/modules/system/src/Form/ModulesListConfirmForm.php b/core/modules/system/src/Form/ModulesListConfirmForm.php
index 88452e06bf..e6f4e3dabf 100644
--- a/core/modules/system/src/Form/ModulesListConfirmForm.php
+++ b/core/modules/system/src/Form/ModulesListConfirmForm.php
@@ -179,7 +179,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
             'Unable to install @extension, %config_names already exist in active configuration.',
             array(
               '%config_names' => implode(', ', $config_objects),
-              '@extension' => $this->modules['install'][$e->getExtension()]
+              '@extension' => $this->modules['install'][$e->getExtension()],
             )),
           'error'
         );
diff --git a/core/modules/system/src/Form/ModulesListForm.php b/core/modules/system/src/Form/ModulesListForm.php
index d98b8a1251..d3e18d697f 100644
--- a/core/modules/system/src/Form/ModulesListForm.php
+++ b/core/modules/system/src/Form/ModulesListForm.php
@@ -461,7 +461,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
             'Unable to install @extension, %config_names already exist in active configuration.',
             array(
               '%config_names' => implode(', ', $config_objects),
-              '@extension' => $modules['install'][$e->getExtension()]
+              '@extension' => $modules['install'][$e->getExtension()],
             )),
           'error'
         );
diff --git a/core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php b/core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php
index 858364fe40..2aaba83006 100644
--- a/core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php
+++ b/core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php
@@ -157,7 +157,7 @@ public function buildForm(array $form, FormStateInterface $form_state, $entity_t
             '@entity_type_singular' => $entity_type->getSingularLabel(),
             '@entity_type_plural' => $entity_type->getPluralLabel(),
           ]
-        )
+        ),
       ];
     }
 
diff --git a/core/modules/system/src/Form/RegionalForm.php b/core/modules/system/src/Form/RegionalForm.php
index 9472a4cb72..aa07cb772b 100644
--- a/core/modules/system/src/Form/RegionalForm.php
+++ b/core/modules/system/src/Form/RegionalForm.php
@@ -123,7 +123,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       '#type' => 'checkbox',
       '#title' => t('Remind users at login if their time zone is not set'),
       '#default_value' => $system_date->get('timezone.user.warn'),
-      '#description' => t('Only applied if users may set their own time zone.')
+      '#description' => t('Only applied if users may set their own time zone.'),
     );
 
     $form['timezone']['configurable_timezones_wrapper']['user_default_timezone'] = array(
@@ -135,7 +135,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
         DRUPAL_USER_TIMEZONE_EMPTY   => t('Empty time zone'),
         DRUPAL_USER_TIMEZONE_SELECT  => t('Users may set their own time zone at registration'),
       ),
-      '#description' => t('Only applied if users may set their own time zone.')
+      '#description' => t('Only applied if users may set their own time zone.'),
     );
 
     return parent::buildForm($form, $form_state);
diff --git a/core/modules/system/src/Form/RssFeedsForm.php b/core/modules/system/src/Form/RssFeedsForm.php
index 79aa69ba4b..beb5d06637 100644
--- a/core/modules/system/src/Form/RssFeedsForm.php
+++ b/core/modules/system/src/Form/RssFeedsForm.php
@@ -33,7 +33,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       '#type' => 'textarea',
       '#title' => t('Feed description'),
       '#default_value' => $rss_config->get('channel.description'),
-      '#description' => t('Description of your site, included in each feed.')
+      '#description' => t('Description of your site, included in each feed.'),
     );
     $options = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30);
     $form['feed_default_items'] = array(
@@ -41,7 +41,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       '#title' => t('Number of items in each feed'),
       '#default_value' => $rss_config->get('items.limit'),
       '#options' => array_combine($options, $options),
-      '#description' => t('Default number of items to include in each feed.')
+      '#description' => t('Default number of items to include in each feed.'),
     );
     $form['feed_view_mode'] = array(
       '#type' => 'select',
@@ -52,7 +52,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
         'teaser' => t('Titles plus teaser'),
         'fulltext' => t('Full text'),
       ),
-      '#description' => t('Global setting for the default display of content items in each feed.')
+      '#description' => t('Global setting for the default display of content items in each feed.'),
     );
 
     return parent::buildForm($form, $form_state);
diff --git a/core/modules/system/src/Form/ThemeSettingsForm.php b/core/modules/system/src/Form/ThemeSettingsForm.php
index 37b5ea1364..f7f7f9ca57 100644
--- a/core/modules/system/src/Form/ThemeSettingsForm.php
+++ b/core/modules/system/src/Form/ThemeSettingsForm.php
@@ -134,11 +134,11 @@ public function buildForm(array $form, FormStateInterface $form_state, $theme =
 
     $form['var'] = array(
       '#type' => 'hidden',
-      '#value' => $var
+      '#value' => $var,
     );
     $form['config_key'] = array(
       '#type' => 'hidden',
-      '#value' => $config_key
+      '#value' => $config_key,
     );
 
     // Toggle settings
@@ -212,7 +212,7 @@ public function buildForm(array $form, FormStateInterface $form_state, $theme =
         '#type' => 'file',
         '#title' => t('Upload logo image'),
         '#maxlength' => 40,
-        '#description' => t("If you don't have direct file access to the server, use this field to upload your logo.")
+        '#description' => t("If you don't have direct file access to the server, use this field to upload your logo."),
       );
     }
 
@@ -252,7 +252,7 @@ public function buildForm(array $form, FormStateInterface $form_state, $theme =
       $form['favicon']['settings']['favicon_upload'] = array(
         '#type' => 'file',
         '#title' => t('Upload favicon image'),
-        '#description' => t("If you don't have direct file access to the server, use this field to upload your shortcut icon.")
+        '#description' => t("If you don't have direct file access to the server, use this field to upload your shortcut icon."),
       );
     }
 
diff --git a/core/modules/system/src/Plugin/views/field/BulkForm.php b/core/modules/system/src/Plugin/views/field/BulkForm.php
index 8e38c2b732..9d8cb2aca4 100644
--- a/core/modules/system/src/Plugin/views/field/BulkForm.php
+++ b/core/modules/system/src/Plugin/views/field/BulkForm.php
@@ -361,7 +361,7 @@ public function viewsFormSubmit(&$form, FormStateInterface $form_state) {
           $this->drupalSetMessage($this->t('No access to execute %action on the @entity_type_label %entity_label.', [
             '%action' => $action->label(),
             '@entity_type_label' => $entity->getEntityType()->getLabel(),
-            '%entity_label' => $entity->label()
+            '%entity_label' => $entity->label(),
           ]), 'error');
           continue;
         }
diff --git a/core/modules/system/src/Tests/Ajax/DialogTest.php b/core/modules/system/src/Tests/Ajax/DialogTest.php
index 254f01d33a..2503a8d5a7 100644
--- a/core/modules/system/src/Tests/Ajax/DialogTest.php
+++ b/core/modules/system/src/Tests/Ajax/DialogTest.php
@@ -114,7 +114,7 @@ public function testDialog() {
       ), array(), 'ajax-test/dialog-contents', array('query' => array(MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_dialog')), array(), NULL, array(
       'submit' => array(
         'dialogOptions[target]' => 'ajax-test-dialog-wrapper-1',
-      )
+      ),
     ));
     $this->assertEqual($normal_expected_response, $ajax_result[3], 'Normal dialog JSON response matches.');
 
@@ -126,7 +126,7 @@ public function testDialog() {
         'textfield' => 'test',
       ), array(), 'ajax-test/dialog-contents', array('query' => array(MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_dialog')), array(), NULL, array(
       // Don't send a target.
-      'submit' => array()
+      'submit' => array(),
     ));
     // Make sure the selector ID starts with the right string.
     $this->assert(strpos($ajax_result[3]['selector'], $no_target_expected_response['selector']) === 0, 'Selector starts with right string.');
diff --git a/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php b/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php
index 1be7e94826..e560efed2c 100644
--- a/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php
+++ b/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php
@@ -74,7 +74,7 @@ protected function error($message = '', $group = 'Other', array $caller = NULL)
       $this->collectedErrors[] = array(
         'message' => $message,
         'group' => $group,
-        'caller' => $caller
+        'caller' => $caller,
       );
     }
   }
diff --git a/core/modules/system/src/Tests/Form/LanguageSelectElementTest.php b/core/modules/system/src/Tests/Form/LanguageSelectElementTest.php
index 7b3d73cb0f..53d55f6fb0 100644
--- a/core/modules/system/src/Tests/Form/LanguageSelectElementTest.php
+++ b/core/modules/system/src/Tests/Form/LanguageSelectElementTest.php
@@ -45,7 +45,7 @@ function testLanguageSelectElementOptions() {
         'edit-languages-all' => LanguageInterface::STATE_ALL,
         'edit-languages-configurable' => LanguageInterface::STATE_CONFIGURABLE,
         'edit-languages-locked' => LanguageInterface::STATE_LOCKED,
-        'edit-languages-config-and-locked' => LanguageInterface::STATE_CONFIGURABLE | LanguageInterface::STATE_LOCKED
+        'edit-languages-config-and-locked' => LanguageInterface::STATE_CONFIGURABLE | LanguageInterface::STATE_LOCKED,
     );
     foreach ($ids as $id => $flags) {
       $this->assertField($id, format_string('The @id field was found on the page.', array('@id' => $id)));
diff --git a/core/modules/system/src/Tests/Form/ProgrammaticTest.php b/core/modules/system/src/Tests/Form/ProgrammaticTest.php
index 5fbefb5e58..d101404a3c 100644
--- a/core/modules/system/src/Tests/Form/ProgrammaticTest.php
+++ b/core/modules/system/src/Tests/Form/ProgrammaticTest.php
@@ -95,7 +95,7 @@ private function submitForm($values, $valid_input) {
   public function testProgrammaticAccessBypass() {
     $form_state = (new FormState())->setValues([
       'textfield' => 'dummy value',
-      'field_restricted' => 'dummy value'
+      'field_restricted' => 'dummy value',
     ]);
 
     // Programmatically submit the form with a value for the restricted field.
diff --git a/core/modules/system/src/Tests/Form/ValidationTest.php b/core/modules/system/src/Tests/Form/ValidationTest.php
index 35b340b5e4..309d2d13d0 100644
--- a/core/modules/system/src/Tests/Form/ValidationTest.php
+++ b/core/modules/system/src/Tests/Form/ValidationTest.php
@@ -61,7 +61,7 @@ function testValidate() {
     $this->drupalGet('form-test/validate');
     $edit = array(
       'name' => 'validate',
-      'form_token' => 'invalid token'
+      'form_token' => 'invalid token',
     );
     $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertNoFieldByName('name', '#value changed by #validate', 'Form element #value was not altered.');
diff --git a/core/modules/system/src/Tests/Path/UrlAliasFixtures.php b/core/modules/system/src/Tests/Path/UrlAliasFixtures.php
index a527fc5fc5..21a8f98f72 100644
--- a/core/modules/system/src/Tests/Path/UrlAliasFixtures.php
+++ b/core/modules/system/src/Tests/Path/UrlAliasFixtures.php
@@ -51,23 +51,23 @@ public function sampleUrlAliases() {
       array(
         'source' => '/node/1',
         'alias' => '/alias_for_node_1_en',
-        'langcode' => 'en'
+        'langcode' => 'en',
       ),
       array(
         'source' => '/node/2',
         'alias' => '/alias_for_node_2_en',
-        'langcode' => 'en'
+        'langcode' => 'en',
       ),
       array(
         'source' => '/node/1',
         'alias' => '/alias_for_node_1_fr',
-        'langcode' => 'fr'
+        'langcode' => 'fr',
       ),
       array(
         'source' => '/node/1',
         'alias' => '/alias_for_node_1_und',
-        'langcode' => 'und'
-      )
+        'langcode' => 'und',
+      ),
     );
   }
 
diff --git a/core/modules/system/src/Tests/Session/SessionTest.php b/core/modules/system/src/Tests/Session/SessionTest.php
index 139fba517f..b2ba842d82 100644
--- a/core/modules/system/src/Tests/Session/SessionTest.php
+++ b/core/modules/system/src/Tests/Session/SessionTest.php
@@ -57,7 +57,7 @@ function testSessionSaveRegenerate() {
     // session_test_user_login() which breaks a normal assertion.
     $edit = array(
       'name' => $user->getUsername(),
-      'pass' => $user->pass_raw
+      'pass' => $user->pass_raw,
     );
     $this->drupalPostForm('user/login', $edit, t('Log in'));
     $this->drupalGet('user');
diff --git a/core/modules/system/src/Tests/System/HtaccessTest.php b/core/modules/system/src/Tests/System/HtaccessTest.php
index ad6e09ee59..15bded4189 100644
--- a/core/modules/system/src/Tests/System/HtaccessTest.php
+++ b/core/modules/system/src/Tests/System/HtaccessTest.php
@@ -75,7 +75,7 @@ protected function getProtectedFiles() {
 
     // Test extensions that should be permitted.
     $file_exts_to_allow = [
-      'php-info.txt'
+      'php-info.txt',
     ];
 
     foreach ($file_exts_to_allow as $file_ext) {
@@ -108,7 +108,7 @@ public function testFileAccess() {
     $node = $this->drupalCreateNode([
       'title' => 'This is a node',
       'type' => $type->id(),
-      'path' => '/test.php'
+      'path' => '/test.php',
     ]);
     $node->save();
     $this->drupalGet('test.php');
diff --git a/core/modules/system/src/Tests/System/PageTitleTest.php b/core/modules/system/src/Tests/System/PageTitleTest.php
index 848eacc8c7..1766a6fa49 100644
--- a/core/modules/system/src/Tests/System/PageTitleTest.php
+++ b/core/modules/system/src/Tests/System/PageTitleTest.php
@@ -114,7 +114,7 @@ public function testRoutingTitle() {
 
     // Set some custom translated strings.
     $this->addCustomTranslations('en', array('' => array(
-      'Static title' => 'Static title translated'
+      'Static title' => 'Static title translated',
     )));
     $this->writeCustomTranslations();
 
diff --git a/core/modules/system/src/Tests/Theme/FunctionsTest.php b/core/modules/system/src/Tests/Theme/FunctionsTest.php
index fa5a2ac48f..48b92dc729 100644
--- a/core/modules/system/src/Tests/Theme/FunctionsTest.php
+++ b/core/modules/system/src/Tests/Theme/FunctionsTest.php
@@ -209,7 +209,7 @@ function testLinks() {
         'url' => Url::fromRoute('router_test.1'),
         'query' => array(
           'key' => 'value',
-        )
+        ),
       ),
     );
 
@@ -330,7 +330,7 @@ function testIndexedKeyedLinks() {
         'url' => Url::fromRoute('router_test.1'),
         'query' => array(
           'key' => 'value',
-        )
+        ),
       ),
     );
 
diff --git a/core/modules/system/src/Tests/Theme/TwigTransTest.php b/core/modules/system/src/Tests/Theme/TwigTransTest.php
index ef6fe05074..fabccf4306 100644
--- a/core/modules/system/src/Tests/Theme/TwigTransTest.php
+++ b/core/modules/system/src/Tests/Theme/TwigTransTest.php
@@ -21,7 +21,7 @@ class TwigTransTest extends WebTestBase {
     'theme_test',
     'twig_theme_test',
     'locale',
-    'language'
+    'language',
   );
 
   /**
@@ -56,7 +56,7 @@ protected function setUp() {
       'administer languages',
       'access administration pages',
       'administer site configuration',
-      'translate interface'
+      'translate interface',
     ));
     $this->drupalLogin($this->adminUser);
 
diff --git a/core/modules/system/src/Tests/Update/RecalculatedDependencyTest.php b/core/modules/system/src/Tests/Update/RecalculatedDependencyTest.php
index 56a010c020..5ceb422b4d 100644
--- a/core/modules/system/src/Tests/Update/RecalculatedDependencyTest.php
+++ b/core/modules/system/src/Tests/Update/RecalculatedDependencyTest.php
@@ -56,7 +56,7 @@ public function testUpdate() {
     $this->assertEqual([
       'field.storage.node.field_tags',
       'node.type.article',
-      'taxonomy.vocabulary.tags'
+      'taxonomy.vocabulary.tags',
     ], $data['dependencies']['config']);
 
     $data = \Drupal::config('field.field.user.user.user_picture')->get();
diff --git a/core/modules/system/system.api.php b/core/modules/system/system.api.php
index 8534ebf708..d4348e8f9d 100644
--- a/core/modules/system/system.api.php
+++ b/core/modules/system/system.api.php
@@ -27,7 +27,7 @@ function hook_system_themes_page_alter(&$theme_groups) {
       $theme->operations[] = array(
         'title' => t('Foo'),
         'url' => Url::fromRoute('system.themes_page'),
-        'query' => array('theme' => $theme->getName())
+        'query' => array('theme' => $theme->getName()),
       );
     }
   }
diff --git a/core/modules/system/system.install b/core/modules/system/system.install
index d022f6aa0e..4469dcd274 100644
--- a/core/modules/system/system.install
+++ b/core/modules/system/system.install
@@ -45,10 +45,10 @@ function system_requirements($phase) {
         'value' => t('%profile_name (%profile-%version)', array(
           '%profile_name' => $info['name'],
           '%profile' => $profile,
-          '%version' => $info['version']
+          '%version' => $info['version'],
         )),
         'severity' => REQUIREMENT_INFO,
-        'weight' => -9
+        'weight' => -9,
       );
     }
 
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php b/core/modules/system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php
index 7f23f90266..a0028f6557 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php
@@ -47,7 +47,7 @@
 
 $connection->update('key_value')
   ->fields([
-    'value' => serialize(array_merge($existing_blocks, ['block.block.testfor2354889', 'block.block.secondtestfor2354889', 'block.block.thirdtestfor2354889']))
+    'value' => serialize(array_merge($existing_blocks, ['block.block.testfor2354889', 'block.block.secondtestfor2354889', 'block.block.thirdtestfor2354889'])),
   ])
   ->condition('collection', 'config.entity.key_store.block')
   ->condition('name', 'theme:bartik')
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.local-actions-tasks-into-blocks-507488.php b/core/modules/system/tests/fixtures/update/drupal-8.local-actions-tasks-into-blocks-507488.php
index 6cf44b1743..0fa97e44f6 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.local-actions-tasks-into-blocks-507488.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.local-actions-tasks-into-blocks-507488.php
@@ -40,7 +40,7 @@
 
 $connection->update('key_value')
   ->fields([
-    'value' => serialize(array_merge($existing_blocks, ['block.block.seven_local_actions']))
+    'value' => serialize(array_merge($existing_blocks, ['block.block.seven_local_actions'])),
   ])
   ->condition('collection', 'config.entity.key_store.block')
   ->condition('name', 'theme:seven')
@@ -55,7 +55,7 @@
 $extensions = unserialize($extensions);
 $connection->update('config')
   ->fields([
-    'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]]))
+    'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]])),
   ])
   ->condition('name', 'core.extension')
   ->execute();
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.page-title-into-block-2476947.php b/core/modules/system/tests/fixtures/update/drupal-8.page-title-into-block-2476947.php
index 766e9a6037..b51dbe8a0a 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.page-title-into-block-2476947.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.page-title-into-block-2476947.php
@@ -40,7 +40,7 @@
 
 $connection->update('key_value')
   ->fields([
-    'value' => serialize(array_merge($existing_blocks, ['block.block.bartik_page_title']))
+    'value' => serialize(array_merge($existing_blocks, ['block.block.bartik_page_title'])),
   ])
   ->condition('collection', 'config.entity.key_store.block')
   ->condition('name', 'theme:bartik')
@@ -55,7 +55,7 @@
 $extensions = unserialize($extensions);
 $connection->update('config')
   ->fields([
-    'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]]))
+    'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]])),
   ])
   ->condition('name', 'core.extension')
   ->execute();
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.seven-secondary-local-tasks-block-2569529.php b/core/modules/system/tests/fixtures/update/drupal-8.seven-secondary-local-tasks-block-2569529.php
index 63582dc389..97c1b7bd99 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.seven-secondary-local-tasks-block-2569529.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.seven-secondary-local-tasks-block-2569529.php
@@ -40,7 +40,7 @@
 
 $connection->update('key_value')
   ->fields([
-    'value' => serialize(array_merge($existing_blocks, ['block.block.seven_secondary_local_tasks']))
+    'value' => serialize(array_merge($existing_blocks, ['block.block.seven_secondary_local_tasks'])),
   ])
   ->condition('collection', 'config.entity.key_store.block')
   ->condition('name', 'theme:seven')
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.site-branding-into-block-2005546.php b/core/modules/system/tests/fixtures/update/drupal-8.site-branding-into-block-2005546.php
index cd593723c9..050dd38271 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.site-branding-into-block-2005546.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.site-branding-into-block-2005546.php
@@ -40,7 +40,7 @@
 
 $connection->update('key_value')
   ->fields([
-    'value' => serialize(array_merge($existing_blocks, ['block.block.bartik_branding']))
+    'value' => serialize(array_merge($existing_blocks, ['block.block.bartik_branding'])),
   ])
   ->condition('collection', 'config.entity.key_store.block')
   ->condition('name', 'theme:bartik')
@@ -55,7 +55,7 @@
 $extensions = unserialize($extensions);
 $connection->update('config')
   ->fields([
-    'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]]))
+    'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]])),
   ])
   ->condition('name', 'core.extension')
   ->execute();
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.stable-base-theme-2575421.php b/core/modules/system/tests/fixtures/update/drupal-8.stable-base-theme-2575421.php
index 7b658b4178..537ecf1bac 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.stable-base-theme-2575421.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.stable-base-theme-2575421.php
@@ -19,7 +19,7 @@
 $extensions = unserialize($extensions);
 $connection->update('config')
   ->fields([
-    'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_stable' => 0]]))
+    'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_stable' => 0]])),
   ])
   ->condition('name', 'core.extension')
   ->execute();
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.update-test-block-disabled-2513534.php b/core/modules/system/tests/fixtures/update/drupal-8.update-test-block-disabled-2513534.php
index fc8e1c5612..cf6a60800f 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.update-test-block-disabled-2513534.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.update-test-block-disabled-2513534.php
@@ -43,7 +43,7 @@
 
 $connection->update('key_value')
   ->fields([
-    'value' => serialize(array_merge($existing_blocks, ['block.block.testfor2513534', 'block.block.secondtestfor2513534']))
+    'value' => serialize(array_merge($existing_blocks, ['block.block.testfor2513534', 'block.block.secondtestfor2513534'])),
   ])
   ->condition('collection', 'config.entity.key_store.block')
   ->condition('name', 'theme:bartik')
diff --git a/core/modules/system/tests/modules/ajax_test/src/Controller/AjaxTestController.php b/core/modules/system/tests/modules/ajax_test/src/Controller/AjaxTestController.php
index 63cc0abf16..a0ce430e84 100644
--- a/core/modules/system/tests/modules/ajax_test/src/Controller/AjaxTestController.php
+++ b/core/modules/system/tests/modules/ajax_test/src/Controller/AjaxTestController.php
@@ -139,7 +139,7 @@ public function dialog() {
             'data-dialog-type' => 'modal',
             'data-dialog-options' => json_encode(array(
               'width' => 400,
-            ))
+            )),
           ),
         ),
         'link3' => array(
@@ -151,7 +151,7 @@ public function dialog() {
             'data-dialog-options' => json_encode(array(
               'target' => 'ajax-test-dialog-wrapper-1',
               'width' => 800,
-            ))
+            )),
           ),
         ),
         'link4' => array(
@@ -179,7 +179,7 @@ public function dialog() {
             'data-dialog-options' => json_encode(array(
               'width' => 800,
               'height' => 500,
-            ))
+            )),
           ),
         ),
         'link7' => array(
@@ -190,7 +190,7 @@ public function dialog() {
             'data-dialog-type' => 'dialog',
             'data-dialog-options' => json_encode(array(
               'width' => 800,
-            ))
+            )),
           ),
         ),
         'link8' => [
diff --git a/core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php b/core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php
index a97ed9525b..a6085e2011 100644
--- a/core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php
+++ b/core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php
@@ -29,7 +29,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
     // to have a dummy field we can set in WebTestBase::drupalPostForm() else it won't
     // submit anything.
     $form['textfield'] = array(
-      '#type' => 'hidden'
+      '#type' => 'hidden',
     );
     $form['button1'] = array(
       '#type' => 'submit',
diff --git a/core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php b/core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php
index 811c7fc356..f074489453 100644
--- a/core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php
+++ b/core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php
@@ -19,7 +19,7 @@ public function testRedirect() {
     return array(
       'success' => array(
         '#markup' => 'Redirection successful.',
-      )
+      ),
     );
   }
 
@@ -103,7 +103,7 @@ function testProgrammatic($value = 1) {
     return array(
       'success' => array(
         '#markup' => 'Got out of a programmatic batched form.',
-      )
+      ),
     );
   }
 
diff --git a/core/modules/system/tests/modules/database_test/database_test.install b/core/modules/system/tests/modules/database_test/database_test.install
index f6b4f68d82..791395c8e1 100644
--- a/core/modules/system/tests/modules/database_test/database_test.install
+++ b/core/modules/system/tests/modules/database_test/database_test.install
@@ -47,7 +47,7 @@ function database_test_schema() {
     ),
     'primary key' => array('id'),
     'unique keys' => array(
-      'name' => array('name')
+      'name' => array('name'),
     ),
     'indexes' => array(
       'ages' => array('age'),
@@ -148,7 +148,7 @@ function database_test_schema() {
       ),
       'blob2' => array(
         'description' => 'A second BLOB field.',
-        'type' => 'blob'
+        'type' => 'blob',
       ),
     ),
     'primary key' => array('id'),
@@ -211,7 +211,7 @@ function database_test_schema() {
     ),
     'primary key' => array('id'),
     'unique keys' => array(
-      'name' => array('name')
+      'name' => array('name'),
     ),
     'indexes' => array(
       'ages' => array('age'),
@@ -241,7 +241,7 @@ function database_test_schema() {
     ),
     'primary key' => array('id'),
     'unique keys' => array(
-      'name' => array('name')
+      'name' => array('name'),
     ),
   );
 
diff --git a/core/modules/system/tests/modules/entity_test/entity_test.module b/core/modules/system/tests/modules/entity_test/entity_test.module
index cf1a63ccfe..2d1779a9ca 100644
--- a/core/modules/system/tests/modules/entity_test/entity_test.module
+++ b/core/modules/system/tests/modules/entity_test/entity_test.module
@@ -283,7 +283,7 @@ function entity_test_entity_extra_field_info() {
         'description' => t('An extra field on the display side, hidden by default.'),
         'visible' => FALSE,
       ),
-    )
+    ),
   );
 
   return $extra;
diff --git a/core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldWidget/ShapeOnlyColorEditableWidget.php b/core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldWidget/ShapeOnlyColorEditableWidget.php
index ae5dd3039d..6283bc3cea 100644
--- a/core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldWidget/ShapeOnlyColorEditableWidget.php
+++ b/core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldWidget/ShapeOnlyColorEditableWidget.php
@@ -25,7 +25,7 @@ class ShapeOnlyColorEditableWidget extends WidgetBase {
   public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
     $element['shape'] = [
       '#type' => 'hidden',
-      '#value' => $items[$delta]->shape
+      '#value' => $items[$delta]->shape,
     ];
 
     $element['color'] = [
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 03ae3664de..f29ca00092 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
@@ -88,7 +88,7 @@ public function triggerRendererException() {
       '#post_render' => [
         function () {
           throw new \Exception('This is an exception that occurs during rendering');
-        }
+        },
       ],
     ];
   }
diff --git a/core/modules/system/tests/modules/form_test/src/Form/FormTestMachineNameForm.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestMachineNameForm.php
index 542edc8a76..ac9b1eb03c 100644
--- a/core/modules/system/tests/modules/form_test/src/Form/FormTestMachineNameForm.php
+++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestMachineNameForm.php
@@ -31,7 +31,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       '#title' => 'Machine name 1',
       '#description' => 'A machine name.',
       '#machine_name' => [
-        'source' => ['machine_name_1_label']
+        'source' => ['machine_name_1_label'],
       ],
     ];
     $form['machine_name_2_label'] = [
@@ -43,7 +43,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
       '#title' => 'Machine name 2',
       '#description' => 'Another machine name.',
       '#machine_name' => [
-        'source' => ['machine_name_2_label']
+        'source' => ['machine_name_2_label'],
       ],
     ];
     $form['submit'] = [
diff --git a/core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php b/core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php
index 087378b89a..b37b77699e 100644
--- a/core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php
+++ b/core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php
@@ -133,7 +133,7 @@ public static function addLink(array $form, FormStateInterface $form_state) {
     $form['added_link'] = [
       '#title' => 'Added link',
       '#type' => 'link',
-      '#url' => Url::fromRoute('js_webassert_test.js_webassert_test_form')
+      '#url' => Url::fromRoute('js_webassert_test.js_webassert_test_form'),
     ];
     return $form;
   }
diff --git a/core/modules/system/tests/modules/menu_test/src/TestControllers.php b/core/modules/system/tests/modules/menu_test/src/TestControllers.php
index 9ed7851b2a..f7b6befdfd 100644
--- a/core/modules/system/tests/modules/menu_test/src/TestControllers.php
+++ b/core/modules/system/tests/modules/menu_test/src/TestControllers.php
@@ -77,9 +77,9 @@ public function testContextual() {
         '#contextual_links' => [
           'menu_test_menu' => [
             'route_parameters' => ['bar' => 1],
-          ]
-        ]
-      ]
+          ],
+        ],
+      ],
     ];
   }
 
diff --git a/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php b/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
index 39144c67fc..e4a3b924c9 100644
--- a/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
+++ b/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
@@ -69,7 +69,7 @@ public function queryParameters() {
       ),
       '#pre_render' => [
         'Drupal\pager_test\Controller\PagerTestController::showPagerCacheContext',
-      ]
+      ],
     );
 
     return $build;
diff --git a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlockDeriver.php b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlockDeriver.php
index 413eb13355..ff423f6bde 100644
--- a/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlockDeriver.php
+++ b/core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockMenuBlockDeriver.php
@@ -45,7 +45,7 @@ public function getDerivativeDefinitions($base_plugin_definition) {
         // Instead of the derivative label, the specific label will be used.
         'label' => t('Derivative label'),
         // This setting will be merged in.
-         'setting' => 'default'
+         'setting' => 'default',
       ) + $base_plugin_definition,
     );
 
diff --git a/core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php b/core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php
index 44e42d950e..0f12463763 100644
--- a/core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php
+++ b/core/modules/system/tests/modules/twig_extension_test/src/TwigExtensionTestController.php
@@ -20,8 +20,8 @@ public function testFilterRender() {
       '#safe_join_items' => [
         '<em>will be escaped</em>',
         $this->t('<em>will be markup</em>'),
-        ['#markup' => '<strong>will be rendered</strong>']
-      ]
+        ['#markup' => '<strong>will be rendered</strong>'],
+      ],
     );
   }
 
diff --git a/core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php b/core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php
index 7408ce8f47..50475d05b7 100644
--- a/core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php
+++ b/core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php
@@ -100,7 +100,7 @@ public function registryLoaderRender() {
   public function renderable() {
     return [
       '#theme' => 'twig_theme_test_renderable',
-      '#renderable' => new ExampleRenderable()
+      '#renderable' => new ExampleRenderable(),
     ];
   }
 
diff --git a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
index 8ac27b0fc0..8ef817812b 100644
--- a/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
+++ b/core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
@@ -33,7 +33,7 @@ public function testSystemTimezone() {
     $options = array(
       'query' => array(
         'date' => 'Tue+Sep+17+2013+21%3A35%3A31+GMT%2B0100+(BST)#',
-      )
+      ),
     );
     // Query the AJAX Timezone Callback with a long-format date.
     $response = $this->drupalGet('system/timezone/BST/3600/1', $options);
diff --git a/core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php b/core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php
index 985e21a594..99ed6318af 100644
--- a/core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php
+++ b/core/modules/system/tests/src/Functional/FileTransfer/FileTransferTest.php
@@ -28,11 +28,11 @@ function _getFakeModuleFiles() {
       'fake.module',
       'fake.info.yml',
       'theme' => array(
-        'fake.html.twig'
+        'fake.html.twig',
       ),
       'inc' => array(
-        'fake.inc'
-      )
+        'fake.inc',
+      ),
     );
     return $files;
   }
diff --git a/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php b/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php
index 536fda9c8f..48f74e509a 100644
--- a/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php
+++ b/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php
@@ -67,9 +67,9 @@ public function testHtml5ShivIsNotLoaded() {
         "query" =>
           array(
             'ajax_page_state' => array(
-              'libraries' => 'core/html5shiv'
-            )
-          )
+              'libraries' => 'core/html5shiv',
+            ),
+          ),
       )
     );
     $this->assertNoRaw(
diff --git a/core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php b/core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php
index ca1c5afff4..07f1125331 100644
--- a/core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php
+++ b/core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php
@@ -162,13 +162,13 @@ public function testSystemMenuBlockConfigDependencies() {
     $dependencies = $block->calculateDependencies()->getDependencies();
     $expected = array(
       'config' => array(
-        'system.menu.' . $this->menu->id()
+        'system.menu.' . $this->menu->id(),
       ),
       'module' => array(
-        'system'
+        'system',
       ),
       'theme' => array(
-        'stark'
+        'stark',
       ),
     );
     $this->assertIdentical($expected, $dependencies);
@@ -249,7 +249,7 @@ public function testConfigLevelDepth() {
       'test.example2' => [
         'test.example3' => [
           'test.example4' => [],
-        ]
+        ],
       ],
       'test.example5' => [
         'test.example7' => [],
diff --git a/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php b/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
index 1aa2f667ab..696ca53eee 100644
--- a/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
+++ b/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
@@ -34,7 +34,7 @@ public function testSpecifyDatabaseKey() {
     Database::addConnectionInfo('magic_db', 'default', Database::getConnectionInfo('default')['default']);
 
     $command_tester->execute([
-      '--database' => 'magic_db'
+      '--database' => 'magic_db',
     ]);
     $this->assertEquals('magic_db', $command->getDatabaseConnection($command_tester->getInput())->getKey(),
        'Special db key is returned');
@@ -49,7 +49,7 @@ public function testSpecifyDatabaseDoesNotExist() {
     $command = new DbCommandBaseTester();
     $command_tester = new CommandTester($command);
     $command_tester->execute([
-      '--database' => 'dne'
+      '--database' => 'dne',
     ]);
     $command->getDatabaseConnection($command_tester->getInput());
   }
@@ -63,13 +63,13 @@ public function testSpecifyDbUrl() {
     $command = new DbCommandBaseTester();
     $command_tester = new CommandTester($command);
     $command_tester->execute([
-      '-db-url' => $connection_info['driver'] . '://' . $connection_info['username'] . ':' . $connection_info['password'] . '@' . $connection_info['host'] . '/' . $connection_info['database']
+      '-db-url' => $connection_info['driver'] . '://' . $connection_info['username'] . ':' . $connection_info['password'] . '@' . $connection_info['host'] . '/' . $connection_info['database'],
     ]);
     $this->assertEquals('db-tools', $command->getDatabaseConnection($command_tester->getInput())->getKey());
 
     Database::removeConnection('db-tools');
     $command_tester->execute([
-      '--database-url' => $connection_info['driver'] . '://' . $connection_info['username'] . ':' . $connection_info['password'] . '@' . $connection_info['host'] . '/' . $connection_info['database']
+      '--database-url' => $connection_info['driver'] . '://' . $connection_info['username'] . ':' . $connection_info['password'] . '@' . $connection_info['host'] . '/' . $connection_info['database'],
     ]);
     $this->assertEquals('db-tools', $command->getDatabaseConnection($command_tester->getInput())->getKey());
   }
diff --git a/core/modules/system/tests/src/Unit/Menu/MenuLinkTreeTest.php b/core/modules/system/tests/src/Unit/Menu/MenuLinkTreeTest.php
index c2014d5089..cb4367b99f 100644
--- a/core/modules/system/tests/src/Unit/Menu/MenuLinkTreeTest.php
+++ b/core/modules/system/tests/src/Unit/Menu/MenuLinkTreeTest.php
@@ -134,7 +134,7 @@ public function providerTestBuildCacheability() {
       '#theme' => 'menu__mock',
       '#items' => [
         // To be filled when generating test cases, using $get_built_element().
-      ]
+      ],
     ];
 
     $get_built_element = function(MenuLinkTreeElement $element) {
@@ -249,10 +249,10 @@ public function providerTestBuildCacheability() {
           new MenuLinkTreeElement($multi_level_root_a, TRUE, 0, FALSE, [
             new MenuLinkTreeElement($multi_level_parent_c, TRUE, 0, FALSE, [
               new MenuLinkTreeElement($links[0], FALSE, 0, FALSE, []),
-            ])
+            ]),
           ]),
           new MenuLinkTreeElement($multi_level_root_b, TRUE, 0, FALSE, [
-            new MenuLinkTreeElement($links[1], FALSE, 1, FALSE, [])
+            new MenuLinkTreeElement($links[1], FALSE, 1, FALSE, []),
           ]),
         ];
         $tree[0]->subtree[0]->subtree[0]->access = $access;
diff --git a/core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php b/core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php
index e9eb4aa447..6f964f0171 100644
--- a/core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php
+++ b/core/modules/taxonomy/src/Plugin/migrate/source/d7/Vocabulary.php
@@ -42,7 +42,7 @@ public function fields() {
       'hierarchy' => $this->t('The type of hierarchy allowed within the vocabulary. (0 = disabled, 1 = single, 2 = multiple)'),
       'module' => $this->t('Module responsible for the vocabulary.'),
       'weight' => $this->t('The weight of the vocabulary in relation to other vocabularies.'),
-      'machine_name' => $this->t('Unique machine name of the vocabulary.')
+      'machine_name' => $this->t('Unique machine name of the vocabulary.'),
     );
   }
 
diff --git a/core/modules/taxonomy/src/TermViewsData.php b/core/modules/taxonomy/src/TermViewsData.php
index 32a238b9b7..aa54239cd6 100644
--- a/core/modules/taxonomy/src/TermViewsData.php
+++ b/core/modules/taxonomy/src/TermViewsData.php
@@ -61,7 +61,7 @@ public function getViewsData() {
         'argument field' => 'tid',
         'base'   => 'node_field_data',
         'field'  => 'nid',
-        'relationship' => 'node_field_data:term_node_tid'
+        'relationship' => 'node_field_data:term_node_tid',
       ),
     );
 
@@ -216,7 +216,7 @@ public function getViewsData() {
       'title' => $this->t('Post date'),
       'help' => $this->t('The date the content related to a term was posted.'),
       'sort' => [
-        'id' => 'date'
+        'id' => 'date',
       ],
       'filter' => [
         'id' => 'date',
diff --git a/core/modules/taxonomy/src/Tests/TermAutocompleteTest.php b/core/modules/taxonomy/src/Tests/TermAutocompleteTest.php
index 7ff519df94..bdba38c9e2 100644
--- a/core/modules/taxonomy/src/Tests/TermAutocompleteTest.php
+++ b/core/modules/taxonomy/src/Tests/TermAutocompleteTest.php
@@ -189,7 +189,7 @@ public function testAutocompleteOrderedResults() {
     foreach ($expectedResults as $termName) {
       $expected[] = [
         'value' => $termName . ' (' . $this->termIds[$termName] . ')',
-        'label' => $termName
+        'label' => $termName,
       ];
     }
 
diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php
index 7dff50a486..dd6560f2d9 100644
--- a/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php
+++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php
@@ -200,7 +200,7 @@ public function testExposedFilter() {
     // Select 'Term' and 'Vocabulary' as filters.
     $edit = [
       'name[taxonomy_term_field_data.tid]' => TRUE,
-      'name[taxonomy_term_field_data.vid]' => TRUE
+      'name[taxonomy_term_field_data.vid]' => TRUE,
     ];
     $this->drupalPostForm('admin/structure/views/nojs/add-handler/test_taxonomy_term_name/default/filter', $edit, 'Add and configure filter criteria');
     // Select 'Empty Vocabulary' and 'Autocomplete' from the list of options.
diff --git a/core/modules/taxonomy/tests/src/Functional/TermTranslationFieldViewTest.php b/core/modules/taxonomy/tests/src/Functional/TermTranslationFieldViewTest.php
index 9588e4d0a8..db77b60484 100644
--- a/core/modules/taxonomy/tests/src/Functional/TermTranslationFieldViewTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/TermTranslationFieldViewTest.php
@@ -77,7 +77,7 @@ protected function setUpNode() {
       'type' => 'article',
       'description' => [[
         'value' => $this->randomMachineName(),
-        'format' => 'basic_html'
+        'format' => 'basic_html',
       ]],
       $this->termFieldName => array(array('target_id' => $this->term->id())),
       'langcode' => $this->baseLangcode,
diff --git a/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php b/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php
index 2705ab0f09..62cd4e7645 100644
--- a/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php
@@ -149,7 +149,7 @@ function testUninstallReinstall() {
       'field_name' => $field_name,
       'entity_type' => 'taxonomy_term',
       'type' => 'text',
-      'cardinality' => 4
+      'cardinality' => 4,
     );
     FieldStorageConfig::create($storage_definition)->save();
     $field_definition = array(
diff --git a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php
index fbcc129795..29ceb24eaf 100644
--- a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php
+++ b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php
@@ -45,7 +45,7 @@ protected function setUp() {
       'd7_field',
       'd7_taxonomy_vocabulary',
       'd7_field_instance',
-      'd7_taxonomy_term'
+      'd7_taxonomy_term',
     ]);
   }
 
diff --git a/core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php b/core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php
index 20950e5ffb..83fb970e28 100644
--- a/core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php
+++ b/core/modules/telephone/src/Plugin/Field/FieldType/TelephoneItem.php
@@ -67,7 +67,7 @@ public function getConstraints() {
         'Length' => array(
           'max' => $max_length,
           'maxMessage' => t('%name: the telephone number may not be longer than @max characters.', array('%name' => $this->getFieldDefinition()->getLabel(), '@max' => $max_length)),
-        )
+        ),
       ),
     ));
 
diff --git a/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php b/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php
index 7f536c4552..ce3af6f26a 100644
--- a/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php
+++ b/core/modules/telephone/tests/src/Functional/TelephoneFieldTest.php
@@ -21,7 +21,7 @@ class TelephoneFieldTest extends BrowserTestBase {
   public static $modules = array(
     'field',
     'node',
-    'telephone'
+    'telephone',
   );
 
   /**
diff --git a/core/modules/text/src/Plugin/Field/FieldType/TextItem.php b/core/modules/text/src/Plugin/Field/FieldType/TextItem.php
index ed896ad583..d845ee2194 100644
--- a/core/modules/text/src/Plugin/Field/FieldType/TextItem.php
+++ b/core/modules/text/src/Plugin/Field/FieldType/TextItem.php
@@ -62,7 +62,7 @@ public function getConstraints() {
           'Length' => array(
             'max' => $max_length,
             'maxMessage' => t('%name: the text may not be longer than @max characters.', array('%name' => $this->getFieldDefinition()->getLabel(), '@max' => $max_length)),
-          )
+          ),
         ),
       ));
     }
diff --git a/core/modules/text/src/Tests/TextFieldTest.php b/core/modules/text/src/Tests/TextFieldTest.php
index 993346a079..0fea874aad 100644
--- a/core/modules/text/src/Tests/TextFieldTest.php
+++ b/core/modules/text/src/Tests/TextFieldTest.php
@@ -44,7 +44,7 @@ function testTextFieldValidation() {
       'type' => 'text',
       'settings' => array(
         'max_length' => $max_length,
-      )
+      ),
     ));
     $field_storage->save();
     FieldConfig::create([
@@ -90,7 +90,7 @@ function testRequiredLongTextWithFileUpload() {
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => $file_field_name,
       'entity_type' => 'entity_test',
-      'type' => 'file'
+      'type' => 'file',
     ));
     $field_storage->save();
     FieldConfig::create([
@@ -117,7 +117,7 @@ function testRequiredLongTextWithFileUpload() {
     $this->drupalPostForm('entity_test/add', $edit, 'Upload');
     $this->assertResponse(200);
     $edit = array(
-      'text_long[0][value]' => 'Long text'
+      'text_long[0][value]' => 'Long text',
     );
     $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertResponse(200);
@@ -153,7 +153,7 @@ function _testTextfieldWidgetsFormatted($field_type, $widget_type) {
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => $field_type
+      'type' => $field_type,
     ));
     $field_storage->save();
     FieldConfig::create([
diff --git a/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php b/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php
index fc02daa7e9..2bb4bfc06c 100644
--- a/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php
+++ b/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php
@@ -106,7 +106,7 @@ protected function createField($entity_type) {
       'type' => 'text_with_summary',
       'settings' => array(
         'max_length' => 10,
-      )
+      ),
     ));
     $this->fieldStorage->save();
     $this->field = FieldConfig::create([
diff --git a/core/modules/text/tests/src/Unit/Migrate/TextFieldTest.php b/core/modules/text/tests/src/Unit/Migrate/TextFieldTest.php
index 323fbce8cb..354ba2c67a 100644
--- a/core/modules/text/tests/src/Unit/Migrate/TextFieldTest.php
+++ b/core/modules/text/tests/src/Unit/Migrate/TextFieldTest.php
@@ -75,7 +75,7 @@ public function testProcessBooleanTextImplicitValues() {
       'widget_type' => 'optionwidgets_onoff',
       'global_settings' => array(
         'allowed_values' => "foo\nbar",
-      )
+      ),
     );
     $this->plugin->processCckFieldValues($this->migration, 'field', $info);
 
@@ -100,7 +100,7 @@ public function testProcessBooleanTextExplicitValues() {
       'widget_type' => 'optionwidgets_onoff',
       'global_settings' => array(
         'allowed_values' => "foo|Foo\nbaz|Baz",
-      )
+      ),
     );
     $this->plugin->processCckFieldValues($this->migration, 'field', $info);
 
diff --git a/core/modules/tour/src/Tests/TourTest.php b/core/modules/tour/src/Tests/TourTest.php
index 78304c6e95..b3a7aeee35 100644
--- a/core/modules/tour/src/Tests/TourTest.php
+++ b/core/modules/tour/src/Tests/TourTest.php
@@ -45,7 +45,7 @@ protected function setUp() {
 
     $this->drupalPlaceBlock('local_actions_block', [
       'theme' => 'seven',
-      'region' => 'content'
+      'region' => 'content',
     ]);
   }
 
@@ -130,7 +130,7 @@ public function testTourFunctionality() {
           'url' => 'http://local/image.png',
           'weight' => 1,
           'attributes' => array(
-            'data-id' => 'tour-code-test-2'
+            'data-id' => 'tour-code-test-2',
           ),
         ),
       ),
diff --git a/core/modules/tracker/src/Tests/Views/TrackerUserUidTest.php b/core/modules/tracker/src/Tests/Views/TrackerUserUidTest.php
index 68b77777aa..1779af4e74 100644
--- a/core/modules/tracker/src/Tests/Views/TrackerUserUidTest.php
+++ b/core/modules/tracker/src/Tests/Views/TrackerUserUidTest.php
@@ -31,7 +31,7 @@ public function testUserUid() {
       array(
         'nid' => $this->node->id(),
         'title' => $this->node->label(),
-      )
+      ),
     );
 
     $view = Views::getView('test_tracker_user_uid');
diff --git a/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php b/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php
index 0318b8e7bd..28d3772614 100644
--- a/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php
+++ b/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php
@@ -30,7 +30,7 @@ public function providerSource() {
         'nid' => '2',
         'published' => '1',
         'changed' => '1421727536',
-      ]
+      ],
     ];
 
     // The expected results are identical to the source data.
diff --git a/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php b/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php
index ffcee93b56..293e559a20 100644
--- a/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php
+++ b/core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php
@@ -31,7 +31,7 @@ public function providerSource() {
         'uid' => '2',
         'published' => '1',
         'changed' => '1421727536',
-      ]
+      ],
     ];
 
     // The expected results are identical to the source data.
diff --git a/core/modules/tracker/tracker.views.inc b/core/modules/tracker/tracker.views.inc
index b7e4b9547d..c80a9006bd 100644
--- a/core/modules/tracker/tracker.views.inc
+++ b/core/modules/tracker/tracker.views.inc
@@ -173,7 +173,7 @@ function tracker_views_data_alter(&$data) {
       'field' => 'uid',
       'name table' => 'users_field_data',
       'name field' => 'name',
-      'id' => 'tracker_user_uid'
+      'id' => 'tracker_user_uid',
     ),
   );
 }
diff --git a/core/modules/update/src/Controller/UpdateController.php b/core/modules/update/src/Controller/UpdateController.php
index cdd63b83af..e479527217 100644
--- a/core/modules/update/src/Controller/UpdateController.php
+++ b/core/modules/update/src/Controller/UpdateController.php
@@ -45,7 +45,7 @@ public static function create(ContainerInterface $container) {
    */
   public function updateStatus() {
     $build = array(
-      '#theme' => 'update_report'
+      '#theme' => 'update_report',
     );
     if ($available = update_get_available(TRUE)) {
       $this->moduleHandler()->loadInclude('update', 'compare.inc');
diff --git a/core/modules/update/src/UpdateSettingsForm.php b/core/modules/update/src/UpdateSettingsForm.php
index d830de57f4..493c498645 100644
--- a/core/modules/update/src/UpdateSettingsForm.php
+++ b/core/modules/update/src/UpdateSettingsForm.php
@@ -93,7 +93,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
         'all' => t('All newer versions'),
         'security' => t('Only security updates'),
       ),
-      '#description' => t('You can choose to send email only if a security update is available, or to be notified about all newer versions. If there are updates available of Drupal core or any of your installed modules and themes, your site will always print a message on the <a href=":status_report">status report</a> page, and will also display an error message on administration pages if there is a security update.', array(':status_report' => $this->url('system.status')))
+      '#description' => t('You can choose to send email only if a security update is available, or to be notified about all newer versions. If there are updates available of Drupal core or any of your installed modules and themes, your site will always print a message on the <a href=":status_report">status report</a> page, and will also display an error message on administration pages if there is a security update.', array(':status_report' => $this->url('system.status'))),
     );
 
     return parent::buildForm($form, $form_state);
diff --git a/core/modules/update/update.authorize.inc b/core/modules/update/update.authorize.inc
index 58f1464703..48e427db43 100644
--- a/core/modules/update/update.authorize.inc
+++ b/core/modules/update/update.authorize.inc
@@ -261,7 +261,7 @@ function update_authorize_update_batch_finished($success, $results) {
       'absolute' => TRUE,
       'base_url' => $GLOBALS['base_url'],
     ],
-    '#access' => $url->access(\Drupal::currentUser())
+    '#access' => $url->access(\Drupal::currentUser()),
   ];
 
   // Unset the variable since it is no longer needed.
diff --git a/core/modules/update/update.report.inc b/core/modules/update/update.report.inc
index 5f198d9ba9..afc81f6723 100644
--- a/core/modules/update/update.report.inc
+++ b/core/modules/update/update.report.inc
@@ -31,7 +31,7 @@ function template_preprocess_update_report(&$variables) {
       'library' => array(
         'update/drupal.update.admin',
       ),
-    )
+    ),
   );
 
   // For no project update data, populate no data message.
@@ -231,7 +231,7 @@ function template_preprocess_update_project_status(&$variables) {
       $extra_item['data'] = [
         '#prefix' => '<em>',
         '#markup' => $value['data'],
-        '#suffix' => '</em>'
+        '#suffix' => '</em>',
       ];
       $variables['extras'][] = $extra_item;
     }
diff --git a/core/modules/user/src/AccountForm.php b/core/modules/user/src/AccountForm.php
index 5f4d82002e..889b16d8a5 100644
--- a/core/modules/user/src/AccountForm.php
+++ b/core/modules/user/src/AccountForm.php
@@ -347,7 +347,7 @@ protected function getEditedFieldNames(FormStateInterface $form_state) {
       'timezone',
       'langcode',
       'preferred_langcode',
-      'preferred_admin_langcode'
+      'preferred_admin_langcode',
     ), parent::getEditedFieldNames($form_state));
   }
 
@@ -365,7 +365,7 @@ protected function flagViolations(EntityConstraintViolationListInterface $violat
       'timezone',
       'langcode',
       'preferred_langcode',
-      'preferred_admin_langcode'
+      'preferred_admin_langcode',
     );
     foreach ($violations->getByFields($field_names) as $violation) {
       list($field_name) = explode('.', $violation->getPropertyPath(), 2);
diff --git a/core/modules/user/src/AccountSettingsForm.php b/core/modules/user/src/AccountSettingsForm.php
index 1e5cd4980e..b9f20d6665 100644
--- a/core/modules/user/src/AccountSettingsForm.php
+++ b/core/modules/user/src/AccountSettingsForm.php
@@ -152,13 +152,13 @@ public function buildForm(array $form, FormStateInterface $form_state) {
         USER_REGISTER_ADMINISTRATORS_ONLY => $this->t('Administrators only'),
         USER_REGISTER_VISITORS => $this->t('Visitors'),
         USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL => $this->t('Visitors, but administrator approval is required'),
-      )
+      ),
     );
     $form['registration_cancellation']['user_email_verification'] = array(
       '#type' => 'checkbox',
       '#title' => $this->t('Require email verification when a visitor creates an account'),
       '#default_value' => $config->get('verify_mail'),
-      '#description' => $this->t('New users will be required to validate their email address prior to logging into the site, and will be assigned a system-generated password. With this setting disabled, users will be logged in immediately upon registering, and may select their own passwords during registration.')
+      '#description' => $this->t('New users will be required to validate their email address prior to logging into the site, and will be assigned a system-generated password. With this setting disabled, users will be logged in immediately upon registering, and may select their own passwords during registration.'),
     );
     $form['registration_cancellation']['user_password_strength'] = array(
       '#type' => 'checkbox',
diff --git a/core/modules/user/src/Entity/User.php b/core/modules/user/src/Entity/User.php
index 062af44251..cb50b223c0 100644
--- a/core/modules/user/src/Entity/User.php
+++ b/core/modules/user/src/Entity/User.php
@@ -418,7 +418,7 @@ public static function getAnonymousUser() {
         'name' => [LanguageInterface::LANGCODE_DEFAULT => ''],
         // Explicitly set the langcode to ensure that field definitions do not
         // need to be fetched to figure out a default.
-        'langcode' => [LanguageInterface::LANGCODE_DEFAULT => LanguageInterface::LANGCODE_NOT_SPECIFIED]
+        'langcode' => [LanguageInterface::LANGCODE_DEFAULT => LanguageInterface::LANGCODE_NOT_SPECIFIED],
       ], $entity_type->id());
     }
     return clone static::$anonymousUser;
diff --git a/core/modules/user/src/Plugin/views/wizard/Users.php b/core/modules/user/src/Plugin/views/wizard/Users.php
index efd42723c7..60bb3957d5 100644
--- a/core/modules/user/src/Plugin/views/wizard/Users.php
+++ b/core/modules/user/src/Plugin/views/wizard/Users.php
@@ -35,7 +35,7 @@ class Users extends WizardPluginBase {
       'plugin_id' => 'boolean',
       'entity_type' => 'user',
       'entity_field' => 'status',
-    )
+    ),
   );
 
   /**
diff --git a/core/modules/user/src/Tests/UserAdminTest.php b/core/modules/user/src/Tests/UserAdminTest.php
index 8d4a22be78..842a51caee 100644
--- a/core/modules/user/src/Tests/UserAdminTest.php
+++ b/core/modules/user/src/Tests/UserAdminTest.php
@@ -103,7 +103,7 @@ function testUserAdmin() {
     $this->drupalPostForm('admin/people', $edit, t('Apply to selected items'), array(
       // Sort the table by username so that we know reliably which user will be
       // targeted with the blocking action.
-      'query' => array('order' => 'name', 'sort' => 'asc')
+      'query' => array('order' => 'name', 'sort' => 'asc'),
     ));
     $site_name = $this->config('system.site')->get('name');
     $this->assertMailString('body', 'Your account on ' . $site_name . ' has been blocked.', 1, 'Blocked message found in the mail sent to user C.');
@@ -124,7 +124,7 @@ function testUserAdmin() {
     $this->drupalPostForm('admin/people', $editunblock, t('Apply to selected items'), array(
       // Sort the table by username so that we know reliably which user will be
       // targeted with the blocking action.
-      'query' => array('order' => 'name', 'sort' => 'asc')
+      'query' => array('order' => 'name', 'sort' => 'asc'),
     ));
     $user_storage->resetCache(array($user_c->id()));
     $account = $user_storage->load($user_c->id());
diff --git a/core/modules/user/src/Tests/Views/HandlerFilterUserNameTest.php b/core/modules/user/src/Tests/Views/HandlerFilterUserNameTest.php
index eaf24aa0fd..2f32ec0d89 100644
--- a/core/modules/user/src/Tests/Views/HandlerFilterUserNameTest.php
+++ b/core/modules/user/src/Tests/Views/HandlerFilterUserNameTest.php
@@ -96,7 +96,7 @@ public function testAdminUserInterface() {
     $users = array($this->randomMachineName());
     $users = array_map('strtolower', $users);
     $edit = array(
-      'options[value]' => implode(', ', $users)
+      'options[value]' => implode(', ', $users),
     );
     $this->drupalPostForm($path, $edit, t('Apply'));
     $this->assertRaw(t('There are no entities matching "%value".', array('%value' => implode(', ', $users))));
@@ -106,7 +106,7 @@ public function testAdminUserInterface() {
     $users = array($random_name, $this->names[0]);
     $users = array_map('strtolower', $users);
     $edit = array(
-      'options[value]' => implode(', ', $users)
+      'options[value]' => implode(', ', $users),
     );
     $users = array($users[0]);
     $this->drupalPostForm($path, $edit, t('Apply'));
@@ -116,7 +116,7 @@ public function testAdminUserInterface() {
     $users = $this->names;
     $users = array_map('strtolower', $users);
     $edit = array(
-      'options[value]' => implode(', ', $users)
+      'options[value]' => implode(', ', $users),
     );
     $this->drupalPostForm($path, $edit, t('Apply'));
     $this->assertNoRaw(t('There are no entities matching "%value".', array('%value' => implode(', ', $users))));
diff --git a/core/modules/user/src/UserViewsData.php b/core/modules/user/src/UserViewsData.php
index e2229112eb..64c544061f 100644
--- a/core/modules/user/src/UserViewsData.php
+++ b/core/modules/user/src/UserViewsData.php
@@ -60,7 +60,7 @@ public function getViewsData() {
         'argument field' => 'uid',
         'base' => 'node_field_data',
         'field' => 'nid',
-        'relationship' => 'node_field_data:uid'
+        'relationship' => 'node_field_data:uid',
       ),
     );
 
diff --git a/core/modules/user/tests/fixtures/update/drupal-8.user-email-token-2587275.php b/core/modules/user/tests/fixtures/update/drupal-8.user-email-token-2587275.php
index 75ec703f8c..21039c2bee 100644
--- a/core/modules/user/tests/fixtures/update/drupal-8.user-email-token-2587275.php
+++ b/core/modules/user/tests/fixtures/update/drupal-8.user-email-token-2587275.php
@@ -18,5 +18,5 @@
   ->values(array(
   'collection' => '',
   'name' => 'user.mail',
-  'data' => "a:10:{s:14:\"cancel_confirm\";a:2:{s:4:\"body\";s:369:\"[user:name],\n\nA request to cancel your account has been made at [site:name].\n\nYou may now cancel your account on [site:url-brief] by clicking this link or copying and pasting it into your browser:\n\n[user:cancel-url]\n\nNOTE: The cancellation of your account is not reversible.\n\nThis link expires in one day and nothing will happen if it is not used.\n\n--  [site:name] team\";s:7:\"subject\";s:59:\"Account cancellation request for [user:name] at [site:name]\";}s:14:\"password_reset\";a:2:{s:4:\"body\";s:397:\"[user:name],\n\nA request to reset the password for your account has been made at [site:name].\n\nYou may now log in by clicking this link or copying and pasting it to your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password. It expires after one day and nothing will happen if it's not used.\n\n--  [site:name] team\";s:7:\"subject\";s:60:\"Replacement login information for [user:name] at [site:name]\";}s:22:\"register_admin_created\";a:2:{s:4:\"body\";s:463:\"[user:name],\n\nA site administrator at [site:name] has created an account for you. You may now log in by clicking this link or copying and pasting it to your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password.\n\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\n\nusername: [user:name]\npassword: Your password\n\n--  [site:name] team\";s:7:\"subject\";s:58:\"An administrator created an account for you at [site:name]\";}s:29:\"register_no_approval_required\";a:2:{s:4:\"body\";s:437:\"[user:name],\n\nThank you for registering at [site:name]. You may now log in by clicking this link or copying and pasting it to your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password.\n\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\n\nusername: [user:name]\npassword: Your password\n\n--  [site:name] team\";s:7:\"subject\";s:46:\"Account details for [user:name] at [site:name]\";}s:25:\"register_pending_approval\";a:2:{s:4:\"body\";s:281:\"[user:name],\n\nThank you for registering at [site:name]. Your application for an account is currently pending approval. Once it has been approved, you will receive another email containing information about how to log in, set your password, and other details.\n\n\n--  [site:name] team\";s:7:\"subject\";s:71:\"Account details for [user:name] at [site:name] (pending admin approval)\";}s:31:\"register_pending_approval_admin\";a:2:{s:4:\"body\";s:56:\"[user:name] has applied for an account.\n\n[user:edit-url]\";s:7:\"subject\";s:71:\"Account details for [user:name] at [site:name] (pending admin approval)\";}s:16:\"status_activated\";a:2:{s:4:\"body\";s:446:\"[user:name],\n\nYour account at [site:name] has been activated.\n\nYou may now log in by clicking this link or copying and pasting it into your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password.\n\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\n\nusername: [user:name]\npassword: Your password\n\n--  [site:name] team\";s:7:\"subject\";s:57:\"Account details for [user:name] at [site:name] (approved)\";}s:14:\"status_blocked\";a:2:{s:4:\"body\";s:89:\"[user:name],\n\nYour account on [site:account-name] has been blocked.\n\n--  [site:name] team\";s:7:\"subject\";s:56:\"Account details for [user:name] at [site:name] (blocked)\";}s:15:\"status_canceled\";a:2:{s:4:\"body\";s:82:\"[user:name],\n\nYour account on [site:name] has been canceled.\n\n--  [site:name] team\";s:7:\"subject\";s:57:\"Account details for [user:name] at [site:name] (canceled)\";}s:8:\"langcode\";s:2:\"en\";}"
+  'data' => "a:10:{s:14:\"cancel_confirm\";a:2:{s:4:\"body\";s:369:\"[user:name],\n\nA request to cancel your account has been made at [site:name].\n\nYou may now cancel your account on [site:url-brief] by clicking this link or copying and pasting it into your browser:\n\n[user:cancel-url]\n\nNOTE: The cancellation of your account is not reversible.\n\nThis link expires in one day and nothing will happen if it is not used.\n\n--  [site:name] team\";s:7:\"subject\";s:59:\"Account cancellation request for [user:name] at [site:name]\";}s:14:\"password_reset\";a:2:{s:4:\"body\";s:397:\"[user:name],\n\nA request to reset the password for your account has been made at [site:name].\n\nYou may now log in by clicking this link or copying and pasting it to your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password. It expires after one day and nothing will happen if it's not used.\n\n--  [site:name] team\";s:7:\"subject\";s:60:\"Replacement login information for [user:name] at [site:name]\";}s:22:\"register_admin_created\";a:2:{s:4:\"body\";s:463:\"[user:name],\n\nA site administrator at [site:name] has created an account for you. You may now log in by clicking this link or copying and pasting it to your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password.\n\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\n\nusername: [user:name]\npassword: Your password\n\n--  [site:name] team\";s:7:\"subject\";s:58:\"An administrator created an account for you at [site:name]\";}s:29:\"register_no_approval_required\";a:2:{s:4:\"body\";s:437:\"[user:name],\n\nThank you for registering at [site:name]. You may now log in by clicking this link or copying and pasting it to your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password.\n\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\n\nusername: [user:name]\npassword: Your password\n\n--  [site:name] team\";s:7:\"subject\";s:46:\"Account details for [user:name] at [site:name]\";}s:25:\"register_pending_approval\";a:2:{s:4:\"body\";s:281:\"[user:name],\n\nThank you for registering at [site:name]. Your application for an account is currently pending approval. Once it has been approved, you will receive another email containing information about how to log in, set your password, and other details.\n\n\n--  [site:name] team\";s:7:\"subject\";s:71:\"Account details for [user:name] at [site:name] (pending admin approval)\";}s:31:\"register_pending_approval_admin\";a:2:{s:4:\"body\";s:56:\"[user:name] has applied for an account.\n\n[user:edit-url]\";s:7:\"subject\";s:71:\"Account details for [user:name] at [site:name] (pending admin approval)\";}s:16:\"status_activated\";a:2:{s:4:\"body\";s:446:\"[user:name],\n\nYour account at [site:name] has been activated.\n\nYou may now log in by clicking this link or copying and pasting it into your browser:\n\n[user:one-time-login-url]\n\nThis link can only be used once to log in and will lead you to a page where you can set your password.\n\nAfter setting your password, you will be able to log in at [site:login-url] in the future using:\n\nusername: [user:name]\npassword: Your password\n\n--  [site:name] team\";s:7:\"subject\";s:57:\"Account details for [user:name] at [site:name] (approved)\";}s:14:\"status_blocked\";a:2:{s:4:\"body\";s:89:\"[user:name],\n\nYour account on [site:account-name] has been blocked.\n\n--  [site:name] team\";s:7:\"subject\";s:56:\"Account details for [user:name] at [site:name] (blocked)\";}s:15:\"status_canceled\";a:2:{s:4:\"body\";s:82:\"[user:name],\n\nYour account on [site:name] has been canceled.\n\n--  [site:name] team\";s:7:\"subject\";s:57:\"Account details for [user:name] at [site:name] (canceled)\";}s:8:\"langcode\";s:2:\"en\";}",
 ))->execute();
diff --git a/core/modules/user/tests/src/Functional/UserMailNotifyTest.php b/core/modules/user/tests/src/Functional/UserMailNotifyTest.php
index 7f5257a565..295870e7eb 100644
--- a/core/modules/user/tests/src/Functional/UserMailNotifyTest.php
+++ b/core/modules/user/tests/src/Functional/UserMailNotifyTest.php
@@ -30,7 +30,7 @@ public function userMailsProvider() {
       ['status_canceled', ['status_canceled']],
       ['register_admin_created', ['register_admin_created']],
       ['register_no_approval_required', ['register_no_approval_required']],
-      ['register_pending_approval', ['register_pending_approval', 'register_pending_approval_admin']]
+      ['register_pending_approval', ['register_pending_approval', 'register_pending_approval_admin']],
     ];
   }
 
diff --git a/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php b/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php
index 5393805ca7..0ca7f091a2 100644
--- a/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php
+++ b/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php
@@ -60,7 +60,7 @@ protected function assertRoles(MigrateIdMapInterface $id_map) {
       'access content',
       'migrate test anonymous permission',
       // From filter_format tables.
-      'use text format filtered_html'
+      'use text format filtered_html',
     ];
     $this->assertRole('anonymous', $permissions, 1, $id_map);
 
@@ -81,7 +81,7 @@ protected function assertRoles(MigrateIdMapInterface $id_map) {
       'migrate test role 1 test permission',
       // From filter format.
       'use text format full_html',
-      'use text format php_code'
+      'use text format php_code',
     ];
     $this->assertRole('migrate_test_role_1', $permissions, 3, $id_map);
 
@@ -126,7 +126,7 @@ public function testUserRole() {
       'administrator1',
       'migrate_test_role_11',
       'migrate_test_role_21',
-      'migrate_test_role_3_that_is_longer_than_thirty_two_characters1'
+      'migrate_test_role_3_that_is_longer_than_thirty_two_characters1',
     ];
     $this->assertEmpty(Role::loadMultiple($roles));
 
diff --git a/core/modules/user/tests/src/Kernel/Plugin/migrate/source/ProfileFieldTest.php b/core/modules/user/tests/src/Kernel/Plugin/migrate/source/ProfileFieldTest.php
index c321185713..99c61fd491 100644
--- a/core/modules/user/tests/src/Kernel/Plugin/migrate/source/ProfileFieldTest.php
+++ b/core/modules/user/tests/src/Kernel/Plugin/migrate/source/ProfileFieldTest.php
@@ -99,7 +99,7 @@ public function providerSource() {
         'fid' => 4,
         'uid' => 1,
         'value' => 'yellow',
-      ]
+      ],
     ];
 
     // Expected options are:
@@ -114,7 +114,7 @@ public function providerSource() {
         'blue' => 'blue',
         'green' => 'green',
         'yellow' => 'yellow',
-      ]
+      ],
     ];
 
     $tests[0]['expected_data'] = $profile_fields;
diff --git a/core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php b/core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php
index 84290cc967..b7c9f68cf1 100644
--- a/core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php
+++ b/core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php
@@ -79,7 +79,7 @@ public function testAccess($requirements, $access, array $contexts = [], $messag
       ->will($this->returnValueMap([
           ['allowed', TRUE],
           ['denied', FALSE],
-          ['other', FALSE]
+          ['other', FALSE],
         ]
       ));
     $route = new Route('', [], $requirements);
diff --git a/core/modules/user/tests/src/Unit/PermissionHandlerTest.php b/core/modules/user/tests/src/Unit/PermissionHandlerTest.php
index b0b91da89f..a3b2b703dd 100644
--- a/core/modules/user/tests/src/Unit/PermissionHandlerTest.php
+++ b/core/modules/user/tests/src/Unit/PermissionHandlerTest.php
@@ -400,7 +400,7 @@ class TestPermissionCallbacks {
 
   public function singleDescription() {
     return array(
-      'access_module_a' => 'single_description'
+      'access_module_a' => 'single_description',
     );
   }
 
diff --git a/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php b/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php
index 8693fc4b37..5880ba752b 100644
--- a/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php
+++ b/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php
@@ -21,7 +21,7 @@ class RolesRidTest extends UnitTestCase {
   public function testTitleQuery() {
     $role1 = new Role(array(
       'id' => 'test_rid_1',
-      'label' => 'test rid 1'
+      'label' => 'test rid 1',
     ), 'user_role');
     $role2 = new Role(array(
       'id' => 'test_rid_2',
diff --git a/core/modules/user/user.module b/core/modules/user/user.module
index 638ed649e5..5052299611 100644
--- a/core/modules/user/user.module
+++ b/core/modules/user/user.module
@@ -602,7 +602,7 @@ function user_pass_reset_url($account, $options = array()) {
     ),
     array(
       'absolute' => TRUE,
-      'language' => \Drupal::languageManager()->getLanguage($langcode)
+      'language' => \Drupal::languageManager()->getLanguage($langcode),
     )
   );
 }
@@ -631,7 +631,7 @@ function user_cancel_url(UserInterface $account, $options = array()) {
   return \Drupal::url('user.cancel_confirm', [
     'user' => $account->id(),
     'timestamp' => $timestamp,
-    'hashed_pass' => user_pass_rehash($account, $timestamp)
+    'hashed_pass' => user_pass_rehash($account, $timestamp),
   ], $url_options);
 }
 
diff --git a/core/modules/views/src/Entity/View.php b/core/modules/views/src/Entity/View.php
index 1e9fac104c..91ef9a6050 100644
--- a/core/modules/views/src/Entity/View.php
+++ b/core/modules/views/src/Entity/View.php
@@ -378,7 +378,7 @@ public static function preCreate(EntityStorageInterface $storage, array &$values
           'position' => 0,
           'display_options' => array(),
         ),
-      )
+      ),
     );
   }
 
diff --git a/core/modules/views/src/EntityViewsData.php b/core/modules/views/src/EntityViewsData.php
index 61def5acd4..c3c722f1aa 100644
--- a/core/modules/views/src/EntityViewsData.php
+++ b/core/modules/views/src/EntityViewsData.php
@@ -200,7 +200,7 @@ public function getViewsData() {
       $data[$base_table]['table']['join'][$data_table] = [
         'left_field' => $base_field,
         'field' => $base_field,
-        'type' => 'INNER'
+        'type' => 'INNER',
       ];
       $data[$data_table]['table']['group'] = $this->entityType->getLabel();
       $data[$data_table]['table']['provider'] = $this->entityType->getProvider();
diff --git a/core/modules/views/src/Form/ViewsExposedForm.php b/core/modules/views/src/Form/ViewsExposedForm.php
index 372d963bf9..169653d869 100644
--- a/core/modules/views/src/Form/ViewsExposedForm.php
+++ b/core/modules/views/src/Form/ViewsExposedForm.php
@@ -101,7 +101,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
     }
 
     $form['actions'] = array(
-      '#type' => 'actions'
+      '#type' => 'actions',
     );
     $form['actions']['submit'] = array(
       // Prevent from showing up in \Drupal::request()->query.
diff --git a/core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php b/core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php
index 072d692be9..e269775014 100644
--- a/core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php
+++ b/core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php
@@ -25,7 +25,7 @@ public function getDerivativeDefinitions($base_plugin_definition) {
           'id' => 'standard',
           'base_table' => $table,
           'title' => $views_info['table']['base']['title'],
-          'class' => 'Drupal\views\Plugin\views\wizard\Standard'
+          'class' => 'Drupal\views\Plugin\views\wizard\Standard',
         );
       }
     }
diff --git a/core/modules/views/src/Plugin/Derivative/ViewsExposedFilterBlock.php b/core/modules/views/src/Plugin/Derivative/ViewsExposedFilterBlock.php
index 50edadcb04..081e1bff32 100644
--- a/core/modules/views/src/Plugin/Derivative/ViewsExposedFilterBlock.php
+++ b/core/modules/views/src/Plugin/Derivative/ViewsExposedFilterBlock.php
@@ -91,8 +91,8 @@ public function getDerivativeDefinitions($base_plugin_definition) {
               'config_dependencies' => array(
                 'config' => array(
                   $view->getConfigDependencyName(),
-                )
-              )
+                ),
+              ),
             );
             $this->derivatives[$delta] += $base_plugin_definition;
           }
diff --git a/core/modules/views/src/Plugin/views/PluginBase.php b/core/modules/views/src/Plugin/views/PluginBase.php
index 6d5aec184a..f185680e3a 100644
--- a/core/modules/views/src/Plugin/views/PluginBase.php
+++ b/core/modules/views/src/Plugin/views/PluginBase.php
@@ -396,7 +396,7 @@ protected function viewsTokenReplace($text, $tokens) {
         '#post_render' => [
           function ($children, $elements) {
             return Xss::filterAdmin($children);
-          }
+          },
         ],
       );
 
diff --git a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
index 6b8105b106..f131b0c9e4 100644
--- a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
+++ b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
@@ -547,7 +547,7 @@ public function defaultArgumentForm(&$form, FormStateInterface $form_state) {
       '#type' => 'checkbox',
       '#title' => $this->t('Skip default argument for view URL'),
       '#default_value' => $this->options['default_argument_skip_url'],
-      '#description' => $this->t('Select whether to include this default argument when constructing the URL for this view. Skipping default arguments is useful e.g. in the case of feeds.')
+      '#description' => $this->t('Select whether to include this default argument when constructing the URL for this view. Skipping default arguments is useful e.g. in the case of feeds.'),
     );
 
     $form['default_argument_type'] = array(
@@ -637,7 +637,7 @@ public function defaultSummaryForm(&$form, FormStateInterface $form_state) {
       '#default_value' => $this->options['summary']['number_of_records'],
       '#options' => array(
         0 => $this->getSortName(),
-        1 => $this->t('Number of records')
+        1 => $this->t('Number of records'),
       ),
       '#states' => array(
         'visible' => array(
diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
index 94e9200d48..7ec6659043 100644
--- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -1026,13 +1026,13 @@ public function optionLink($text, $section, $class = '', $title = '') {
         'js' => 'nojs',
         'view' => $this->view->storage->id(),
         'display_id' => $this->display['id'],
-        'type' => $section
+        'type' => $section,
       ), array(
         'attributes' => array(
           'class' => array('views-ajax-link', $class),
           'title' => $title,
-          'id' => Html::getUniqueId('views-' . $this->display['id'] . '-' . $section)
-        )
+          'id' => Html::getUniqueId('views-' . $this->display['id'] . '-' . $section),
+        ),
     )));
   }
 
@@ -2563,7 +2563,7 @@ public function getArgumentText() {
   public function getPagerText() {
     return array(
       'items per page title' => $this->t('Items to display'),
-      'items per page description' => $this->t('Enter 0 for no limit.')
+      'items per page description' => $this->t('Enter 0 for no limit.'),
     );
   }
 
diff --git a/core/modules/views/src/Plugin/views/display/Page.php b/core/modules/views/src/Plugin/views/display/Page.php
index d79b75b833..2db9542942 100644
--- a/core/modules/views/src/Plugin/views/display/Page.php
+++ b/core/modules/views/src/Plugin/views/display/Page.php
@@ -247,7 +247,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
             'none' => $this->t('No menu entry'),
             'normal' => $this->t('Normal menu entry'),
             'tab' => $this->t('Menu tab'),
-            'default tab' => $this->t('Default menu tab')
+            'default tab' => $this->t('Default menu tab'),
           ),
           '#default_value' => $menu['type'],
         );
@@ -520,7 +520,7 @@ public function getArgumentText() {
   public function getPagerText() {
     return array(
       'items per page title' => $this->t('Items per page'),
-      'items per page description' => $this->t('Enter 0 for no limit.')
+      'items per page description' => $this->t('Enter 0 for no limit.'),
     );
   }
 
diff --git a/core/modules/views/src/Plugin/views/field/EntityField.php b/core/modules/views/src/Plugin/views/field/EntityField.php
index 4c8032d3eb..fc7f58d908 100644
--- a/core/modules/views/src/Plugin/views/field/EntityField.php
+++ b/core/modules/views/src/Plugin/views/field/EntityField.php
@@ -398,10 +398,10 @@ protected function defineOptions() {
     );
 
     $options['multi_type'] = array(
-      'default' => 'separator'
+      'default' => 'separator',
     );
     $options['separator'] = array(
-      'default' => ', '
+      'default' => ', ',
     );
 
     $options['field_api_classes'] = array(
diff --git a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
index 1432972b6c..c9cdd9dc64 100644
--- a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
+++ b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
@@ -309,7 +309,7 @@ public function getElements() {
       // @todo Add possible html5 elements.
       $elements = array(
         '' => $this->t('- Use default -'),
-        '0' => $this->t('- None -')
+        '0' => $this->t('- None -'),
       );
       $elements += \Drupal::config('views.settings')->get('field_rewrite_elements');
     }
@@ -1386,7 +1386,7 @@ protected function renderAsLink($alter, $text, $tokens) {
     );
 
     $alter += [
-      'path' => NULL
+      'path' => NULL,
     ];
 
     $path = $alter['path'];
diff --git a/core/modules/views/src/Plugin/views/field/PrerenderList.php b/core/modules/views/src/Plugin/views/field/PrerenderList.php
index aa8f75207e..b7d40bef4a 100644
--- a/core/modules/views/src/Plugin/views/field/PrerenderList.php
+++ b/core/modules/views/src/Plugin/views/field/PrerenderList.php
@@ -78,8 +78,8 @@ public function renderItems($items) {
           '#template' => '{{ items|safe_join(separator) }}',
           '#context' => [
             'items' => $items,
-            'separator' => $this->sanitizeValue($this->options['separator'], 'xss_admin')
-          ]
+            'separator' => $this->sanitizeValue($this->options['separator'], 'xss_admin'),
+          ],
         ];
       }
       else {
diff --git a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
index 5c2a8d8c0f..6a78df1a1a 100644
--- a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
+++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
@@ -1093,7 +1093,7 @@ protected function buildExposedFiltersGroupForm(&$form, FormStateInterface $form
       '#required' => TRUE,
       '#attributes' => array(
         'class' => array('default-radios'),
-      )
+      ),
     );
     // From all groups, let chose which is the default.
     $form['group_info']['default_group_multiple'] = array(
@@ -1102,7 +1102,7 @@ protected function buildExposedFiltersGroupForm(&$form, FormStateInterface $form
       '#default_value' => $this->options['group_info']['default_group_multiple'],
       '#attributes' => array(
         'class' => array('default-checkboxes'),
-      )
+      ),
     );
 
     $form['group_info']['add_group'] = array(
diff --git a/core/modules/views/src/Plugin/views/filter/NumericFilter.php b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
index d1b5257a64..340495e081 100644
--- a/core/modules/views/src/Plugin/views/filter/NumericFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
@@ -197,7 +197,7 @@ protected function valueForm(&$form, FormStateInterface $form_state) {
         '#title' => !$exposed ? $this->t('Min') : $this->exposedInfo()['label'],
         '#size' => 30,
         '#default_value' => $this->value['min'],
-        '#description' => !$exposed ? '' : $this->exposedInfo()['description']
+        '#description' => !$exposed ? '' : $this->exposedInfo()['description'],
       );
       $form['value']['max'] = array(
         '#type' => 'textfield',
@@ -227,7 +227,7 @@ protected function valueForm(&$form, FormStateInterface $form_state) {
         // Ensure there is something in the 'value'.
         $form['value'] = array(
           '#type' => 'value',
-          '#value' => NULL
+          '#value' => NULL,
         );
       }
     }
diff --git a/core/modules/views/src/Plugin/views/filter/StringFilter.php b/core/modules/views/src/Plugin/views/filter/StringFilter.php
index 618b584586..0d79ea5b29 100644
--- a/core/modules/views/src/Plugin/views/filter/StringFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/StringFilter.php
@@ -230,7 +230,7 @@ protected function valueForm(&$form, FormStateInterface $form_state) {
       // Ensure there is something in the 'value'.
       $form['value'] = array(
         '#type' => 'value',
-        '#value' => NULL
+        '#value' => NULL,
       );
     }
   }
diff --git a/core/modules/views/src/Plugin/views/join/JoinPluginBase.php b/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
index 37c1e064b7..8a4529a85f 100644
--- a/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
+++ b/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
@@ -225,7 +225,7 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition
     // Merge in some default values.
     $configuration += array(
       'type' => 'LEFT',
-      'extra_operator' => 'AND'
+      'extra_operator' => 'AND',
     );
     $this->configuration = $configuration;
 
diff --git a/core/modules/views/src/Plugin/views/query/Sql.php b/core/modules/views/src/Plugin/views/query/Sql.php
index cfe593cc2e..32383280c1 100644
--- a/core/modules/views/src/Plugin/views/query/Sql.php
+++ b/core/modules/views/src/Plugin/views/query/Sql.php
@@ -154,7 +154,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
       'link' => NULL,
       'table' => $base_table,
       'alias' => $base_table,
-      'base' => $base_table
+      'base' => $base_table,
     );
 
     // init the table queue with our primary table.
@@ -990,7 +990,7 @@ public function addOrderBy($table, $field = NULL, $order = 'ASC', $alias = '', $
 
     $this->orderby[] = array(
       'field' => $as,
-      'direction' => strtoupper($order)
+      'direction' => strtoupper($order),
     );
   }
 
@@ -1738,7 +1738,7 @@ public function getAggregationInfo() {
           'filter' => 'groupby_numeric',
           'sort' => 'groupby_numeric',
         ),
-      )
+      ),
     );
   }
 
diff --git a/core/modules/views/src/Plugin/views/relationship/EntityReverse.php b/core/modules/views/src/Plugin/views/relationship/EntityReverse.php
index 42d6fa1e74..b6e5c80b37 100644
--- a/core/modules/views/src/Plugin/views/relationship/EntityReverse.php
+++ b/core/modules/views/src/Plugin/views/relationship/EntityReverse.php
@@ -53,7 +53,7 @@ public function query() {
       'left_field' => $left_field,
       'table' => $this->definition['field table'],
       'field' => $this->definition['field field'],
-      'adjusted' => TRUE
+      'adjusted' => TRUE,
     );
     if (!empty($this->options['required'])) {
       $first['type'] = 'INNER';
@@ -81,7 +81,7 @@ public function query() {
       'left_field' => 'entity_id',
       'table' => $this->definition['base'],
       'field' => $this->definition['base field'],
-      'adjusted' => TRUE
+      'adjusted' => TRUE,
     );
 
     if (!empty($this->options['required'])) {
diff --git a/core/modules/views/src/Tests/DefaultViewsTest.php b/core/modules/views/src/Tests/DefaultViewsTest.php
index 5c1f601b20..b519c9fbec 100644
--- a/core/modules/views/src/Tests/DefaultViewsTest.php
+++ b/core/modules/views/src/Tests/DefaultViewsTest.php
@@ -97,7 +97,7 @@ protected function setUp() {
         'status' => CommentInterface::PUBLISHED,
         'entity_id' => $node->id(),
         'entity_type' => 'node',
-        'field_name' => 'comment'
+        'field_name' => 'comment',
       );
       Comment::create($comment)->save();
     }
diff --git a/core/modules/views/src/Tests/Entity/FieldEntityTest.php b/core/modules/views/src/Tests/Entity/FieldEntityTest.php
index 215b631ba9..f44df0e0f8 100644
--- a/core/modules/views/src/Tests/Entity/FieldEntityTest.php
+++ b/core/modules/views/src/Tests/Entity/FieldEntityTest.php
@@ -65,7 +65,7 @@ public function testGetEntity() {
       'uid' => $account->id(),
       'entity_id' => $node->id(),
       'entity_type' => 'node',
-      'field_name' => 'comment'
+      'field_name' => 'comment',
     ));
     $comment->save();
 
diff --git a/core/modules/views/src/Tests/Entity/FilterEntityBundleTest.php b/core/modules/views/src/Tests/Entity/FilterEntityBundleTest.php
index 589c4dc02f..fe1caaafb1 100644
--- a/core/modules/views/src/Tests/Entity/FilterEntityBundleTest.php
+++ b/core/modules/views/src/Tests/Entity/FilterEntityBundleTest.php
@@ -81,7 +81,7 @@ public function testFilterEntity() {
         'node.type.test_bundle_2',
       ],
       'module' => [
-        'node'
+        'node',
       ],
     ];
     $this->assertIdentical($expected, $view->getDependencies());
diff --git a/core/modules/views/src/Tests/FieldApiDataTest.php b/core/modules/views/src/Tests/FieldApiDataTest.php
index 3fd8a03fa3..ddcc75b353 100644
--- a/core/modules/views/src/Tests/FieldApiDataTest.php
+++ b/core/modules/views/src/Tests/FieldApiDataTest.php
@@ -23,7 +23,7 @@ protected function setUp() {
       'field_name' => $field_names[0],
       'entity_type' => 'node',
       'bundle' => 'page',
-      'label' => 'GiraffeA" label'
+      'label' => 'GiraffeA" label',
     );
     FieldConfig::create($field)->save();
 
@@ -33,7 +33,7 @@ protected function setUp() {
       'field_name' => $field_names[0],
       'entity_type' => 'node',
       'bundle' => 'article',
-      'label' => 'GiraffeB" label'
+      'label' => 'GiraffeB" label',
     ])->save();
 
     // Now create some example nodes/users for the view result.
@@ -105,7 +105,7 @@ function testViewsData() {
       'field_name' => $this->fieldStorages[0]->getName(),
       'entity_type' => 'node',
       'bundle' => 'news',
-      'label' => 'GiraffeB" label'
+      'label' => 'GiraffeB" label',
     ])->save();
     $this->container->get('views.views_data')->clear();
     $data = $this->getViewsData();
diff --git a/core/modules/views/src/Tests/GlossaryTest.php b/core/modules/views/src/Tests/GlossaryTest.php
index 2a5bc907c6..89cffc9097 100644
--- a/core/modules/views/src/Tests/GlossaryTest.php
+++ b/core/modules/views/src/Tests/GlossaryTest.php
@@ -40,7 +40,7 @@ public function testGlossaryView() {
     $nodes_by_char = [];
     foreach ($nodes_per_char as $char => $count) {
       $setting = array(
-        'type' => $type->id()
+        'type' => $type->id(),
       );
       for ($i = 0; $i < $count; $i++) {
         $node = $setting;
diff --git a/core/modules/views/src/Tests/Handler/AreaTest.php b/core/modules/views/src/Tests/Handler/AreaTest.php
index 454ab58d0e..57cf8d6b34 100644
--- a/core/modules/views/src/Tests/Handler/AreaTest.php
+++ b/core/modules/views/src/Tests/Handler/AreaTest.php
@@ -40,8 +40,8 @@ protected function viewsData() {
       'title' => 'Test Example area',
       'help' => 'A area handler which just exists for tests.',
       'area' => array(
-        'id' => 'test_example'
-      )
+        'id' => 'test_example',
+      ),
     );
 
     return $data;
diff --git a/core/modules/views/src/Tests/Handler/FieldWebTest.php b/core/modules/views/src/Tests/Handler/FieldWebTest.php
index e85206985a..8152867d0d 100644
--- a/core/modules/views/src/Tests/Handler/FieldWebTest.php
+++ b/core/modules/views/src/Tests/Handler/FieldWebTest.php
@@ -483,7 +483,7 @@ public function testFieldClasses() {
       'p',
       'strong',
       'em',
-      'marquee'
+      'marquee',
     );
 
     $this->assertEqual(array_keys($element_types), $expected_elements);
@@ -580,28 +580,28 @@ public function testTextRendering() {
       array(
         'value' => $random_text_8,
         'trimmed_value' => '',
-        'trimmed' => TRUE
+        'trimmed' => TRUE,
       ),
       // Create one string with two words which doesn't fit both into the limit.
       array(
         'value' => $random_text_8 . ' ' . $random_text_8,
         'trimmed_value' => '',
-        'trimmed' => TRUE
+        'trimmed' => TRUE,
       ),
       // Create one string which contains of two words, of which only the first
       // fits into the limit.
       array(
         'value' => $random_text_4 . ' ' . $random_text_8,
         'trimmed_value' => $random_text_4,
-        'trimmed' => TRUE
+        'trimmed' => TRUE,
       ),
       // Create one string which contains of two words, of which both fits into
       // the limit.
       array(
         'value' => $random_text_2 . ' ' . $random_text_2,
         'trimmed_value' => $random_text_2 . ' ' . $random_text_2,
-        'trimmed' => FALSE
-      )
+        'trimmed' => FALSE,
+      ),
     );
 
     foreach ($tuples as $tuple) {
diff --git a/core/modules/views/src/Tests/Plugin/ArgumentDefaultTest.php b/core/modules/views/src/Tests/Plugin/ArgumentDefaultTest.php
index 5abc27c83c..5ca7f35880 100644
--- a/core/modules/views/src/Tests/Plugin/ArgumentDefaultTest.php
+++ b/core/modules/views/src/Tests/Plugin/ArgumentDefaultTest.php
@@ -55,9 +55,9 @@ public function testArgumentDefaultPlugin() {
     $options = array(
       'default_argument_type' => 'argument_default_test',
       'default_argument_options' => array(
-        'value' => 'John'
+        'value' => 'John',
       ),
-      'default_action' => 'default'
+      'default_action' => 'default',
     );
     $id = $view->addHandler('default', 'argument', 'views_test_data', 'name', $options);
     $view->initHandlers();
diff --git a/core/modules/views/src/Tests/Plugin/CacheWebTest.php b/core/modules/views/src/Tests/Plugin/CacheWebTest.php
index f41e786e46..d1dcc36e65 100644
--- a/core/modules/views/src/Tests/Plugin/CacheWebTest.php
+++ b/core/modules/views/src/Tests/Plugin/CacheWebTest.php
@@ -50,8 +50,8 @@ public function testCacheOutputOnPage() {
       'type' => 'time',
       'options' => array(
         'results_lifespan' => '3600',
-        'output_lifespan' => '3600'
-      )
+        'output_lifespan' => '3600',
+      ),
     ));
     $view->save();
     $this->container->get('router.builder')->rebuildIfNeeded();
@@ -69,7 +69,7 @@ public function testCacheOutputOnPage() {
       'config:user.role.anonymous',
       'config:views.view.test_display',
       'node_list',
-      'rendered'
+      'rendered',
     ];
     $this->assertCacheTags($cache_tags);
 
diff --git a/core/modules/views/src/Tests/Plugin/ContextualFiltersBlockContextTest.php b/core/modules/views/src/Tests/Plugin/ContextualFiltersBlockContextTest.php
index 7fb70580a2..797e808467 100644
--- a/core/modules/views/src/Tests/Plugin/ContextualFiltersBlockContextTest.php
+++ b/core/modules/views/src/Tests/Plugin/ContextualFiltersBlockContextTest.php
@@ -110,7 +110,7 @@ public function testBlockContext() {
       'label_display' => 'visible',
       'views_label' => '',
       'items_per_page' => 'none',
-      'context_mapping' => ['nid' => '@node.node_route_context:node']
+      'context_mapping' => ['nid' => '@node.node_route_context:node'],
     ];
     $this->assertEqual($block->getPlugin()->getConfiguration(), $expected_settings, 'Block settings are correct.');
 
diff --git a/core/modules/views/src/Tests/Plugin/DisplayTest.php b/core/modules/views/src/Tests/Plugin/DisplayTest.php
index 3bbfd66b7a..372c50acd7 100644
--- a/core/modules/views/src/Tests/Plugin/DisplayTest.php
+++ b/core/modules/views/src/Tests/Plugin/DisplayTest.php
@@ -346,7 +346,7 @@ public function testOutputIsEmpty() {
       'table' => 'views_test_data',
       'field' => 'id',
       'id' => 'id',
-      'value' => array('value' => 7297)
+      'value' => array('value' => 7297),
     );
     $view->setHandler('default', 'filter', 'id', $item);
     $this->executeView($view);
diff --git a/core/modules/views/src/Tests/Plugin/ExposedFormTest.php b/core/modules/views/src/Tests/Plugin/ExposedFormTest.php
index 9355373985..51b45b10df 100644
--- a/core/modules/views/src/Tests/Plugin/ExposedFormTest.php
+++ b/core/modules/views/src/Tests/Plugin/ExposedFormTest.php
@@ -104,9 +104,9 @@ public function testExposedIdentifier() {
           'label' => 'Content: Type',
           'operator_id' => 'type_op',
           'reduce' => FALSE,
-          'description' => 'Exposed overridden description'
+          'description' => 'Exposed overridden description',
         ],
-      ]
+      ],
     ));
     $view->save();
     $this->drupalGet('test_exposed_form_buttons', array('query' => array($identifier => 'article')));
@@ -131,9 +131,9 @@ public function testExposedIdentifier() {
           'label' => 'Content: Type',
           'operator_id' => 'type_op',
           'reduce' => FALSE,
-          'description' => 'Exposed overridden description'
+          'description' => 'Exposed overridden description',
         ],
-      ]
+      ],
     ));
     $this->executeView($view);
 
@@ -348,7 +348,7 @@ public function testExposedSortAndItemsPerPage() {
       'entity_test_view_grants',
       'theme',
       'url.query_args',
-      'languages:language_content'
+      'languages:language_content',
     ];
 
     $this->drupalGet('test_exposed_form_sort_items_per_page');
diff --git a/core/modules/views/src/Tests/Plugin/PagerTest.php b/core/modules/views/src/Tests/Plugin/PagerTest.php
index f922748e4d..05484272d7 100644
--- a/core/modules/views/src/Tests/Plugin/PagerTest.php
+++ b/core/modules/views/src/Tests/Plugin/PagerTest.php
@@ -417,7 +417,7 @@ public function testPagerLocale() {
       // Create source string.
       $source = $this->localeStorage->createString(
         array(
-          'source' => $label
+          'source' => $label,
         )
       );
       $source->save();
diff --git a/core/modules/views/src/Tests/Plugin/ViewsBulkTest.php b/core/modules/views/src/Tests/Plugin/ViewsBulkTest.php
index fd98889534..8002bf5911 100644
--- a/core/modules/views/src/Tests/Plugin/ViewsBulkTest.php
+++ b/core/modules/views/src/Tests/Plugin/ViewsBulkTest.php
@@ -41,7 +41,7 @@ public function testBulkSelection() {
     $node_1 = $this->drupalCreateNode([
       'type' => 'page',
       'title' => 'The first node',
-      'changed' => \Drupal::time()->getRequestTime() - 180
+      'changed' => \Drupal::time()->getRequestTime() - 180,
     ]);
 
     // Login as administrator and go to admin/content.
@@ -53,7 +53,7 @@ public function testBulkSelection() {
     $node_2 = $this->drupalCreateNode([
       'type' => 'page',
       'title' => 'The second node',
-      'changed' => \Drupal::time()->getRequestTime() - 120
+      'changed' => \Drupal::time()->getRequestTime() - 120,
     ]);
 
     // Now click 'Apply to selected items' and assert the first node is selected
diff --git a/core/modules/views/src/Tests/Update/ArgumentPlaceholderUpdatePathTest.php b/core/modules/views/src/Tests/Update/ArgumentPlaceholderUpdatePathTest.php
index c42cf19050..1741611530 100644
--- a/core/modules/views/src/Tests/Update/ArgumentPlaceholderUpdatePathTest.php
+++ b/core/modules/views/src/Tests/Update/ArgumentPlaceholderUpdatePathTest.php
@@ -20,7 +20,7 @@ class ArgumentPlaceholderUpdatePathTest extends UpdatePathTestBase {
   protected function setDatabaseDumpFiles() {
     $this->databaseDumpFiles = [
       __DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
-      __DIR__ . '/../../../tests/fixtures/update/argument-placeholder.php'
+      __DIR__ . '/../../../tests/fixtures/update/argument-placeholder.php',
     ];
   }
 
diff --git a/core/modules/views/src/Tests/ViewElementTest.php b/core/modules/views/src/Tests/ViewElementTest.php
index 2ec2e679ad..c56c567318 100644
--- a/core/modules/views/src/Tests/ViewElementTest.php
+++ b/core/modules/views/src/Tests/ViewElementTest.php
@@ -75,7 +75,7 @@ public function testViewElement() {
         'table' => 'views_test_data',
         'field' => 'age',
         'plugin_id' => 'numeric',
-      )
+      ),
     ));
     $view->save();
 
@@ -144,7 +144,7 @@ public function testViewElementEmbed() {
         'table' => 'views_test_data',
         'field' => 'age',
         'plugin_id' => 'numeric',
-      )
+      ),
     ));
     $view->save();
 
diff --git a/core/modules/views/src/Tests/ViewTestData.php b/core/modules/views/src/Tests/ViewTestData.php
index d54902d6a6..97ba598147 100644
--- a/core/modules/views/src/Tests/ViewTestData.php
+++ b/core/modules/views/src/Tests/ViewTestData.php
@@ -105,7 +105,7 @@ public static function schemaDefinition() {
       ),
       'primary key' => array('id'),
       'unique keys' => array(
-        'name' => array('name')
+        'name' => array('name'),
       ),
       'indexes' => array(
         'ages' => array('age'),
diff --git a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php
index c1d04cf0c1..64e64b48cd 100644
--- a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php
+++ b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php
@@ -60,7 +60,7 @@ public function addWhere($group, $field, $value = NULL, $operator = NULL) {
     $this->conditions[] = array(
       'field' => $field,
       'value' => $value,
-      'operator' => $operator
+      'operator' => $operator,
     );
 
   }
diff --git a/core/modules/views/tests/modules/views_test_data/views_test_data.install b/core/modules/views/tests/modules/views_test_data/views_test_data.install
index eeb5faa845..020fd71b67 100644
--- a/core/modules/views/tests/modules/views_test_data/views_test_data.install
+++ b/core/modules/views/tests/modules/views_test_data/views_test_data.install
@@ -29,7 +29,7 @@ function views_test_data_install() {
     'p' => 'P',
     'strong' => 'STRONG',
     'em' => 'EM',
-    'marquee' => 'MARQUEE'
+    'marquee' => 'MARQUEE',
   );
   \Drupal::configFactory()->getEditable('views.settings')->set('field_rewrite_elements', $values)->save();
 }
diff --git a/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php b/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php
index f97659a7f0..e03025c15e 100644
--- a/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php
+++ b/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php
@@ -90,7 +90,7 @@ public function testGetDependencies() {
         'comment',
         'node',
         'user',
-      ]
+      ],
     ];
     // Tests dependencies of relationships.
     $expected['test_relationship_dependency'] = [
@@ -98,7 +98,7 @@ public function testGetDependencies() {
         'comment',
         'node',
         'user',
-      ]
+      ],
     ];
     $expected['test_plugin_dependencies'] = [
       'module' => [
@@ -109,24 +109,24 @@ public function testGetDependencies() {
         'RowTest',
         'StaticTest',
         'StyleTest',
-      ]
+      ],
     ];
 
     $expected['test_argument_dependency'] = [
       'config' => [
         'core.entity_view_mode.node.teaser',
-        'field.storage.node.body'
+        'field.storage.node.body',
       ],
       'content' => [
         'ArgumentDefaultTest',
-        'ArgumentValidatorTest'
+        'ArgumentValidatorTest',
       ],
       'module' => [
         'node',
         // The argument handler is provided by the search module.
         'search',
         'text',
-        'user'
+        'user',
       ],
     ];
 
@@ -146,24 +146,24 @@ public function testGetDependencies() {
       ],
       'content' => [
         'ArgumentDefaultTest',
-        'ArgumentValidatorTest'
+        'ArgumentValidatorTest',
       ],
       'module' => [
         'core',
         'node',
         'search',
         'user',
-        'views'
+        'views',
       ],
     ];
     $expected_display['page'] = [
       'config' => [
-        'field.storage.node.body'
+        'field.storage.node.body',
       ],
       'module' => [
         'core',
         'text',
-        'views'
+        'views',
       ],
     ];
 
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
index 12f68ede74..b64eed2ee7 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
@@ -62,7 +62,7 @@ function testSimple() {
         'table' => 'views',
         'field' => 'counter',
         'relationship' => 'none',
-        'counter_start' => $rand_start
+        'counter_start' => $rand_start,
       ),
       'name' => array(
         'id' => 'name',
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
index c82fc69380..8125a7892f 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
@@ -82,7 +82,7 @@ protected function setUp($import_test_views = TRUE) {
       $this->testUsers[$i] = User::create([
         'name' => 'test ' . $i,
         'timezone' => User::getAllowedTimezones()[$i],
-        'created' => REQUEST_TIME - rand(0, 3600)
+        'created' => REQUEST_TIME - rand(0, 3600),
       ]);
       $this->testUsers[$i]->save();
     }
@@ -279,8 +279,8 @@ public function testAttachedRender() {
     $render = $executable->display_handler->render();
     $expected_attachments = [
       'library' => [
-        'views/views.module'
-      ]
+        'views/views.module',
+      ],
     ];
     foreach ($this->entities as $entity) {
       $expected_attachments['library'][] = 'foo/fake_library';
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
index be8a4f1331..2f5bf9987f 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
@@ -809,7 +809,7 @@ public function testTrimText() {
       'khoảng cách từ đại lí đến',
       'của hãng bao gồm ba dòng',
       'сд асд асд ас',
-      'асд асд асд ас'
+      'асд асд асд ас',
     );
     // Just test maxlength without word boundary.
     $alter = array(
diff --git a/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php b/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php
index cac798555c..6536f3ef17 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php
@@ -41,8 +41,8 @@ public function testArgumentValidatorPlugin() {
     $options = [
       'specify_validation' => TRUE,
       'validate' => [
-        'type' => 'argument_validator_test'
-      ]
+        'type' => 'argument_validator_test',
+      ],
     ];
     $id = $view->addHandler('default', 'argument', 'views_test_data', 'name', $options);
     $view->initHandlers();
diff --git a/core/modules/views/tests/src/Kernel/Plugin/BlockDependenciesTest.php b/core/modules/views/tests/src/Kernel/Plugin/BlockDependenciesTest.php
index 6b5de6e6ae..cdfed50e6b 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/BlockDependenciesTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/BlockDependenciesTest.php
@@ -37,7 +37,7 @@ public function testExposedBlock() {
     $expected = array(
       'config' => array('views.view.test_exposed_block'),
       'module' => array('views'),
-      'theme' => array('stark')
+      'theme' => array('stark'),
     );
     $this->assertIdentical($expected, $dependencies);
   }
@@ -53,7 +53,7 @@ public function testViewsBlock() {
     $expected = array(
       'config' => array('views.view.content_recent'),
       'module' => array('views'),
-      'theme' => array('stark')
+      'theme' => array('stark'),
     );
     $this->assertIdentical($expected, $dependencies);
   }
diff --git a/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php b/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
index 31805d8d87..e00109bf4e 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
@@ -75,7 +75,7 @@ public function testTimeResultCaching() {
       'options' => array(
         'results_lifespan' => '3600',
         'output_lifespan' => '3600',
-      )
+      ),
     ));
 
     // Test the default (non-paged) display.
@@ -189,7 +189,7 @@ public function testTimeResultCachingWithPager() {
       'options' => array(
         'results_lifespan' => '3600',
         'output_lifespan' => '3600',
-      )
+      ),
     ));
 
     $mapping = ['views_test_data_name' => 'name'];
@@ -272,7 +272,7 @@ function testHeaderStorage() {
       'type' => 'time',
       'options' => array(
         'output_lifespan' => '3600',
-      )
+      ),
     ));
 
     $output = $view->buildRenderable();
@@ -331,7 +331,7 @@ public function testCacheData() {
       'options' => array(
         'results_lifespan' => '3600',
         'output_lifespan' => '3600',
-      )
+      ),
     ));
     $this->executeView($view);
 
diff --git a/core/modules/views/tests/src/Kernel/Plugin/Display/ViewsMenuLinkTest.php b/core/modules/views/tests/src/Kernel/Plugin/Display/ViewsMenuLinkTest.php
index 9e05ebcfba..9925c96964 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/Display/ViewsMenuLinkTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/Display/ViewsMenuLinkTest.php
@@ -17,7 +17,7 @@ class ViewsMenuLinkTest extends ViewsKernelTestBase {
   public static $modules = [
     'menu_ui',
     'user',
-    'views'
+    'views',
   ];
 
   /**
diff --git a/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php b/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
index db0262a1db..2e6603e438 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
@@ -130,12 +130,12 @@ public function testBasePlugin() {
     $configuration['extra'] = array(
       array(
         'field' => 'name',
-        'value' => $random_name_1
+        'value' => $random_name_1,
       ),
       array(
         'field' => 'name',
         'value' => $random_name_2,
-        'operator' => '<>'
+        'operator' => '<>',
       ),
     );
     $join = $this->manager->createInstance('standard', $configuration);
@@ -157,7 +157,7 @@ public function testBasePlugin() {
     $configuration['extra'] = array(
       array(
         'field' => 'name',
-        'value' => $random_name_1
+        'value' => $random_name_1,
       ),
       array(
         'field' => 'name',
@@ -179,7 +179,7 @@ public function testBasePlugin() {
     $configuration['extra'] = array(
       array(
         'field' => 'langcode',
-        'value' => 'en'
+        'value' => 'en',
       ),
       array(
         'left_field' => 'status',
@@ -188,7 +188,7 @@ public function testBasePlugin() {
       ),
       array(
         'field' => 'name',
-        'left_field' => 'name'
+        'left_field' => 'name',
       ),
     );
     $join = $this->manager->createInstance('standard', $configuration);
diff --git a/core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php b/core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php
index cf604f9359..87bba77aa5 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php
@@ -53,7 +53,7 @@ protected function schemaDefinition() {
       'type' => 'int',
       'unsigned' => TRUE,
       'not null' => TRUE,
-      'default' => 0
+      'default' => 0,
     );
 
     return $schema;
@@ -72,8 +72,8 @@ protected function viewsData() {
       'relationship' => array(
         'id' => 'standard',
         'base' => 'users_field_data',
-        'base field' => 'uid'
-      )
+        'base field' => 'uid',
+      ),
     );
 
     return $data;
diff --git a/core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php b/core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php
index 846da660d1..97f541ded9 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php
@@ -78,8 +78,8 @@ public function testRelationshipQuery() {
     $expected_result = array(
       array(
         'name' => 'John',
-        'uid' => 1
-      )
+        'uid' => 1,
+      ),
     );
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
     $view->destroy();
@@ -101,8 +101,8 @@ public function testRelationshipQuery() {
     $expected_result = array(
       array(
         'name' => 'John',
-        'uid' => 1
-      )
+        'uid' => 1,
+      ),
     );
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
     $view->destroy();
diff --git a/core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php b/core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php
index d06ae66ba2..26cdc00324 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php
@@ -103,7 +103,7 @@ public function testBuildWithTitleOverride() {
         'title' => 'Overridden title',
         'default_argument_type' => 'fixed',
         'default_argument_options' => [
-          'argument' => 'fixed'
+          'argument' => 'fixed',
         ],
         'validate' => array(
           'type' => 'none',
@@ -113,7 +113,7 @@ public function testBuildWithTitleOverride() {
         'table' => 'views_test_data',
         'field' => 'name',
         'plugin_id' => 'string',
-      )
+      ),
     ));
     $view->save();
 
diff --git a/core/modules/views/tests/src/Kernel/ViewStorageTest.php b/core/modules/views/tests/src/Kernel/ViewStorageTest.php
index fa264bd731..65ecb22779 100644
--- a/core/modules/views/tests/src/Kernel/ViewStorageTest.php
+++ b/core/modules/views/tests/src/Kernel/ViewStorageTest.php
@@ -183,22 +183,22 @@ protected function displayMethodTests() {
         'display_plugin' => 'page',
         'id' => 'page_2',
         'display_title' => 'Page 1',
-        'position' => 1
+        'position' => 1,
       ),
       'feed_1' => array(
         'display_options' => array('path' => 'test.xml'),
         'display_plugin' => 'feed',
         'id' => 'feed',
         'display_title' => 'Feed',
-        'position' => 2
+        'position' => 2,
       ),
       'page_2' => array(
         'display_options' => array('path' => 'test/%/extra'),
         'display_plugin' => 'page',
         'id' => 'page_2',
         'display_title' => 'Page 2',
-        'position' => 3
-      )
+        'position' => 3,
+      ),
     );
     $view = $this->controller->create($config);
 
@@ -275,8 +275,8 @@ protected function displayMethodTests() {
 
     $options = array(
       'alter' => array(
-        'text' => $this->randomMachineName()
-      )
+        'text' => $this->randomMachineName(),
+      ),
     );
     $id2 = $view->addHandler($display_id, 'field', 'views_test_data', 'name', $options);
     $item2 = $view->getHandler($display_id, 'field', 'name');
@@ -296,7 +296,7 @@ protected function displayMethodTests() {
     $item = array(
       'alter' => array(
         'text' => $this->randomMachineName(),
-      )
+      ),
     ) + $item1;
     $expected_items[$id1] = $item;
     $view->setHandler($display_id, 'field', $id1, $item);
diff --git a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
index 1b163e2047..df285b968b 100644
--- a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
+++ b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
@@ -299,7 +299,7 @@ public function testRevisionTableWithRevisionDataTableAndDataTable() {
     $this->assertCount(1, $revision_field_data['table']['join']);
     $this->assertEquals([
       'entity_test_mul_property_data' => [
-        'left_field' => 'revision_id', 'field' => 'revision_id', 'type' => 'INNER'
+        'left_field' => 'revision_id', 'field' => 'revision_id', 'type' => 'INNER',
       ],
     ], $revision_field_data['table']['join']);
 
@@ -307,7 +307,7 @@ public function testRevisionTableWithRevisionDataTableAndDataTable() {
     $this->assertCount(1, $revision_base_data['table']['join']);
     $this->assertEquals([
       'entity_test_mulrev_property_revision' => [
-        'left_field' => 'revision_id', 'field' => 'revision_id', 'type' => 'INNER'
+        'left_field' => 'revision_id', 'field' => 'revision_id', 'type' => 'INNER',
       ],
     ], $revision_base_data['table']['join']);
 
@@ -343,7 +343,7 @@ public function testRevisionTableWithRevisionDataTable() {
     $this->assertCount(1, $revision_field_data['table']['join']);
     $this->assertEquals([
       'entity_test_mulrev_field_data' => [
-        'left_field' => 'revision_id', 'field' => 'revision_id', 'type' => 'INNER'
+        'left_field' => 'revision_id', 'field' => 'revision_id', 'type' => 'INNER',
       ],
     ], $revision_field_data['table']['join']);
 
@@ -351,7 +351,7 @@ public function testRevisionTableWithRevisionDataTable() {
     $this->assertCount(1, $revision_base_data['table']['join']);
     $this->assertEquals([
       'entity_test_mulrev_property_revision' => [
-        'left_field' => 'revision_id', 'field' => 'revision_id', 'type' => 'INNER'
+        'left_field' => 'revision_id', 'field' => 'revision_id', 'type' => 'INNER',
       ],
     ], $revision_base_data['table']['join']);
     $this->assertFalse(isset($data['data_table']));
@@ -444,7 +444,7 @@ public function testBaseTableFields() {
         ->setLabel('ID')
         ->setDescription('The ID of the user entity.')
         ->setReadOnly(TRUE)
-        ->setSetting('unsigned', TRUE)
+        ->setSetting('unsigned', TRUE),
     ];
     $this->entityManager->expects($this->any())
       ->method('getBaseFieldDefinitions')
@@ -561,7 +561,7 @@ public function testDataTableFields() {
         ->setLabel('ID')
         ->setDescription('The ID of the user entity.')
         ->setReadOnly(TRUE)
-        ->setSetting('unsigned', TRUE)
+        ->setSetting('unsigned', TRUE),
     ];
     $entity_test_type = new ConfigEntityType(['id' => 'entity_test_bundle']);
 
@@ -712,7 +712,7 @@ public function testRevisionTableFields() {
         ->setLabel('ID')
         ->setDescription('The ID of the user entity.')
         ->setReadOnly(TRUE)
-        ->setSetting('unsigned', TRUE)
+        ->setSetting('unsigned', TRUE),
     ];
     $this->entityManager->expects($this->any())
       ->method('getBaseFieldDefinitions')
diff --git a/core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php b/core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php
index af9a683f0b..5b8b45f8c6 100644
--- a/core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php
@@ -39,7 +39,7 @@ class ViewsLocalTaskTest extends UnitTestCase {
 
   protected $baseDefinition = array(
     'class' => '\Drupal\views\Plugin\Menu\LocalTask\ViewsLocalTask',
-    'deriver' => '\Drupal\views\Plugin\Derivative\ViewsLocalTask'
+    'deriver' => '\Drupal\views\Plugin\Derivative\ViewsLocalTask',
   );
 
   /**
diff --git a/core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php b/core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php
index 12b7ca1998..84b5d89549 100644
--- a/core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php
@@ -44,7 +44,7 @@ public function testGetEntityTypeForFieldOnBaseTable() {
       ->method('get')
       ->with('test_entity_type_table')
       ->willReturn([
-        'table' => ['entity type' => 'test_entity_type']
+        'table' => ['entity type' => 'test_entity_type'],
       ]);
     $handler->setViewsData($this->viewsData);
 
diff --git a/core/modules/views/tests/src/Unit/Plugin/area/ViewTest.php b/core/modules/views/tests/src/Unit/Plugin/area/ViewTest.php
index f472ab2845..5f542a80ee 100644
--- a/core/modules/views/tests/src/Unit/Plugin/area/ViewTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/area/ViewTest.php
@@ -54,7 +54,7 @@ public function testCalculateDependencies() {
       ->method('load')
       ->willReturnMap([
         ['this', $view_this],
-        ['other', $view_other]
+        ['other', $view_other],
     ]);
     $this->viewHandler->view->storage = $view_this;
 
diff --git a/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php b/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php
index 2b929f3608..b12b49ce41 100644
--- a/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php
@@ -118,7 +118,7 @@ public function testConstruct() {
   public function testDefineOptionsWithNoOptions() {
     $definition = [
       'entity_type' => 'test_entity',
-      'field_name' => 'title'
+      'field_name' => 'title',
     ];
     $handler = new EntityField([], 'field', $definition, $this->entityManager, $this->formatterPluginManager, $this->fieldTypePluginManager, $this->languageManager, $this->renderer);
 
@@ -147,7 +147,7 @@ public function testDefineOptionsWithDefaultFormatterOnFieldDefinition() {
       'entity_type' => 'test_entity',
       'field_name' => 'title',
       'default_formatter' => 'test_example',
-      'default_formatter_settings' => ['link_to_entity' => TRUE]
+      'default_formatter_settings' => ['link_to_entity' => TRUE],
     ];
     $handler = new EntityField([], 'field', $definition, $this->entityManager, $this->formatterPluginManager, $this->fieldTypePluginManager, $this->languageManager, $this->renderer);
 
@@ -174,7 +174,7 @@ public function testDefineOptionsWithDefaultFormatterOnFieldType() {
     $definition = [
       'entity_type' => 'test_entity',
       'field_name' => 'title',
-      'default_formatter_settings' => ['link_to_entity' => TRUE]
+      'default_formatter_settings' => ['link_to_entity' => TRUE],
     ];
     $handler = new EntityField([], 'field', $definition, $this->entityManager, $this->formatterPluginManager, $this->fieldTypePluginManager, $this->languageManager, $this->renderer);
 
@@ -200,7 +200,7 @@ public function testDefineOptionsWithDefaultFormatterOnFieldType() {
   public function testCalculateDependenciesWithBaseField() {
     $definition = [
       'entity_type' => 'test_entity',
-      'field_name' => 'title'
+      'field_name' => 'title',
     ];
     $handler = new EntityField([], 'field', $definition, $this->entityManager, $this->formatterPluginManager, $this->fieldTypePluginManager, $this->languageManager, $this->renderer);
 
@@ -222,7 +222,7 @@ public function testCalculateDependenciesWithBaseField() {
   public function testCalculateDependenciesWithConfiguredField() {
     $definition = [
       'entity_type' => 'test_entity',
-      'field_name' => 'body'
+      'field_name' => 'body',
     ];
     $handler = new EntityField([], 'field', $definition, $this->entityManager, $this->formatterPluginManager, $this->fieldTypePluginManager, $this->languageManager, $this->renderer);
 
@@ -263,7 +263,7 @@ public function testAccess() {
       ->method('get')
       ->with('test_entity_table')
       ->willReturn([
-        'table' => ['entity type' => 'test_entity']
+        'table' => ['entity type' => 'test_entity'],
       ]);
 
     $access_control_handler = $this->getMock('Drupal\Core\Entity\EntityAccessControlHandlerInterface');
diff --git a/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php b/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php
index f137105ddb..e03a39d7c1 100644
--- a/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php
@@ -195,7 +195,7 @@ public function providerTestHasMoreRecords() {
       // Now we are on the second page, which has just a single one left.
       array(5, 6, 1, FALSE),
       // Increase the total items, so we have some available on the third page.
-      array(5, 12, 1, TRUE)
+      array(5, 12, 1, TRUE),
     );
   }
 
diff --git a/core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php b/core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php
index 5457baa636..7d96a0d470 100644
--- a/core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php
@@ -116,7 +116,7 @@ public function testRenderWithDestination() {
 
     $expected_build = array(
       '#type' => 'operations',
-      '#links' => $operations
+      '#links' => $operations,
     );
     $expected_build['#links']['foo']['query'] = ['destination' => 'foobar'];
     $build = $this->plugin->render($result);
@@ -158,7 +158,7 @@ public function testRenderWithoutDestination() {
 
     $expected_build = array(
       '#type' => 'operations',
-      '#links' => $operations
+      '#links' => $operations,
     );
     $build = $this->plugin->render($result);
     $this->assertSame($expected_build, $build);
diff --git a/core/modules/views/tests/src/Unit/PluginBaseTest.php b/core/modules/views/tests/src/Unit/PluginBaseTest.php
index ef19e1168c..3efb9b6dbb 100644
--- a/core/modules/views/tests/src/Unit/PluginBaseTest.php
+++ b/core/modules/views/tests/src/Unit/PluginBaseTest.php
@@ -102,7 +102,7 @@ public function providerTestUnpackOptions() {
       'expected' => array(
         'key' => 'value2',
       ),
-      ''
+      '',
     );
     // Set no storage but an options value, so the options value should be kept.
     $test_parameters[] = array(
diff --git a/core/modules/views/tests/src/Unit/ViewExecutableTest.php b/core/modules/views/tests/src/Unit/ViewExecutableTest.php
index fe64ec2788..9e4700b0d8 100644
--- a/core/modules/views/tests/src/Unit/ViewExecutableTest.php
+++ b/core/modules/views/tests/src/Unit/ViewExecutableTest.php
@@ -296,7 +296,7 @@ public function testBuildThemeFunctions() {
     unset($view->display_handler);
     $expected = [
       'test_hook__test_view',
-      'test_hook'
+      'test_hook',
     ];
     $this->assertEquals($expected, $view->buildThemeFunctions('test_hook'));
 
@@ -308,7 +308,7 @@ public function testBuildThemeFunctions() {
       'test_hook__two',
       'test_hook__and_three',
       'test_hook__test_view',
-      'test_hook'
+      'test_hook',
     ];
     $this->assertEquals($expected, $view->buildThemeFunctions('test_hook'));
 
@@ -324,7 +324,7 @@ public function testBuildThemeFunctions() {
       'test_hook__test_view__default2',
       'test_hook__default2',
       'test_hook__test_view',
-      'test_hook'
+      'test_hook',
     ];
     $this->assertEquals($expected, $view->buildThemeFunctions('test_hook'));
   }
diff --git a/core/modules/views/tests/src/Unit/ViewsTest.php b/core/modules/views/tests/src/Unit/ViewsTest.php
index 00476c50d1..e94068f051 100644
--- a/core/modules/views/tests/src/Unit/ViewsTest.php
+++ b/core/modules/views/tests/src/Unit/ViewsTest.php
@@ -123,7 +123,7 @@ public function testGetApplicableViews($applicable_type, $expected) {
         'type_a' => [
           'display_plugin' => 'type_a',
           'display_options' => [
-            'enabled' => FALSE
+            'enabled' => FALSE,
           ],
         ],
         // Type D intentionally doesn't exist.
diff --git a/core/modules/views/views.module b/core/modules/views/views.module
index 96e6dd3dcb..7875af7d21 100644
--- a/core/modules/views/views.module
+++ b/core/modules/views/views.module
@@ -118,7 +118,7 @@ function views_theme($existing, $type, $theme, $path) {
     'exposed_form' => array('view' => NULL, 'options' => NULL),
     'pager' => array(
       'view' => NULL, 'options' => NULL,
-      'tags' => array(), 'quantity' => 9, 'element' => 0, 'parameters' => array()
+      'tags' => array(), 'quantity' => 9, 'element' => 0, 'parameters' => array(),
     ),
   );
 
diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc
index 8dcdf672b0..551bded4c4 100644
--- a/core/modules/views/views.theme.inc
+++ b/core/modules/views/views.theme.inc
@@ -573,12 +573,12 @@ function template_preprocess_views_view_table(&$variables) {
           if (!empty($column_reference['content']) && !empty($options['info'][$column]['separator'])) {
             $column_reference['content'][] = [
               'separator' => ['#markup' => $options['info'][$column]['separator']],
-              'field_output' => ['#markup' => $field_output]
+              'field_output' => ['#markup' => $field_output],
             ];
           }
           else {
             $column_reference['content'][] = [
-              'field_output' => ['#markup' => $field_output]
+              'field_output' => ['#markup' => $field_output],
             ];
           }
         }
diff --git a/core/modules/views_ui/admin.inc b/core/modules/views_ui/admin.inc
index fd031d2427..5fc6bb027c 100644
--- a/core/modules/views_ui/admin.inc
+++ b/core/modules/views_ui/admin.inc
@@ -285,7 +285,7 @@ function views_ui_build_form_url(FormStateInterface $form_state) {
   $route_parameters = [
     'js' => $ajax,
     'view' => $name,
-    'display_id' => $display_id
+    'display_id' => $display_id,
   ];
   $url = Url::fromRoute($route_name, $route_parameters);
   if ($type = $form_state->get('type')) {
diff --git a/core/modules/views_ui/src/Form/AdvancedSettingsForm.php b/core/modules/views_ui/src/Form/AdvancedSettingsForm.php
index 88661a775a..1a71425822 100644
--- a/core/modules/views_ui/src/Form/AdvancedSettingsForm.php
+++ b/core/modules/views_ui/src/Form/AdvancedSettingsForm.php
@@ -76,7 +76,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
         '#default_value' => array_filter($config->get('display_extenders')),
         '#options' => $options,
         '#type' => 'checkboxes',
-        '#description' => $this->t('Select extensions of the views interface.')
+        '#description' => $this->t('Select extensions of the views interface.'),
       );
     }
 
diff --git a/core/modules/views_ui/src/Form/Ajax/Rearrange.php b/core/modules/views_ui/src/Form/Ajax/Rearrange.php
index 0487769501..c37a011ab6 100644
--- a/core/modules/views_ui/src/Form/Ajax/Rearrange.php
+++ b/core/modules/views_ui/src/Form/Ajax/Rearrange.php
@@ -83,7 +83,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
           'action' => 'order',
           'relationship' => 'sibling',
           'group' => 'weight',
-        )
+        ),
       ),
       '#tree' => TRUE,
       '#prefix' => '<div class="scroll" data-drupal-views-scroll>',
diff --git a/core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php b/core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php
index 7d1285f80d..facdf9412d 100644
--- a/core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php
+++ b/core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php
@@ -42,7 +42,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
     ]);
     $form['view'] = array(
       '#type' => 'value',
-      '#value' => $view
+      '#value' => $view,
     );
 
     $displays = $view->get('display');
@@ -66,7 +66,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
           'action' => 'order',
           'relationship' => 'sibling',
           'group' => 'weight',
-        )
+        ),
       ),
       '#tree' => TRUE,
       '#prefix' => '<div class="scroll" data-drupal-views-scroll>',
diff --git a/core/modules/views_ui/src/Tests/DisplayPathTest.php b/core/modules/views_ui/src/Tests/DisplayPathTest.php
index 8baa50649a..5931b164a8 100644
--- a/core/modules/views_ui/src/Tests/DisplayPathTest.php
+++ b/core/modules/views_ui/src/Tests/DisplayPathTest.php
@@ -199,7 +199,7 @@ public function testDefaultMenuTabRegression() {
     $edit = [
       'title[0][value]' => 'Menu title',
       'link[0][uri]' => '/admin/foo',
-      'menu_parent' => 'admin:system.admin'
+      'menu_parent' => 'admin:system.admin',
     ];
     $this->drupalPostForm('admin/structure/menu/manage/admin/add', $edit, t('Save'));
 
diff --git a/core/modules/views_ui/src/Tests/DisplayTest.php b/core/modules/views_ui/src/Tests/DisplayTest.php
index 7f5f12547b..992e57f925 100644
--- a/core/modules/views_ui/src/Tests/DisplayTest.php
+++ b/core/modules/views_ui/src/Tests/DisplayTest.php
@@ -54,7 +54,7 @@ public function testAddDisplay() {
    */
   public function testReorderDisplay() {
     $view = array(
-      'block[create]' => TRUE
+      'block[create]' => TRUE,
     );
     $view = $this->randomView($view);
 
@@ -69,7 +69,7 @@ public function testReorderDisplay() {
     // Put the block display in front of the page display.
     $edit = array(
       'displays[page_1][weight]' => 2,
-      'displays[block_1][weight]' => 1
+      'displays[block_1][weight]' => 1,
     );
     $this->drupalPostForm(NULL, $edit, t('Apply'));
     $this->drupalPostForm(NULL, array(), t('Save'));
diff --git a/core/modules/views_ui/src/Tests/HandlerTest.php b/core/modules/views_ui/src/Tests/HandlerTest.php
index bc61a37056..ae81a7f613 100644
--- a/core/modules/views_ui/src/Tests/HandlerTest.php
+++ b/core/modules/views_ui/src/Tests/HandlerTest.php
@@ -51,7 +51,7 @@ protected function schemaDefinition() {
       'type' => 'int',
       'unsigned' => TRUE,
       'not null' => TRUE,
-      'default' => 0
+      'default' => 0,
     );
 
     return $schema;
@@ -72,8 +72,8 @@ protected function viewsData() {
       'relationship' => array(
         'id' => 'standard',
         'base' => 'users_field_data',
-        'base field' => 'uid'
-      )
+        'base field' => 'uid',
+      ),
     );
 
     // Create a dummy field with no help text.
@@ -178,14 +178,14 @@ public function testHandlerHelpEscaping() {
       'field_name' => 'field_test',
       'entity_type' => 'node',
       'bundle' => 'page',
-      'label' => 'The giraffe" label'
+      'label' => 'The giraffe" label',
     ])->save();
 
     FieldConfig::create([
       'field_name' => 'field_test',
       'entity_type' => 'node',
       'bundle' => 'article',
-      'label' => 'The <em>giraffe"</em> label <script>alert("the return of the xss")</script>'
+      'label' => 'The <em>giraffe"</em> label <script>alert("the return of the xss")</script>',
     ])->save();
 
     $this->drupalGet('admin/structure/views/nojs/add-handler/content/default/field');
diff --git a/core/modules/views_ui/src/Tests/RowUITest.php b/core/modules/views_ui/src/Tests/RowUITest.php
index 188e0b51a2..328af64bd3 100644
--- a/core/modules/views_ui/src/Tests/RowUITest.php
+++ b/core/modules/views_ui/src/Tests/RowUITest.php
@@ -34,13 +34,13 @@ public function testRowUI() {
     $this->assertFieldByName('row[type]', 'fields', 'The default row plugin selected in the UI should be fields.');
 
     $edit = array(
-      'row[type]' => 'test_row'
+      'row[type]' => 'test_row',
     );
     $this->drupalPostForm(NULL, $edit, t('Apply'));
     $this->assertFieldByName('row_options[test_option]', NULL, 'Make sure the custom settings form from the test plugin appears.');
     $random_name = $this->randomMachineName();
     $edit = array(
-      'row_options[test_option]' => $random_name
+      'row_options[test_option]' => $random_name,
     );
     $this->drupalPostForm(NULL, $edit, t('Apply'));
     $this->drupalGet($row_options_url);
diff --git a/core/modules/views_ui/src/Tests/StyleUITest.php b/core/modules/views_ui/src/Tests/StyleUITest.php
index f83cb0391f..b3fd9afc16 100644
--- a/core/modules/views_ui/src/Tests/StyleUITest.php
+++ b/core/modules/views_ui/src/Tests/StyleUITest.php
@@ -33,13 +33,13 @@ public function testStyleUI() {
     $this->assertFieldByName('style[type]', 'default', 'The default style plugin selected in the UI should be unformatted list.');
 
     $edit = array(
-      'style[type]' => 'test_style'
+      'style[type]' => 'test_style',
     );
     $this->drupalPostForm(NULL, $edit, t('Apply'));
     $this->assertFieldByName('style_options[test_option]', NULL, 'Make sure the custom settings form from the test plugin appears.');
     $random_name = $this->randomMachineName();
     $edit = array(
-      'style_options[test_option]' => $random_name
+      'style_options[test_option]' => $random_name,
     );
     $this->drupalPostForm(NULL, $edit, t('Apply'));
     $this->drupalGet($style_options_url);
diff --git a/core/modules/views_ui/src/Tests/ViewsUITourTest.php b/core/modules/views_ui/src/Tests/ViewsUITourTest.php
index ccc0f296d7..1634074a9d 100644
--- a/core/modules/views_ui/src/Tests/ViewsUITourTest.php
+++ b/core/modules/views_ui/src/Tests/ViewsUITourTest.php
@@ -76,7 +76,7 @@ public function testViewsUiTourTipsTranslated() {
     foreach ($handler_titles as $handler_title) {
       // Create source string.
       $source = $this->localeStorage->createString(array(
-        'source' => $handler_title
+        'source' => $handler_title,
       ));
       $source->save();
       $this->createTranslation($source, $langcode);
diff --git a/core/modules/views_ui/src/ViewPreviewForm.php b/core/modules/views_ui/src/ViewPreviewForm.php
index 7b779297de..1357ac6b89 100644
--- a/core/modules/views_ui/src/ViewPreviewForm.php
+++ b/core/modules/views_ui/src/ViewPreviewForm.php
@@ -75,7 +75,7 @@ protected function actions(array $form, FormStateInterface $form_state) {
     return array(
       '#attributes' => array(
         'id' => 'preview-submit-wrapper',
-        'class' => array('preview-submit-wrapper')
+        'class' => array('preview-submit-wrapper'),
       ),
       'button' => array(
         '#type' => 'submit',
diff --git a/core/modules/views_ui/src/ViewUI.php b/core/modules/views_ui/src/ViewUI.php
index cb222b0b44..eb82a5a00e 100644
--- a/core/modules/views_ui/src/ViewUI.php
+++ b/core/modules/views_ui/src/ViewUI.php
@@ -710,7 +710,7 @@ public function renderPreview($display_id, $args = array()) {
                 'data' => array(
                   '#markup' => $path,
                 ),
-              )
+              ),
             );
           }
           if ($show_stats) {
diff --git a/core/modules/views_ui/tests/src/Unit/ViewListBuilderTest.php b/core/modules/views_ui/tests/src/Unit/ViewListBuilderTest.php
index 9b646964eb..b5bac6d2d7 100644
--- a/core/modules/views_ui/tests/src/Unit/ViewListBuilderTest.php
+++ b/core/modules/views_ui/tests/src/Unit/ViewListBuilderTest.php
@@ -48,7 +48,7 @@ public function testBuildRowEntityList() {
             'theme' => 'views_view',
             'no_ui' => TRUE,
             'admin' => '',
-          )
+          ),
         ),
         array(
           'page',
@@ -61,7 +61,7 @@ public function testBuildRowEntityList() {
             'contextual_links_locations' => array('page'),
             'theme' => 'views_view',
             'admin' => 'Page admin label',
-          )
+          ),
         ),
         array(
           'embed',
@@ -71,7 +71,7 @@ public function testBuildRowEntityList() {
             'title' => 'embed',
             'theme' => 'views_view',
             'admin' => 'Embed admin label',
-          )
+          ),
         ),
       )));
 
diff --git a/core/modules/views_ui/views_ui.module b/core/modules/views_ui/views_ui.module
index 511bcf942d..47d35e5d00 100644
--- a/core/modules/views_ui/views_ui.module
+++ b/core/modules/views_ui/views_ui.module
@@ -135,7 +135,7 @@ function views_ui_preprocess_views_view(&$variables) {
   // Render title for the admin preview.
   if (!empty($view->live_preview)) {
     $variables['title'] = [
-      '#markup' => $view->getTitle()
+      '#markup' => $view->getTitle(),
     ];
   }
 
diff --git a/core/modules/views_ui/views_ui.theme.inc b/core/modules/views_ui/views_ui.theme.inc
index 926f82ab30..b14b4b799b 100644
--- a/core/modules/views_ui/views_ui.theme.inc
+++ b/core/modules/views_ui/views_ui.theme.inc
@@ -184,7 +184,7 @@ function template_preprocess_views_ui_build_group_filter_form(&$variables) {
         'action' => 'order',
         'relationship' => 'sibling',
         'group' => 'weight',
-      )
+      ),
     ),
   );
 
@@ -353,7 +353,7 @@ function template_preprocess_views_ui_rearrange_filter_form(&$variables) {
           'action' => 'order',
           'relationship' => 'sibling',
           'group' => 'weight',
-        )
+        ),
       ),
     );
   }
diff --git a/core/modules/workflows/src/Form/WorkflowEditForm.php b/core/modules/workflows/src/Form/WorkflowEditForm.php
index 6b01920ada..2c55423652 100644
--- a/core/modules/workflows/src/Form/WorkflowEditForm.php
+++ b/core/modules/workflows/src/Form/WorkflowEditForm.php
@@ -43,7 +43,7 @@ public function form(array $form, FormStateInterface $form_state) {
     $header = [
       'state' => $this->t('State'),
       'weight' => $this->t('Weight'),
-      'operations' => $this->t('Operations')
+      'operations' => $this->t('Operations'),
     ];
     $form['states_container'] = [
       '#type' => 'details',
@@ -84,14 +84,14 @@ public function form(array $form, FormStateInterface $form_state) {
           'title' => $this->t('Edit'),
           'url' => Url::fromRoute('entity.workflow.edit_state_form', ['workflow' => $workflow->id(), 'workflow_state' => $state->id()]),
           'attributes' => ['aria-label' => $this->t('Edit @state state', ['@state' => $state->label()])],
-        ]
+        ],
       ];
       if ($this->entity->access('delete-state:' . $state->id())) {
         $links['delete'] = [
           'title' => t('Delete'),
           'url' => Url::fromRoute('entity.workflow.delete_state_form', [
             'workflow' => $workflow->id(),
-            'workflow_state' => $state->id()
+            'workflow_state' => $state->id(),
           ]),
           'attributes' => ['aria-label' => $this->t('Delete @state state', ['@state' => $state->label()])],
         ];
@@ -122,7 +122,7 @@ public function form(array $form, FormStateInterface $form_state) {
       'weight' => $this->t('Weight'),
       'from' => $this->t('From'),
       'to' => $this->t('To'),
-      'operations' => $this->t('Operations')
+      'operations' => $this->t('Operations'),
     ];
     $form['transitions_container'] = [
       '#type' => 'details',
diff --git a/core/modules/workflows/src/Form/WorkflowStateEditForm.php b/core/modules/workflows/src/Form/WorkflowStateEditForm.php
index 75af1d6b40..200f8c6ab4 100644
--- a/core/modules/workflows/src/Form/WorkflowStateEditForm.php
+++ b/core/modules/workflows/src/Form/WorkflowStateEditForm.php
@@ -75,14 +75,14 @@ public function form(array $form, FormStateInterface $form_state) {
         'title' => $this->t('Edit'),
         'url' => Url::fromRoute('entity.workflow.edit_transition_form', [
           'workflow' => $workflow->id(),
-          'workflow_transition' => $transition->id()
+          'workflow_transition' => $transition->id(),
         ]),
       ];
       $links['delete'] = [
         'title' => t('Delete'),
         'url' => Url::fromRoute('entity.workflow.delete_transition_form', [
           'workflow' => $workflow->id(),
-          'workflow_transition' => $transition->id()
+          'workflow_transition' => $transition->id(),
         ]),
       ];
       $form['transitions'][$transition->id()] = [
@@ -157,8 +157,8 @@ protected function actions(array $form, FormStateInterface $form_state) {
       ],
       '#url' => Url::fromRoute('entity.workflow.delete_state_form', [
         'workflow' => $this->entity->id(),
-        'workflow_state' => $this->stateId
-      ])
+        'workflow_state' => $this->stateId,
+      ]),
     ];
 
     return $actions;
diff --git a/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php b/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php
index b6f65a48a8..7b5a709084 100644
--- a/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php
+++ b/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php
@@ -161,8 +161,8 @@ protected function actions(array $form, FormStateInterface $form_state) {
       ],
       '#url' => Url::fromRoute('entity.workflow.delete_transition_form', [
         'workflow' => $this->entity->id(),
-        'workflow_transition' => $this->transitionId
-      ])
+        'workflow_transition' => $this->transitionId,
+      ]),
     ];
 
     return $actions;
diff --git a/core/modules/workflows/src/WorkflowListBuilder.php b/core/modules/workflows/src/WorkflowListBuilder.php
index 3e94103f4b..5ac9cce780 100644
--- a/core/modules/workflows/src/WorkflowListBuilder.php
+++ b/core/modules/workflows/src/WorkflowListBuilder.php
@@ -73,7 +73,7 @@ public function buildRow(EntityInterface $entity) {
     $row['label'] = $entity->label();
 
     $row['type']['data'] = [
-      '#markup' => $entity->getTypePlugin()->label()
+      '#markup' => $entity->getTypePlugin()->label(),
     ];
 
     $items = array_map([State::class, 'labelCallback'], $entity->getStates());
diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist
index 9ad822f390..6505a22601 100644
--- a/core/phpcs.xml.dist
+++ b/core/phpcs.xml.dist
@@ -12,6 +12,11 @@
 
   <!-- Only include specific sniffs that pass. This ensures that, if new sniffs are added, HEAD does not fail.-->
   <!-- Drupal sniffs -->
+  <rule ref="Drupal.Array.Array">
+    <exclude name="Drupal.Array.Array.ArrayClosingIndentation"/>
+    <exclude name="Drupal.Array.Array.ArrayIndentation"/>
+    <exclude name="Drupal.Array.Array.LongLineDeclaration"/>
+  </rule>
   <rule ref="Drupal.Classes.ClassCreateInstance"/>
   <rule ref="Drupal.Classes.ClassDeclaration"/>
   <rule ref="Drupal.Classes.FullyQualifiedNamespace"/>
diff --git a/core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php b/core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php
index c52e3ea853..4ceebf5b9b 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php
@@ -21,7 +21,7 @@ class CacheabilityMetadataConfigOverrideTest extends KernelTestBase {
     'config',
     'config_override_test',
     'system',
-    'user'
+    'user',
   ];
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php
index 1c26774a6b..5ed6ead9ec 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php
@@ -50,9 +50,9 @@ public function testDependencyManagement() {
         'id' => 'entity1',
         'dependencies' => array(
           'enforced' => array(
-            'module' => array('node')
-          )
-        )
+            'module' => array('node'),
+          ),
+        ),
       )
     );
     $entity1->save();
@@ -198,7 +198,7 @@ public function testConfigEntityUninstall() {
         'id' => 'entity1',
         'dependencies' => array(
           'enforced' => array(
-            'module' => array('node', 'config_test')
+            'module' => array('node', 'config_test'),
           ),
         ),
       )
@@ -262,7 +262,7 @@ public function testConfigEntityUninstallComplex(array $entity_id_suffixes) {
         'id' => 'entity_' . $entity_id_suffixes[0],
         'dependencies' => array(
           'enforced' => array(
-            'module' => array('node', 'config_test')
+            'module' => array('node', 'config_test'),
           ),
         ),
       )
@@ -307,7 +307,7 @@ public function testConfigEntityUninstallComplex(array $entity_id_suffixes) {
         'dependencies' => array(
           'enforced' => array(
             'config' => array($entity_1->getConfigDependencyName()),
-            'module' => array('node', 'config_test')
+            'module' => array('node', 'config_test'),
           ),
         ),
       )
@@ -476,7 +476,7 @@ public function testConfigEntityDelete() {
     // Test dependencies between configuration entities.
     $entity1 = $storage->create(
       array(
-        'id' => 'entity1'
+        'id' => 'entity1',
       )
     );
     $entity1->save();
@@ -589,7 +589,7 @@ public function testContentEntityDelete() {
         'id' => 'entity1',
         'dependencies' => array(
           'enforced' => array(
-            'content' => array($content_entity->getConfigDependencyName())
+            'content' => array($content_entity->getConfigDependencyName()),
           ),
         ),
       )
@@ -600,7 +600,7 @@ public function testContentEntityDelete() {
         'id' => 'entity2',
         'dependencies' => array(
           'enforced' => array(
-            'config' => array($entity1->getConfigDependencyName())
+            'config' => array($entity1->getConfigDependencyName()),
           ),
         ),
       )
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php
index bfa823383d..4289ee871a 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php
@@ -31,7 +31,7 @@ public function testNormalize() {
     $config = $this->config('config_test.dynamic.system');
     $data = array(
       'label' => 'foobar',
-      'additional_key' => TRUE
+      'additional_key' => TRUE,
     ) + $config->getRawData();
     $config->setData($data)->save();
     $this->assertNotIdentical($config_entity->toArray(), $config->getRawData(), 'Stored config entity is not is equivalent to config schema.');
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php
index 04c12c41e9..dba7d854b8 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php
@@ -97,7 +97,7 @@ public function testStorageMethods() {
     $entity = $this->storage->create(array(
       'id' => $this->randomMachineName(),
       'label' => $this->randomString(),
-      'style' => 999
+      'style' => 999,
     ));
     $entity->save();
     $this->assertIdentical('999', $entity->style);
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php
index 48b9c4675d..7444027e2b 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php
@@ -106,7 +106,7 @@ public function testRenameValidation() {
     catch (ConfigImporterException $e) {
       $this->pass('Expected ConfigImporterException thrown when a renamed configuration entity does not match the existing entity type.');
       $expected = array(
-        SafeMarkup::format('Entity type mismatch on rename. @old_type not equal to @new_type for existing configuration @old_name and staged configuration @new_name.', array('@old_type' => 'node_type', '@new_type' => 'config_test', '@old_name' => 'node.type.' . $content_type->id(), '@new_name' => 'config_test.dynamic.' . $test_entity_id))
+        SafeMarkup::format('Entity type mismatch on rename. @old_type not equal to @new_type for existing configuration @old_name and staged configuration @new_name.', array('@old_type' => 'node_type', '@new_type' => 'config_test', '@old_name' => 'node.type.' . $content_type->id(), '@new_name' => 'config_test.dynamic.' . $test_entity_id)),
       );
       $this->assertEqual($expected, $this->configImporter->getErrors());
     }
@@ -135,7 +135,7 @@ public function testRenameSimpleConfigValidation() {
     // UUIDs match.
     $this->configImporter->reset();
     $expected = array(
-      'config_test.old::config_test.new'
+      'config_test.old::config_test.new',
     );
     $renames = $this->configImporter->getUnprocessedConfiguration('rename');
     $this->assertIdentical($expected, $renames);
@@ -149,7 +149,7 @@ public function testRenameSimpleConfigValidation() {
     catch (ConfigImporterException $e) {
       $this->pass('Expected ConfigImporterException thrown when simple configuration is renamed.');
       $expected = array(
-        SafeMarkup::format('Rename operation for simple configuration. Existing configuration @old_name and staged configuration @new_name.', array('@old_name' => 'config_test.old', '@new_name' => 'config_test.new'))
+        SafeMarkup::format('Rename operation for simple configuration. Existing configuration @old_name and staged configuration @new_name.', array('@old_name' => 'config_test.old', '@new_name' => 'config_test.new')),
       );
       $this->assertEqual($expected, $this->configImporter->getErrors());
     }
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
index bde5644ec6..709ae298a0 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
@@ -226,7 +226,7 @@ function testSecondaryWritePrimaryFirst() {
       // Add a dependency on primary, to ensure that is synced first.
       'dependencies' => array(
         'config' => array($name_primary),
-      )
+      ),
     );
     $sync->write($name_secondary, $values_secondary);
 
@@ -265,7 +265,7 @@ function testSecondaryWriteSecondaryFirst() {
       // Add a dependency on secondary, so that is synced first.
       'dependencies' => array(
         'config' => array($name_secondary),
-      )
+      ),
     );
     $sync->write($name_primary, $values_primary);
     $values_secondary = array(
@@ -322,7 +322,7 @@ function testSecondaryUpdateDeletedDeleterFirst() {
       // Add a dependency on deleter, to make sure that is synced first.
       'dependencies' => array(
         'config' => array($name_deleter),
-      )
+      ),
     );
     $storage->write($name_deletee, $values_deletee);
     $values_deletee['label'] = 'Updated Deletee';
@@ -338,7 +338,7 @@ function testSecondaryUpdateDeletedDeleterFirst() {
       // will also be synced after the deletee due to alphabetical ordering.
       'dependencies' => array(
         'config' => array($name_deleter),
-      )
+      ),
     );
     $storage->write($name_other, $values_other);
     $values_other['label'] = 'Updated other';
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
index 8a39d64edc..77abe1d59f 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
@@ -338,7 +338,7 @@ public function testConfigSaveWithSchema() {
       // If the config schema doesn't have a type it shouldn't be casted.
       'no_type' => 1,
       'mapping' => array(
-        'string' => 1
+        'string' => 1,
       ),
       'float' => '3.14',
       'null_float' => '',
@@ -361,7 +361,7 @@ public function testConfigSaveWithSchema() {
       'boolean' => TRUE,
       'no_type' => 1,
       'mapping' => array(
-        'string' => '1'
+        'string' => '1',
       ),
       'float' => 3.14,
       'null_float' => NULL,
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php b/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
index c2d737bfb8..18e4731b71 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
@@ -65,7 +65,7 @@ protected function setUp() {
 
     for ($i = 1; $i < 3; $i++) {
       $entity = EntityTest::create(array(
-        'name' => $this->randomMachineName()
+        'name' => $this->randomMachineName(),
       ));
       $entity->save();
       $this->referencedEntities[] = $entity;
@@ -297,7 +297,7 @@ public function testInvalidEntityAutocompleteElement() {
     $form_state = (new FormState())
       ->setValues([
         'single_no_validate' => 'single - non-existent label',
-        'single_autocreate_no_validate' => 'single - autocreate non-existent label'
+        'single_autocreate_no_validate' => 'single - autocreate non-existent label',
       ]);
     $form_builder->submitForm($this, $form_state);
 
@@ -309,7 +309,7 @@ public function testInvalidEntityAutocompleteElement() {
     $form_state = (new FormState())
       ->setValues([
         'single_no_validate' => 'single - non-existent label (42)',
-        'single_autocreate_no_validate' => 'single - autocreate non-existent label (43)'
+        'single_autocreate_no_validate' => 'single - autocreate non-existent label (43)',
       ]);
     $form_builder->submitForm($this, $form_state);
 
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
index 8c79c5c634..99694e17ac 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
@@ -105,11 +105,11 @@ protected function setUp() {
     // to their langcode.
     $units[] = array($greetings, 'tr', array(
       'value' => 'merhaba',
-      'format' => 'format-tr'
+      'format' => 'format-tr',
     ));
     $units[] = array($greetings, 'pl', array(
       'value' => 'siema',
-      'format' => 'format-pl'
+      'format' => 'format-pl',
     ));
     // Make these languages available to the greetings field.
     ConfigurableLanguage::createFromLangcode('tr')->save();
@@ -667,7 +667,7 @@ public function testCaseSensitivity() {
       'translatable' => FALSE,
       'settings' => array(
         'case_sensitive' => FALSE,
-      )
+      ),
     ));
     $field_storage->save();
 
@@ -713,7 +713,7 @@ public function testCaseSensitivity() {
       'name' => $this->randomMachineName(),
       'langcode' => 'en',
       'field_ci' => $fixtures[0]['uppercase'] . $fixtures[1]['lowercase'],
-      'field_cs' => $fixtures[0]['uppercase'] . $fixtures[1]['lowercase']
+      'field_cs' => $fixtures[0]['uppercase'] . $fixtures[1]['lowercase'],
     ))->save();
 
     // Check the case insensitive field, = operator.
@@ -904,7 +904,7 @@ public function testForwardRevisions() {
     $entity->isDefaultRevision(FALSE);
     $entity->{$this->figures}->setValue([
       'color' => 'red',
-      'shape' => 'square'
+      'shape' => 'square',
     ]);
     $entity->save();
 
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php
index cb82742faa..96c4d0b035 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php
@@ -212,7 +212,7 @@ public function testReferencedEntitiesStringId() {
     // Create the default target entity.
     $target_entity = EntityTestStringId::create([
       'id' => $this->randomString(),
-      'type' => $this->bundle
+      'type' => $this->bundle,
     ]);
     $target_entity->save();
 
@@ -381,7 +381,7 @@ public function testTargetEntityNoLoad() {
     $definitions = array(
       'target_reference' => BaseFieldDefinition::create('entity_reference')
         ->setSetting('target_type', $entity_type->id())
-        ->setSetting('handler', 'default')
+        ->setSetting('handler', 'default'),
     );
     $this->state->set('entity_test_update.additional_base_field_definitions', $definitions);
     $this->entityManager->clearCachedDefinitions();
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php b/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
index 449f3f2384..c796e364ef 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
@@ -89,7 +89,7 @@ protected function setUp() {
     $this->fieldStorage->save();
     $this->field = FieldConfig::create([
       'field_storage' => $this->fieldStorage,
-      'bundle' => $entity_type
+      'bundle' => $entity_type,
     ]);
     $this->field->save();
 
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php
index 50d173bc28..5bf25391ef 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php
@@ -143,7 +143,7 @@ public function testValidationWithCompositeConstraint() {
    */
   public function testEntityLevelConstraintValidation() {
     $entity = EntityTestCompositeConstraint::create([
-      'name' => 'entity-level-violation'
+      'name' => 'entity-level-violation',
     ]);
     $entity->save();
 
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php b/core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php
index df9f4b1337..d68a1f5ac8 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/RouteProviderTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
 
     /** @var \Drupal\user\RoleInterface $role */
     $role = Role::create([
-      'id' => RoleInterface::ANONYMOUS_ID
+      'id' => RoleInterface::ANONYMOUS_ID,
     ]);
     $role
       ->grantPermission('administer entity_test content')
diff --git a/core/tests/Drupal/KernelTests/Core/Field/FieldSettingsTest.php b/core/tests/Drupal/KernelTests/Core/Field/FieldSettingsTest.php
index a55888f616..a50b4ebc03 100644
--- a/core/tests/Drupal/KernelTests/Core/Field/FieldSettingsTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Field/FieldSettingsTest.php
@@ -54,7 +54,7 @@ public function testConfigurableFieldStorageSettings() {
     $field_storage = FieldStorageConfig::create([
       'field_name' => 'test_field',
       'entity_type' => 'entity_test',
-      'type' => 'test_field'
+      'type' => 'test_field',
     ]);
 
     // Check that the default settings have been populated.
@@ -81,11 +81,11 @@ public function testConfigurableFieldSettings() {
     $field_storage = FieldStorageConfig::create([
       'field_name' => 'test_field',
       'entity_type' => 'entity_test',
-      'type' => 'test_field'
+      'type' => 'test_field',
     ]);
     $field = FieldConfig::create([
       'field_storage' => $field_storage,
-      'bundle' => 'entity_test'
+      'bundle' => 'entity_test',
     ]);
     // Note: FieldConfig does not populate default settings until the config
     // is saved.
diff --git a/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php b/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php
index 9bfe681544..ea74660cd6 100644
--- a/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php
@@ -62,7 +62,7 @@ public function testFileMimeTypeDetection() {
       'extensions' => array(
          'jar' => 0,
          'jpg' => 1,
-      )
+      ),
     );
 
     $test_case = array(
diff --git a/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php b/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php
index fe36c3dc8a..fd0c45966d 100644
--- a/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php
@@ -119,7 +119,7 @@ function testManipulations() {
       'gif' => IMAGETYPE_GIF,
       'jpeg' => IMAGETYPE_JPEG,
       'jpg' => IMAGETYPE_JPEG,
-      'jpe' => IMAGETYPE_JPEG
+      'jpe' => IMAGETYPE_JPEG,
     ];
     $image = $this->imageFactory->get();
     foreach ($expected_image_types as $extension => $expected_image_type) {
@@ -262,7 +262,7 @@ function testManipulations() {
             array_fill(0, 3, 76) + array(3 => 0),
             array_fill(0, 3, 149) + array(3 => 0),
             array_fill(0, 3, 29) + array(3 => 0),
-            array_fill(0, 3, 225) + array(3 => 127)
+            array_fill(0, 3, 225) + array(3 => 127),
           ),
         ),
       );
diff --git a/core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php b/core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php
index 0f9e5b696a..36412e9beb 100644
--- a/core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Render/Element/TableTest.php
@@ -266,7 +266,7 @@ public function testThemeTableRowRenderArray() {
       array(
         '1-one',
         array(
-          'data' => '1-two'
+          'data' => '1-two',
         ),
         '1-three',
       ),
diff --git a/core/tests/Drupal/KernelTests/Core/Render/RenderTest.php b/core/tests/Drupal/KernelTests/Core/Render/RenderTest.php
index 8860c19a15..a1b23a43a6 100644
--- a/core/tests/Drupal/KernelTests/Core/Render/RenderTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Render/RenderTest.php
@@ -36,7 +36,7 @@ function testDrupalRenderThemePreprocessAttached() {
       'library' => [
         'test/generic_preprocess',
         'test/specific_preprocess',
-      ]
+      ],
     ];
     $this->assertEqual($expected_attached, $test_element['#attached'], 'All expected assets from theme preprocess hooks attached.');
 
diff --git a/core/tests/Drupal/KernelTests/Core/Site/SettingsRewriteTest.php b/core/tests/Drupal/KernelTests/Core/Site/SettingsRewriteTest.php
index 948236bc41..a576c78ae5 100644
--- a/core/tests/Drupal/KernelTests/Core/Site/SettingsRewriteTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Site/SettingsRewriteTest.php
@@ -111,7 +111,7 @@ function testDrupalRewriteSettings() {
           'required' => TRUE,
         ),
       ),
-      'expected' => '$no_index = true;'
+      'expected' => '$no_index = true;',
     );
     // Make an empty file.
     $filename = Settings::get('file_public_path', $site_path . '/files') . '/mock_settings.php';
diff --git a/core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php b/core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php
index 748e2bbc6f..d190cc5343 100644
--- a/core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php
+++ b/core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php
@@ -19,7 +19,7 @@ class TranslationStringTest extends KernelTestBase {
    * @var array
    */
   public static $modules = [
-    'language'
+    'language',
   ];
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Theme/StableTemplateOverrideTest.php b/core/tests/Drupal/KernelTests/Core/Theme/StableTemplateOverrideTest.php
index 40d31e6dac..859387d87b 100644
--- a/core/tests/Drupal/KernelTests/Core/Theme/StableTemplateOverrideTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Theme/StableTemplateOverrideTest.php
@@ -24,7 +24,7 @@ class StableTemplateOverrideTest extends KernelTestBase {
    */
   protected $templatesToSkip = [
     'views-form-views-form',
-    'entity-moderation-form'
+    'entity-moderation-form',
   ];
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/Theme/ThemeRenderAndAutoescapeTest.php b/core/tests/Drupal/KernelTests/Core/Theme/ThemeRenderAndAutoescapeTest.php
index 98423ca072..fc19a6e2fd 100644
--- a/core/tests/Drupal/KernelTests/Core/Theme/ThemeRenderAndAutoescapeTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Theme/ThemeRenderAndAutoescapeTest.php
@@ -73,7 +73,7 @@ public function providerTestThemeRenderAndAutoescape() {
       'type markup with EM tags is rendered' => [['#markup' => '<em>hi</em>'], '<em>hi</em>'],
       'SCRIPT tag in string is escaped' => [
         '<script>alert(123)</script>',
-        Html::escape('<script>alert(123)</script>')
+        Html::escape('<script>alert(123)</script>'),
       ],
       'type plain_text render array EM tag is escaped' => [['#plain_text' => '<em>hi</em>'], Html::escape('<em>hi</em>')],
       'type hidden render array is rendered' => [['#type' => 'hidden', '#name' => 'foo', '#value' => 'bar'], "<input type=\"hidden\" name=\"foo\" value=\"bar\" />\n"],
diff --git a/core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php b/core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php
index 2e6e5a4028..0c476abbf9 100644
--- a/core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php
@@ -30,7 +30,7 @@ class TwigMarkupInterfaceTest extends KernelTestBase {
    * @var array
    */
   public static $modules = [
-    'language'
+    'language',
   ];
 
   /**
diff --git a/core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php b/core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php
index 078cb7a79f..8d6c99a8e5 100644
--- a/core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php
+++ b/core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php
@@ -37,7 +37,7 @@ public function testValidation() {
       ->setPropertyDefinition('key', DataDefinition::create('integer'))
       ->addConstraint('ComplexData', array(
         'key' => array(
-          'AllowedValues' => array(1, 2, 3)
+          'AllowedValues' => array(1, 2, 3),
         ),
       ));
 
@@ -67,7 +67,7 @@ public function testValidation() {
       ->setPropertyDefinition('key', DataDefinition::create('integer'))
       ->addConstraint('ComplexData', array(
         'key' => array(
-          'NotNull' => array()
+          'NotNull' => array(),
         ),
       ));
 
diff --git a/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php b/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php
index 08f27b3689..d8205637c8 100644
--- a/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php
+++ b/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php
@@ -470,7 +470,7 @@ public function testTypedDataMaps() {
     $this->assertEqual($value, array(
       'one' => 'uno',
       'two' => 'zwei',
-      'three' => 'drei'
+      'three' => 'drei',
     ));
 
     $properties = $typed_data->getProperties();
diff --git a/core/tests/Drupal/Tests/BrowserTestBase.php b/core/tests/Drupal/Tests/BrowserTestBase.php
index d4968f44b2..16282f8aae 100644
--- a/core/tests/Drupal/Tests/BrowserTestBase.php
+++ b/core/tests/Drupal/Tests/BrowserTestBase.php
@@ -271,7 +271,7 @@ protected function initMink() {
     }
 
     $selectors_handler = new SelectorsHandler([
-      'hidden_field_selector' => new HiddenFieldSelector()
+      'hidden_field_selector' => new HiddenFieldSelector(),
     ]);
     $session = new Session($driver, $selectors_handler);
     $this->mink = new Mink();
diff --git a/core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php b/core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php
index 1299cd6421..e2b8d26edb 100644
--- a/core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php
+++ b/core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php
@@ -159,7 +159,7 @@ public function testAllCallable() {
       [__CLASS__, 'callMeStatic'],
       function() {
         return TRUE;
-      }
+      },
     ]));
 
     $this->assertFalse(Inspector::assertAllCallable([
@@ -169,7 +169,7 @@ function() {
       function() {
         return TRUE;
       },
-      "I'm not callable"
+      "I'm not callable",
     ]));
   }
 
diff --git a/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php b/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php
index c818bc6a77..1a93b3ba68 100644
--- a/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php
+++ b/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php
@@ -953,7 +953,7 @@ protected function getMockContainerDefinition() {
       'arguments' => array(),
       'configurator' => array(
         $this->getServiceCall('configurator'),
-        'configureService'
+        'configureService',
       ),
     );
     $services['configurable_service_exception'] = array(
diff --git a/core/tests/Drupal/Tests/Component/FileSystem/RegexDirectoryIteratorTest.php b/core/tests/Drupal/Tests/Component/FileSystem/RegexDirectoryIteratorTest.php
index 6a9cd0caca..a029c07a79 100644
--- a/core/tests/Drupal/Tests/Component/FileSystem/RegexDirectoryIteratorTest.php
+++ b/core/tests/Drupal/Tests/Component/FileSystem/RegexDirectoryIteratorTest.php
@@ -91,7 +91,7 @@ public function providerTestRegexDirectoryIterator() {
         [
           '1.yml',
           '2.yml',
-          '3.txt'
+          '3.txt',
         ],
       ],
       [
diff --git a/core/tests/Drupal/Tests/Component/Serialization/YamlTestBase.php b/core/tests/Drupal/Tests/Component/Serialization/YamlTestBase.php
index d2b504ecae..dcd28248a4 100644
--- a/core/tests/Drupal/Tests/Component/Serialization/YamlTestBase.php
+++ b/core/tests/Drupal/Tests/Component/Serialization/YamlTestBase.php
@@ -35,7 +35,7 @@ public function providerEncodeDecodeTests() {
         [10],
         [0 => '123456'],
       ],
-      [NULL]
+      [NULL],
     ];
   }
 
diff --git a/core/tests/Drupal/Tests/Component/Utility/ColorTest.php b/core/tests/Drupal/Tests/Component/Utility/ColorTest.php
index c65bf55a09..243ab675c4 100644
--- a/core/tests/Drupal/Tests/Component/Utility/ColorTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/ColorTest.php
@@ -56,7 +56,7 @@ public function providerTestHexToRgb() {
     // Add invalid data types (hex value must be a string).
     foreach (array(
       1, 12, 1234, 12345, 123456, 1234567, 12345678, 123456789, 123456789,
-      -1, PHP_INT_MAX, PHP_INT_MAX + 1, -PHP_INT_MAX, 0x0, 0x010
+      -1, PHP_INT_MAX, PHP_INT_MAX + 1, -PHP_INT_MAX, 0x0, 0x010,
     ) as $value) {
       $invalid[] = array($value, '', TRUE);
     }
diff --git a/core/tests/Drupal/Tests/Component/Utility/NestedArrayTest.php b/core/tests/Drupal/Tests/Component/Utility/NestedArrayTest.php
index 92db2ac8ac..4e720c80da 100644
--- a/core/tests/Drupal/Tests/Component/Utility/NestedArrayTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/NestedArrayTest.php
@@ -265,10 +265,10 @@ public function testFilter($array, $callable, $expected) {
   public function providerTestFilter() {
     $data = [];
     $data['1d-array'] = [
-      [0, 1, '', TRUE], NULL, [1 => 1, 3 => TRUE]
+      [0, 1, '', TRUE], NULL, [1 => 1, 3 => TRUE],
     ];
     $data['1d-array-callable'] = [
-      [0, 1, '', TRUE], function ($element) { return $element === ''; }, [2 => '']
+      [0, 1, '', TRUE], function ($element) { return $element === ''; }, [2 => ''],
     ];
     $data['2d-array'] = [
       [[0, 1, '', TRUE], [0, 1, 2, 3]], NULL, [0 => [1 => 1, 3 => TRUE], 1 => [1 => 1, 2 => 2, 3 => 3]],
diff --git a/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php b/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php
index 3ff7ed1cf4..cd60d9371b 100644
--- a/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php
@@ -49,42 +49,42 @@ public function providerSortByWeightElement() {
     $tests[] = array(
       array('weight' => 1),
       array('weight' => 1),
-      0
+      0,
     );
 
     // Weights set and $a is less (lighter) than $b.
     $tests[] = array(
       array('weight' => 1),
       array('weight' => 2),
-      -1
+      -1,
     );
 
     // Weights set and $a is greater (heavier) than $b.
     $tests[] = array(
       array('weight' => 2),
       array('weight' => 1),
-      1
+      1,
     );
 
     // Weights not set.
     $tests[] = array(
       array(),
       array(),
-      0
+      0,
     );
 
     // Weights for $b not set.
     $tests[] = array(
       array('weight' => 1),
       array(),
-      1
+      1,
     );
 
     // Weights for $a not set.
     $tests[] = array(
       array(),
       array('weight' => 1),
-      -1
+      -1,
     );
 
     return $tests;
@@ -125,42 +125,42 @@ public function providerSortByWeightProperty() {
     $tests[] = array(
       array('#weight' => 1),
       array('#weight' => 1),
-      0
+      0,
     );
 
     // Weights set and $a is less (lighter) than $b.
     $tests[] = array(
       array('#weight' => 1),
       array('#weight' => 2),
-      -1
+      -1,
     );
 
     // Weights set and $a is greater (heavier) than $b.
     $tests[] = array(
       array('#weight' => 2),
       array('#weight' => 1),
-      1
+      1,
     );
 
     // Weights not set.
     $tests[] = array(
       array(),
       array(),
-      0
+      0,
     );
 
     // Weights for $b not set.
     $tests[] = array(
       array('#weight' => 1),
       array(),
-      1
+      1,
     );
 
     // Weights for $a not set.
     $tests[] = array(
       array(),
       array('#weight' => 1),
-      -1
+      -1,
     );
 
     return $tests;
@@ -201,35 +201,35 @@ public function providerSortByTitleElement() {
     $tests[] = array(
       array('title' => 'test'),
       array('title' => 'test'),
-      0
+      0,
     );
 
     // Title $a not set.
     $tests[] = array(
       array(),
       array('title' => 'test'),
-      -4
+      -4,
     );
 
     // Title $b not set.
     $tests[] = array(
       array('title' => 'test'),
       array(),
-      4
+      4,
     );
 
     // Titles set but not equal.
     $tests[] = array(
       array('title' => 'test'),
       array('title' => 'testing'),
-      -1
+      -1,
     );
 
     // Titles set but not equal.
     $tests[] = array(
       array('title' => 'testing'),
       array('title' => 'test'),
-      1
+      1,
     );
 
     return $tests;
@@ -270,35 +270,35 @@ public function providerSortByTitleProperty() {
     $tests[] = array(
       array('#title' => 'test'),
       array('#title' => 'test'),
-      0
+      0,
     );
 
     // Title $a not set.
     $tests[] = array(
       array(),
       array('#title' => 'test'),
-      -4
+      -4,
     );
 
     // Title $b not set.
     $tests[] = array(
       array('#title' => 'test'),
       array(),
-      4
+      4,
     );
 
     // Titles set but not equal.
     $tests[] = array(
       array('#title' => 'test'),
       array('#title' => 'testing'),
-      -1
+      -1,
     );
 
     // Titles set but not equal.
     $tests[] = array(
       array('#title' => 'testing'),
       array('#title' => 'test'),
-      1
+      1,
     );
 
     return $tests;
diff --git a/core/tests/Drupal/Tests/Component/Utility/XssTest.php b/core/tests/Drupal/Tests/Component/Utility/XssTest.php
index 0b2f51e1f4..37d097830a 100644
--- a/core/tests/Drupal/Tests/Component/Utility/XssTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/XssTest.php
@@ -503,31 +503,31 @@ public function providerTestAttributes() {
         '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt">',
         '<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt">',
         'Image tag with alt and title attribute',
-        array('img')
+        array('img'),
       ),
       array(
         '<a href="https://www.drupal.org/" rel="dc:publisher">Drupal</a>',
         '<a href="https://www.drupal.org/" rel="dc:publisher">Drupal</a>',
         'Link tag with rel attribute',
-        array('a')
+        array('a'),
       ),
       array(
         '<span property="dc:subject">Drupal 8: The best release ever.</span>',
         '<span property="dc:subject">Drupal 8: The best release ever.</span>',
         'Span tag with property attribute',
-        array('span')
+        array('span'),
       ),
       array(
         '<img src="http://example.com/foo.jpg" data-caption="Drupal 8: The best release ever.">',
         '<img src="http://example.com/foo.jpg" data-caption="Drupal 8: The best release ever.">',
         'Image tag with data attribute',
-        array('img')
+        array('img'),
       ),
       array(
         '<a data-a2a-url="foo"></a>',
         '<a data-a2a-url="foo"></a>',
         'Link tag with numeric data attribute',
-        array('a')
+        array('a'),
       ),
     );
   }
diff --git a/core/tests/Drupal/Tests/Core/Annotation/TranslationTest.php b/core/tests/Drupal/Tests/Core/Annotation/TranslationTest.php
index ead56ae425..918ed5397b 100644
--- a/core/tests/Drupal/Tests/Core/Annotation/TranslationTest.php
+++ b/core/tests/Drupal/Tests/Core/Annotation/TranslationTest.php
@@ -55,7 +55,7 @@ public function providerTestGet() {
       array(
         'value' => 'Foo',
       ),
-      'Foo'
+      'Foo',
     );
     $random = $this->randomMachineName();
     $random_html_entity = '&' . $random;
diff --git a/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php b/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php
index 6ed63aa952..74b46a8e8f 100644
--- a/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php
@@ -141,12 +141,12 @@ public function providerAttachedAssets() {
       'same libraries, different timestamps' => [
         (new AttachedAssets())->setAlreadyLoadedLibraries([])->setLibraries(['core/drupal'])->setSettings(['currentTime' => $time]),
         (new AttachedAssets())->setAlreadyLoadedLibraries([])->setLibraries(['core/drupal'])->setSettings(['currentTime' => $time + 100]),
-        1
+        1,
       ],
       'different libraries, same timestamps' => [
         (new AttachedAssets())->setAlreadyLoadedLibraries([])->setLibraries(['core/drupal'])->setSettings(['currenttime' => $time]),
         (new AttachedAssets())->setAlreadyLoadedLibraries([])->setLibraries(['core/drupal', 'core/jquery'])->setSettings(['currentTime' => $time]),
-        2
+        2,
       ],
     ];
   }
diff --git a/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php b/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
index 8602661053..0995b0f1be 100644
--- a/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
@@ -94,7 +94,7 @@ function providerTestRender() {
         '#tag' => 'style',
         '#value' => $value,
         '#attributes' => array(
-          'media' => $media
+          'media' => $media,
         ),
         '#browsers' => $browsers,
       );
@@ -461,7 +461,7 @@ function testRenderInvalidType() {
       'media' => 'all',
       'preprocess' => TRUE,
       'browsers' => array(),
-      'data' => 'http://example.com/popular.js'
+      'data' => 'http://example.com/popular.js',
     );
     $this->renderer->render($css_group);
   }
diff --git a/core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php b/core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php
index 5eecf1cd79..f01ca3159f 100644
--- a/core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php
+++ b/core/tests/Drupal/Tests/Core/Cache/CacheableMetadataTest.php
@@ -128,7 +128,7 @@ public function providerSetCacheMaxAge() {
       [new \stdClass(), TRUE],
       [300, FALSE],
       [[], TRUE],
-      [8.0, TRUE]
+      [8.0, TRUE],
    ];
   }
 
diff --git a/core/tests/Drupal/Tests/Core/Common/AttributesTest.php b/core/tests/Drupal/Tests/Core/Common/AttributesTest.php
index 39d7fc1def..6ce61aa2fe 100644
--- a/core/tests/Drupal/Tests/Core/Common/AttributesTest.php
+++ b/core/tests/Drupal/Tests/Core/Common/AttributesTest.php
@@ -38,7 +38,7 @@ public function providerTestAttributeData() {
           'alt' => 'Alternate',
         ),
         ' id="id-test" class="first last" alt="Alternate"',
-        'Multiple attributes.'
+        'Multiple attributes.',
       ),
       // Verify empty attributes array is rendered.
       array(array(), '', 'Empty attributes array.'),
diff --git a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php
index 4710765dd0..e5bb713a7b 100644
--- a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php
@@ -281,13 +281,13 @@ public function providerCalculateDependenciesWithPluginCollections() {
           'config_dependencies' => array(
             'config' => array($instance_dependency_1),
             'module' => array($instance_dependency_2),
-          )
+          ),
         ),
         array(
           'config' => array($instance_dependency_1),
-          'module' => array($instance_dependency_2, 'test')
-        )
-      )
+          'module' => array($instance_dependency_2, 'test'),
+        ),
+      ),
     );
   }
 
diff --git a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityDependencyTest.php b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityDependencyTest.php
index 5d617ce0c7..5bc0ca64b5 100644
--- a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityDependencyTest.php
+++ b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityDependencyTest.php
@@ -29,7 +29,7 @@ public function testWithDependencies() {
       'dependencies' => array(
         'module' => array(
           'node',
-          'views'
+          'views',
         ),
         'config' => array(
           'config_test.dynamic.entity_id:745b0ce0-aece-42dd-a800-ade5b8455e84',
diff --git a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php
index b131b26a15..f9b2494a3c 100644
--- a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php
+++ b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php
@@ -86,7 +86,7 @@ public function testConstruct() {
   public function testConstructBadStorage() {
     new ConfigEntityType([
       'id' => 'example_config_entity_type',
-      'handlers' => ['storage' => '\Drupal\Core\Entity\KeyValueStore\KeyValueEntityStorage']
+      'handlers' => ['storage' => '\Drupal\Core\Entity\KeyValueStore\KeyValueEntityStorage'],
     ]);
   }
 
diff --git a/core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php b/core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php
index 75fe625347..1ebb16e9b9 100644
--- a/core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php
+++ b/core/tests/Drupal/Tests/Core/Config/Entity/Query/QueryFactoryTest.php
@@ -37,42 +37,42 @@ public function providerTestGetKeys() {
     $tests[] = [
       ['uuid:abc'],
       'uuid',
-      $this->getConfigObject('test')->set('uuid', 'abc')
+      $this->getConfigObject('test')->set('uuid', 'abc'),
     ];
 
     // Tests a lookup being set to a top level key when sub-keys exist.
     $tests[] = [
       [],
       'uuid',
-      $this->getConfigObject('test')->set('uuid.blah', 'abc')
+      $this->getConfigObject('test')->set('uuid.blah', 'abc'),
     ];
 
     // Tests a non existent key.
     $tests[] = [
       [],
       'uuid',
-      $this->getConfigObject('test')
+      $this->getConfigObject('test'),
     ];
 
     // Tests a non existent sub key.
     $tests[] = [
       [],
       'uuid.blah',
-      $this->getConfigObject('test')->set('uuid', 'abc')
+      $this->getConfigObject('test')->set('uuid', 'abc'),
     ];
 
     // Tests a existent sub key.
     $tests[] = [
       ['uuid.blah:abc'],
       'uuid.blah',
-      $this->getConfigObject('test')->set('uuid.blah', 'abc')
+      $this->getConfigObject('test')->set('uuid.blah', 'abc'),
     ];
 
     // One wildcard.
     $tests[] = [
       ['test.*.value:a', 'test.*.value:b'],
       'test.*.value',
-      $this->getConfigObject('test')->set('test.a.value', 'a')->set('test.b.value', 'b')
+      $this->getConfigObject('test')->set('test.a.value', 'a')->set('test.b.value', 'b'),
     ];
 
     // Three wildcards.
@@ -82,14 +82,14 @@ public function providerTestGetKeys() {
       $this->getConfigObject('test')
         ->set('test.a.sub2.a.sub4.a.value', 'aaa')
         ->set('test.a.sub2.a.sub4.b.value', 'aab')
-        ->set('test.b.sub2.a.sub4.b.value', 'bab')
+        ->set('test.b.sub2.a.sub4.b.value', 'bab'),
     ];
 
     // Three wildcards in a row.
     $tests[] = [
       ['test.*.*.*.value:abc', 'test.*.*.*.value:abd'],
       'test.*.*.*.value',
-      $this->getConfigObject('test')->set('test.a.b.c.value', 'abc')->set('test.a.b.d.value', 'abd')
+      $this->getConfigObject('test')->set('test.a.b.c.value', 'abc')->set('test.a.b.d.value', 'abd'),
     ];
 
     return $tests;
diff --git a/core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php b/core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php
index e339af7b8a..d8f285d2ce 100644
--- a/core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php
+++ b/core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php
@@ -63,7 +63,7 @@ protected function getConfigData() {
         'uuid' => $uuid->generate(),
         'dependencies' => array(
           'config' => array(
-            'field.storage.node.body'
+            'field.storage.node.body',
           ),
         ),
       ),
@@ -89,7 +89,7 @@ protected function getConfigData() {
       ),
       // Simple config.
       'system.performance' => array(
-        'stale_file_threshold' => 2592000
+        'stale_file_threshold' => 2592000,
       ),
 
     );
diff --git a/core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php b/core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
index 98a18a3547..f38101ca93 100644
--- a/core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
+++ b/core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
@@ -160,7 +160,7 @@ public function providerTestGetController() {
       // Tests passing a controller via the request.
       array(array('_controller' => 'Drupal\Tests\Core\Controller\MockContainerAware::getResult'), 'Drupal\Tests\Core\Controller\MockContainerAware', 'This is container aware.'),
       // Tests a request with no controller specified.
-      array(array(), FALSE)
+      array(array(), FALSE),
     );
   }
 
diff --git a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
index 6719cbc96f..168c4f4b5a 100644
--- a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
+++ b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
@@ -270,7 +270,7 @@ public function testProcessNoPriorityAndExtraArguments() {
     $container
       ->register('consumer_id', __NAMESPACE__ . '\ValidConsumerWithExtraArguments')
       ->addTag('service_collector', array(
-        'call' => 'addNoPriority'
+        'call' => 'addNoPriority',
       ));
 
     $container
@@ -299,7 +299,7 @@ public function testProcessWithIdAndExtraArguments() {
     $container
       ->register('consumer_id', __NAMESPACE__ . '\ValidConsumerWithExtraArguments')
       ->addTag('service_collector', array(
-        'call' => 'addWithId'
+        'call' => 'addWithId',
       ));
 
     $container
@@ -331,7 +331,7 @@ public function testProcessWithDifferentArgumentsOrderAndDefaultValue() {
     $container
       ->register('consumer_id', __NAMESPACE__ . '\ValidConsumerWithExtraArguments')
       ->addTag('service_collector', array(
-        'call' => 'addWithDifferentOrder'
+        'call' => 'addWithDifferentOrder',
       ));
 
     $container
@@ -339,7 +339,7 @@ public function testProcessWithDifferentArgumentsOrderAndDefaultValue() {
       ->addTag('consumer_id', array(
         'priority' => 0,
         'extra1' => 'extra1',
-        'extra3' => 'extra3'
+        'extra3' => 'extra3',
       ));
 
     $handler_pass = new TaggedHandlersPass();
diff --git a/core/tests/Drupal/Tests/Core/DrupalKernel/DiscoverServiceProvidersTest.php b/core/tests/Drupal/Tests/Core/DrupalKernel/DiscoverServiceProvidersTest.php
index 164da9d954..9913be5895 100644
--- a/core/tests/Drupal/Tests/Core/DrupalKernel/DiscoverServiceProvidersTest.php
+++ b/core/tests/Drupal/Tests/Core/DrupalKernel/DiscoverServiceProvidersTest.php
@@ -21,7 +21,7 @@ class DiscoverServiceProvidersTest extends UnitTestCase {
   public function testDiscoverServiceCustom() {
     new Settings(array(
       'container_yamls' => array(
-        __DIR__ . '/fixtures/custom.yml'
+        __DIR__ . '/fixtures/custom.yml',
       ),
     ));
 
diff --git a/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php b/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php
index 81f1818167..ad9481ff21 100644
--- a/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php
+++ b/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php
@@ -116,7 +116,7 @@ public function providerTestTrustedHosts() {
         'www.example.com',
         'www.example.com',
         'canonical URL is trusted',
-        TRUE
+        TRUE,
       ];
 
       // Tests missing hostname for HTTP/1.0 compatibility where the Host
@@ -128,25 +128,25 @@ public function providerTestTrustedHosts() {
         'example.com',
         'www.example.com',
         'host from settings is trusted',
-        TRUE
+        TRUE,
       ];
       $data[] = [
         'subdomain.example.com',
         'www.example.com',
         'host from settings is trusted',
-        TRUE
+        TRUE,
       ];
       $data[] = [
         'www.example.org',
         'www.example.com',
         'host from settings is trusted',
-        TRUE
+        TRUE,
       ];
       $data[] = [
         'example.org',
         'www.example.com',
         'host from settings is trusted',
-        TRUE
+        TRUE,
       ];
 
       // Tests mismatch.
@@ -154,7 +154,7 @@ public function providerTestTrustedHosts() {
         'www.blackhat.com',
         'www.example.com',
         'unspecified host is untrusted',
-        FALSE
+        FALSE,
       ];
 
       return $data;
@@ -180,8 +180,8 @@ public function testFindSitePath() {
       vfsStream::create(['sites' => [
         'sites.php' => $sites_php,
         'example' => [
-          'settings.php' => 'test'
-        ]
+          'settings.php' => 'test',
+        ],
       ]]);
 
       $request = new Request();
diff --git a/core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php b/core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
index bb4668306b..c5b49c2c24 100644
--- a/core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
@@ -41,7 +41,7 @@ protected function setUp() {
     $this->fieldTypeDefinition = array(
       'id' => $this->fieldType,
       'storage_settings' => array(
-        'some_setting' => 'value 1'
+        'some_setting' => 'value 1',
       ),
       'field_settings' => array(
         'some_instance_setting' => 'value 2',
diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php
index 9d4fc95043..0ad6b66e4c 100644
--- a/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php
@@ -678,7 +678,7 @@ public function testGetFieldMap() {
           'type' => 'string',
           'bundles' => ['second_bundle' => 'second_bundle'],
         ],
-      ]
+      ],
     ];
     $this->assertEquals($expected, $this->entityFieldManager->getFieldMap());
   }
@@ -697,7 +697,7 @@ public function testGetFieldMapFromCache() {
           'type' => 'string',
           'bundles' => ['second_bundle' => 'second_bundle'],
         ],
-      ]
+      ],
     ];
     $this->setUpEntityTypeDefinitions();
     $this->cacheBackend->get('entity_field_map')->willReturn((object) ['data' => $expected]);
diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php
index 1ce87c5402..120a075d27 100644
--- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php
@@ -155,7 +155,7 @@ public function testGetSchemaBase() {
         ),
         'domain' => array(
           'type' => 'varchar',
-        )
+        ),
       ),
       'unique keys' => array(
         'email' => array('username', 'hostname', array('domain', 3)),
@@ -194,7 +194,7 @@ public function testGetSchemaBase() {
         ),
         'city' => array(
           'type' => 'varchar',
-        )
+        ),
       ),
       'indexes' => array(
         'country_state_city' => array('country', 'state', array('city', 10)),
@@ -420,7 +420,7 @@ public function testGetSchemaRevisionable() {
           'revision_id' => array(
             'type' => 'int',
             'not null' => FALSE,
-          )
+          ),
         ),
         'primary key' => array('id'),
         'unique keys' => array(
@@ -431,7 +431,7 @@ public function testGetSchemaRevisionable() {
           'entity_test__revision' => array(
             'table' => 'entity_test_revision',
             'columns' => array('revision_id' => 'revision_id'),
-          )
+          ),
         ),
       ),
       'entity_test_revision' => array(
@@ -524,7 +524,7 @@ public function testGetSchemaTranslatable() {
           'langcode' => array(
             'type' => 'varchar',
             'not null' => TRUE,
-          )
+          ),
         ),
         'primary key' => array('id'),
         'unique keys' => array(),
@@ -652,7 +652,7 @@ public function testGetSchemaRevisionableTranslatable() {
           'langcode' => array(
             'type' => 'varchar',
             'not null' => TRUE,
-          )
+          ),
         ),
         'primary key' => array('id'),
         'unique keys' => array(
@@ -835,7 +835,7 @@ public function testDedicatedTableSchema() {
         'color' => array(
           'table' => 'color',
           'columns' => array(
-            'color' => 'id'
+            'color' => 'id',
           ),
         ),
       ),
@@ -1002,7 +1002,7 @@ public function testDedicatedTableSchemaForEntityWithStringIdentifier() {
         'color' => array(
           'table' => 'color',
           'columns' => array(
-            'color' => 'id'
+            'color' => 'id',
           ),
         ),
       ),
diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php
index 5d56929fb6..92506e14fd 100644
--- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php
@@ -1354,7 +1354,7 @@ protected function setUpModuleHandlerNoImplementations() {
       ->method('getImplementations')
       ->will($this->returnValueMap(array(
         array('entity_load', array()),
-        array($this->entityTypeId . '_load', array())
+        array($this->entityTypeId . '_load', array()),
       )));
 
     $this->container->set('module_handler', $this->moduleHandler);
diff --git a/core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseRelativeUrlFilterTest.php b/core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseRelativeUrlFilterTest.php
index f7179c855b..f24d1a235d 100644
--- a/core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseRelativeUrlFilterTest.php
+++ b/core/tests/Drupal/Tests/Core/EventSubscriber/RssResponseRelativeUrlFilterTest.php
@@ -117,7 +117,7 @@ public function testOnResponse($content, $expected_content) {
       Request::create('/'),
       'foo',
       new Response($content, 200, [
-        'Content-Type' => 'application/rss+xml'
+        'Content-Type' => 'application/rss+xml',
       ])
     );
 
diff --git a/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php b/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
index 2256045bb9..0d929a3bc5 100644
--- a/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
+++ b/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
@@ -40,7 +40,7 @@ protected function setUp() {
         'type' => 'module',
         'pathname' => 'core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.info.yml',
         'filename' => 'module_handler_test.module',
-      )
+      ),
     ), $this->cacheBackend);
   }
 
@@ -92,8 +92,8 @@ public function testModuleReloading() {
             'type' => 'module',
             'pathname' => 'core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.info.yml',
             'filename' => 'module_handler_test.module',
-          )
-        ), $this->cacheBackend
+          ),
+        ), $this->cacheBackend,
       ))
       ->setMethods(array('load'))
       ->getMock();
@@ -161,7 +161,7 @@ public function testGetModuleWithNonExistingModule() {
   public function testSetModuleList() {
     $module_handler = $this->getMockBuilder('Drupal\Core\Extension\ModuleHandler')
       ->setConstructorArgs(array(
-        $this->root, array(), $this->cacheBackend
+        $this->root, array(), $this->cacheBackend,
       ))
       ->setMethods(array('resetImplementations'))
       ->getMock();
@@ -189,7 +189,7 @@ public function testAddModule() {
 
     $module_handler = $this->getMockBuilder('Drupal\Core\Extension\ModuleHandler')
       ->setConstructorArgs(array(
-        $this->root, array(), $this->cacheBackend
+        $this->root, array(), $this->cacheBackend,
       ))
       ->setMethods(array('resetImplementations'))
       ->getMock();
@@ -211,7 +211,7 @@ public function testAddProfile() {
 
     $module_handler = $this->getMockBuilder('Drupal\Core\Extension\ModuleHandler')
       ->setConstructorArgs(array(
-        $this->root, array(), $this->cacheBackend
+        $this->root, array(), $this->cacheBackend,
       ))
       ->setMethods(array('resetImplementations'))
       ->getMock();
@@ -247,8 +247,8 @@ public function testLoadAllIncludes() {
             'type' => 'module',
             'pathname' => 'core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.info.yml',
             'filename' => 'module_handler_test.module',
-          )
-        ), $this->cacheBackend
+          ),
+        ), $this->cacheBackend,
       ))
       ->setMethods(array('loadInclude'))
       ->getMock();
@@ -333,8 +333,8 @@ public function testCachedGetImplementations() {
             'type' => 'module',
             'pathname' => 'core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.info.yml',
             'filename' => 'module_handler_test.module',
-          )
-        ), $this->cacheBackend
+          ),
+        ), $this->cacheBackend,
       ))
       ->setMethods(array('buildImplementationInfo', 'loadInclude'))
       ->getMock();
@@ -368,8 +368,8 @@ public function testCachedGetImplementationsMissingMethod() {
             'type' => 'module',
             'pathname' => 'core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.info.yml',
             'filename' => 'module_handler_test.module',
-          )
-        ), $this->cacheBackend
+          ),
+        ), $this->cacheBackend,
       ))
       ->setMethods(array('buildImplementationInfo'))
       ->getMock();
diff --git a/core/tests/Drupal/Tests/Core/File/FileSystemTest.php b/core/tests/Drupal/Tests/Core/File/FileSystemTest.php
index 645daf43d2..f0f9f3bec0 100644
--- a/core/tests/Drupal/Tests/Core/File/FileSystemTest.php
+++ b/core/tests/Drupal/Tests/Core/File/FileSystemTest.php
@@ -119,7 +119,7 @@ public function providerTestBasename() {
     $data[] = [
       'public://dir/test.txt',
       'test',
-      '.txt'
+      '.txt',
     ];
     return $data;
   }
diff --git a/core/tests/Drupal/Tests/Core/Form/ConfigFormBaseTraitTest.php b/core/tests/Drupal/Tests/Core/Form/ConfigFormBaseTraitTest.php
index 18d270e334..af723b2f49 100644
--- a/core/tests/Drupal/Tests/Core/Form/ConfigFormBaseTraitTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/ConfigFormBaseTraitTest.php
@@ -19,7 +19,7 @@ public function testConfig() {
     // Set up some configuration in a mocked config factory.
     $trait->configFactory = $this->getConfigFactoryStub([
       'editable.config' => [],
-      'immutable.config' => []
+      'immutable.config' => [],
     ]);
 
     $trait->expects($this->any())
diff --git a/core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php b/core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php
index 067ba4757b..8fc9718c0c 100644
--- a/core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php
@@ -87,7 +87,7 @@ public function testBuildResponseRenderArray() {
       '#ajax' => [
         'callback' => function (array $form, FormStateInterface $form_state) {
           return $form['test'];
-        }
+        },
       ],
     ];
     $request = new Request();
@@ -118,7 +118,7 @@ public function testBuildResponseResponse() {
       '#ajax' => [
         'callback' => function (array $form, FormStateInterface $form_state) {
           return new AjaxResponse([]);
-        }
+        },
       ],
     ];
     $request = new Request();
@@ -143,7 +143,7 @@ public function testBuildResponseWithCommands() {
       '#ajax' => [
         'callback' => function (array $form, FormStateInterface $form_state) {
           return new AjaxResponse([]);
-        }
+        },
       ],
     ];
     $request = new Request();
@@ -176,7 +176,7 @@ public function testBuildResponseWithUpdateCommand() {
       '#ajax' => [
         'callback' => function (array $form, FormStateInterface $form_state) {
           return new AjaxResponse([]);
-        }
+        },
       ],
     ];
     $request = new Request();
diff --git a/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php b/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php
index 8b2734d51c..a11627432d 100644
--- a/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php
@@ -329,7 +329,7 @@ public function testLoadCachedFormStateWithFiles() {
   public function testSetCacheWithForm() {
     $form_build_id = 'the_form_build_id';
     $form = [
-      '#form_id' => 'the_form_id'
+      '#form_id' => 'the_form_id',
     ];
     $form_state = new FormState();
 
diff --git a/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php b/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php
index 67e7a86165..b50a1fadd1 100644
--- a/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php
@@ -1255,7 +1255,7 @@ public function testGetResponse() {
   public function testSetRedirect() {
     $route_name = 'foo';
     $route_parameters = [
-      'bar' => 'baz'
+      'bar' => 'baz',
     ];
     $options = [
       'qux' => 'foo',
diff --git a/core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php b/core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php
index 1e7ec1ed8b..a2091aadf9 100644
--- a/core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php
+++ b/core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php
@@ -85,7 +85,7 @@ protected function setupLocalTaskDefault() {
    */
   public function testGetRouteParametersForStaticRoute() {
     $this->pluginDefinition = array(
-      'route_name' => 'test_route'
+      'route_name' => 'test_route',
     );
 
     $this->routeProvider->expects($this->once())
@@ -105,7 +105,7 @@ public function testGetRouteParametersForStaticRoute() {
   public function testGetRouteParametersInPluginDefinitions() {
     $this->pluginDefinition = array(
       'route_name' => 'test_route',
-      'route_parameters' => array('parameter' => 'example')
+      'route_parameters' => array('parameter' => 'example'),
     );
 
     $this->routeProvider->expects($this->once())
@@ -124,7 +124,7 @@ public function testGetRouteParametersInPluginDefinitions() {
    */
   public function testGetRouteParametersForDynamicRouteWithNonUpcastedParameters() {
     $this->pluginDefinition = array(
-      'route_name' => 'test_route'
+      'route_name' => 'test_route',
     );
 
     $route = new Route('/test-route/{parameter}');
@@ -147,7 +147,7 @@ public function testGetRouteParametersForDynamicRouteWithNonUpcastedParameters()
    */
   public function testGetRouteParametersForDynamicRouteWithUpcastedParameters() {
     $this->pluginDefinition = array(
-      'route_name' => 'test_route'
+      'route_name' => 'test_route',
     );
 
     $route = new Route('/test-route/{parameter}');
@@ -177,17 +177,17 @@ public function providerTestGetWeight() {
         array(
           'base_route' => 'local_task_default',
           'route_name' => 'local_task_default',
-          'id' => 'local_task_default'
+          'id' => 'local_task_default',
         ),
         'local_task_default',
-        -10
+        -10,
       ),
       // If the base route is different from the route of the tab, ignore it.
       array(
         array(
           'base_route' => 'local_task_example',
           'route_name' => 'local_task_other',
-          'id' => 'local_task_default'
+          'id' => 'local_task_default',
         ),
         'local_task_default',
         0,
@@ -291,9 +291,9 @@ public function testGetOptions() {
       'attributes' => array(
         'class' => array(
           'example',
-          'is-active'
-        )
-      )
+          'is-active',
+        ),
+      ),
     ), $this->localTaskBase->getOptions($route_match));
   }
 
diff --git a/core/tests/Drupal/Tests/Core/Menu/MenuLinkDefaultFormTest.php b/core/tests/Drupal/Tests/Core/Menu/MenuLinkDefaultFormTest.php
index 0295e408c7..0bb828b2ff 100644
--- a/core/tests/Drupal/Tests/Core/Menu/MenuLinkDefaultFormTest.php
+++ b/core/tests/Drupal/Tests/Core/Menu/MenuLinkDefaultFormTest.php
@@ -46,7 +46,7 @@ public function testExtractFormValues() {
       'weight' => 5,
       'expanded' => 1,
       'parent' => 'bar',
-      'menu_name' => 'foo'
+      'menu_name' => 'foo',
     ], $result);
   }
 
diff --git a/core/tests/Drupal/Tests/Core/Menu/StaticMenuLinkOverridesTest.php b/core/tests/Drupal/Tests/Core/Menu/StaticMenuLinkOverridesTest.php
index e09a56e81a..18c093653e 100644
--- a/core/tests/Drupal/Tests/Core/Menu/StaticMenuLinkOverridesTest.php
+++ b/core/tests/Drupal/Tests/Core/Menu/StaticMenuLinkOverridesTest.php
@@ -111,14 +111,14 @@ public function testSaveOverride() {
 
     $definition_save_1 = array(
       'definitions' => array(
-        'test1' => array('parent' => 'test0', 'menu_name' => '', 'weight' => 0, 'expanded' => FALSE, 'enabled' => FALSE)
-      )
+        'test1' => array('parent' => 'test0', 'menu_name' => '', 'weight' => 0, 'expanded' => FALSE, 'enabled' => FALSE),
+      ),
     );
     $definitions_save_2 = array(
       'definitions' => array(
         'test1' => array('parent' => 'test0', 'menu_name' => '', 'weight' => 0, 'expanded' => FALSE, 'enabled' => FALSE),
-        'test1__la___ma' => array('parent' => 'test1', 'menu_name' => '', 'weight' => 0, 'expanded' => FALSE, 'enabled' => FALSE)
-      )
+        'test1__la___ma' => array('parent' => 'test1', 'menu_name' => '', 'weight' => 0, 'expanded' => FALSE, 'enabled' => FALSE),
+      ),
     );
     $config->expects($this->at(2))
       ->method('set')
diff --git a/core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php b/core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php
index cc248b0b43..13c3254dc0 100644
--- a/core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php
@@ -80,7 +80,7 @@ public function providerTestAddConverter() {
 
     $converters[0]['sorted'] = array(
       'strawberry', 'raspberry', 'pear', 'peach',
-      'pineapple', 'banana', 'apple'
+      'pineapple', 'banana', 'apple',
     );
 
     $converters[1]['unsorted'] = array(
@@ -95,7 +95,7 @@ public function providerTestAddConverter() {
 
     $converters[1]['sorted'] = array(
       'giraffe', 'zebra', 'eagle', 'ape',
-      'cat', 'puppy', 'llama'
+      'cat', 'puppy', 'llama',
     );
 
     return $converters;
diff --git a/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php b/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php
index 1134eccab6..babcc3146d 100644
--- a/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php
+++ b/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php
@@ -49,8 +49,8 @@ protected function setUp() {
     $language_prefixes = array_keys($this->languages);
     $config = array(
       'url' => array(
-        'prefixes' => array_combine($language_prefixes, $language_prefixes)
-      )
+        'prefixes' => array_combine($language_prefixes, $language_prefixes),
+      ),
     );
 
     // Create a URL-based language negotiation method definition.
@@ -115,7 +115,7 @@ function testProcessInbound() {
     $config_factory_stub = $this->getConfigFactoryStub(
       array(
         'system.site' => array(
-          'page.front' => '/user/login'
+          'page.front' => '/user/login',
         ),
         'language.negotiation' => array(
           'url' => array(
diff --git a/core/tests/Drupal/Tests/Core/Plugin/Discovery/YamlDirectoryDiscoveryTest.php b/core/tests/Drupal/Tests/Core/Plugin/Discovery/YamlDirectoryDiscoveryTest.php
index 265374a675..f3cc767a46 100644
--- a/core/tests/Drupal/Tests/Core/Plugin/Discovery/YamlDirectoryDiscoveryTest.php
+++ b/core/tests/Drupal/Tests/Core/Plugin/Discovery/YamlDirectoryDiscoveryTest.php
@@ -29,7 +29,7 @@ public function testGetDefinitions() {
           'plugin3.yml' => "id: plugin3\ntest_provider: module_a",
         ],
         'subdir3' => [
-        ]
+        ],
       ],
       'module_b' => [
         'subdir1' => [
diff --git a/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php b/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
index 8e639f9047..cd108176c3 100644
--- a/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
@@ -677,17 +677,17 @@ public function providerTestAddCachableDependency() {
       'merge-cacheable-metadata' => [
         (new BubbleableMetadata())->setCacheContexts(['foo'])->setCacheTags(['foo'])->setCacheMaxAge(20),
         (new CacheableMetadata())->setCacheContexts(['bar'])->setCacheTags(['bar'])->setCacheMaxAge(60),
-        (new BubbleableMetadata())->setCacheContexts(['foo', 'bar'])->setCacheTags(['foo', 'bar'])->setCacheMaxAge(20)
+        (new BubbleableMetadata())->setCacheContexts(['foo', 'bar'])->setCacheTags(['foo', 'bar'])->setCacheMaxAge(20),
       ],
       'merge-bubbleable-metadata' => [
         (new BubbleableMetadata())->setCacheContexts(['foo'])->setCacheTags(['foo'])->setCacheMaxAge(20)->setAttachments(['foo' => []]),
         (new BubbleableMetadata())->setCacheContexts(['bar'])->setCacheTags(['bar'])->setCacheMaxAge(60)->setAttachments(['bar' => []]),
-        (new BubbleableMetadata())->setCacheContexts(['foo', 'bar'])->setCacheTags(['foo', 'bar'])->setCacheMaxAge(20)->setAttachments(['foo' => [], 'bar' => []])
+        (new BubbleableMetadata())->setCacheContexts(['foo', 'bar'])->setCacheTags(['foo', 'bar'])->setCacheMaxAge(20)->setAttachments(['foo' => [], 'bar' => []]),
       ],
       'merge-attachments-metadata' => [
         (new BubbleableMetadata())->setAttachments(['foo' => []]),
         (new BubbleableMetadata())->setAttachments(['baro' => []]),
-        (new BubbleableMetadata())->setAttachments(['foo' => [], 'bar' => []])
+        (new BubbleableMetadata())->setAttachments(['foo' => [], 'bar' => []]),
       ],
     ];
   }
diff --git a/core/tests/Drupal/Tests/Core/Render/Element/MachineNameTest.php b/core/tests/Drupal/Tests/Core/Render/Element/MachineNameTest.php
index 0dcdc58290..e4a4128d5f 100644
--- a/core/tests/Drupal/Tests/Core/Render/Element/MachineNameTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/Element/MachineNameTest.php
@@ -60,7 +60,7 @@ public function testProcessMachineName() {
         'maxlength' => 32,
         'additional_property' => TRUE,
         '#additional_property_with_hash' => TRUE,
-      ]
+      ],
     ];
 
     $complete_form = [
@@ -68,7 +68,7 @@ public function testProcessMachineName() {
         '#type' => 'textfield',
         '#id' => 'source',
       ],
-      'test_machine_name' => $element
+      'test_machine_name' => $element,
     ];
 
     $form_state->setCompleteForm($complete_form);
diff --git a/core/tests/Drupal/Tests/Core/Render/Element/TableSelectTest.php b/core/tests/Drupal/Tests/Core/Render/Element/TableSelectTest.php
index ead47e471e..f095ae5736 100644
--- a/core/tests/Drupal/Tests/Core/Render/Element/TableSelectTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/Element/TableSelectTest.php
@@ -30,7 +30,7 @@ public function testProcessTableselectWithLinkTitle() {
     $element['#value'] = 0;
 
     $element['#options'][] = [
-      'title' => new Link('my-text', Url::fromRoute('<front>'))
+      'title' => new Link('my-text', Url::fromRoute('<front>')),
     ];
 
     $element['#attributes'] = [];
diff --git a/core/tests/Drupal/Tests/Core/Render/ElementTest.php b/core/tests/Drupal/Tests/Core/Render/ElementTest.php
index 604d391d8d..a642d7ba51 100644
--- a/core/tests/Drupal/Tests/Core/Render/ElementTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/ElementTest.php
@@ -28,7 +28,7 @@ public function testProperties() {
     $element = array(
       '#property1' => 'property1',
       '#property2' => 'property2',
-      'property3' => 'property3'
+      'property3' => 'property3',
     );
 
     $properties = Element::properties($element);
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
index 12ab955402..00c0745e74 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
@@ -1131,7 +1131,7 @@ protected function setupThemeManagerForDetails() {
 EOS;
         $output = str_replace([
           '{{ title }}',
-          '{{ children }}'
+          '{{ children }}',
         ], [$vars['#title'], $vars['#children']], $output);
         return $output;
       });
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererRecursionTest.php b/core/tests/Drupal/Tests/Core/Render/RendererRecursionTest.php
index bffbd221be..b70a6e4d17 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererRecursionTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererRecursionTest.php
@@ -47,10 +47,10 @@ public function testRenderRecursionWithNestedRenderRoot() {
     $page = [
       'content' => [
         '#pre_render' => [
-          $callable
+          $callable,
         ],
         '#suffix' => $parent_markup,
-      ]
+      ],
     ];
     $renderer->renderRoot($page);
   }
@@ -79,10 +79,10 @@ public function testRenderRecursionWithNestedRender() {
       'content' => [
         'complex_child' => $complex_child_template,
         '#post_render' => [
-          $callable
+          $callable,
         ],
         '#suffix' => $parent_markup,
-      ]
+      ],
     ];
     $output = $renderer->renderRoot($page);
 
@@ -115,10 +115,10 @@ public function testRenderRecursionWithNestedRenderPlain() {
     $page = [
       'content' => [
         '#pre_render' => [
-          $callable
+          $callable,
         ],
         '#suffix' => $parent_markup,
-      ]
+      ],
     ];
     $output = $renderer->renderRoot($page);
     $this->assertEquals('<p>This is a rendered placeholder!</p>' . $parent_markup, $output, 'Rendered output as expected, with the placeholder replaced.');
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererTest.php b/core/tests/Drupal/Tests/Core/Render/RendererTest.php
index 51cfde8b94..d3d23e41a1 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererTest.php
@@ -81,7 +81,7 @@ public function providerTestRenderBasic() {
     // Printed in pre_render.
     $data[] = [[
       '#markup' => 'foo',
-      '#pre_render' => [[new TestCallables(), 'preRenderPrinted']]
+      '#pre_render' => [[new TestCallables(), 'preRenderPrinted']],
     ], ''];
     // Basic #markup based renderable array.
     $data[] = [[
@@ -146,7 +146,7 @@ public function providerTestRenderBasic() {
       '#pre_render' => [function($elements) {
         $elements['#markup'] .= '<script>alert("bar");</script>';
         return $elements;
-      }]
+      }],
     ], 'fooalert("bar");'];
     // Test #allowed_tags in combination with #markup and #pre_render.
     $data[] = [[
@@ -155,7 +155,7 @@ public function providerTestRenderBasic() {
       '#pre_render' => [function($elements) {
         $elements['#markup'] .= '<script>alert("bar");</script>';
         return $elements;
-      }]
+      }],
     ], 'foo<script>alert("bar");</script>'];
     // Ensure output is escaped when adding content to #check_plain through
     // a #pre_render callback.
@@ -164,7 +164,7 @@ public function providerTestRenderBasic() {
       '#pre_render' => [function($elements) {
         $elements['#plain_text'] .= '<script>alert("bar");</script>';
         return $elements;
-      }]
+      }],
     ], 'foo&lt;script&gt;alert(&quot;bar&quot;);&lt;/script&gt;'];
 
     // Part 2: render arrays using #theme and #theme_wrappers.
@@ -449,7 +449,7 @@ public function testRenderWithAccessCallbackCallable($access) {
     $build = [
       '#access_callback' => function() use ($access) {
         return $access;
-      }
+      },
     ];
 
     $this->assertAccess($build, $access);
@@ -468,7 +468,7 @@ public function testRenderWithAccessPropertyAndCallback($access) {
       '#access' => $access,
       '#access_callback' => function() {
         return TRUE;
-      }
+      },
     ];
 
     $this->assertAccess($build, $access);
@@ -846,7 +846,7 @@ public function providerTestAddCacheableDependency() {
             'contexts' => ['theme'],
             'tags' => ['bar'],
             'max-age' => 600,
-          ]
+          ],
         ],
         new TestCacheableDependency(['user.roles'], ['foo'], Cache::PERMANENT),
         [
@@ -864,7 +864,7 @@ public function providerTestAddCacheableDependency() {
             'contexts' => ['theme'],
             'tags' => ['bar'],
             'max-age' => 600,
-          ]
+          ],
         ],
         new \stdClass(),
         [
diff --git a/core/tests/Drupal/Tests/Core/Routing/RoutingFixtures.php b/core/tests/Drupal/Tests/Core/Routing/RoutingFixtures.php
index d1826ed45e..49eee0ecad 100644
--- a/core/tests/Drupal/Tests/Core/Routing/RoutingFixtures.php
+++ b/core/tests/Drupal/Tests/Core/Routing/RoutingFixtures.php
@@ -60,7 +60,7 @@ public function staticSampleRouteCollection() {
       'path' => '/path/two',
       'methods' => array('GET'),
       'requirements' => array(
-        '_format' => 'json'
+        '_format' => 'json',
       ),
     );
     $routes['route_d'] = array(
@@ -70,7 +70,7 @@ public function staticSampleRouteCollection() {
       'path' => '/path/two',
       'methods' => array('GET', 'HEAD'),
       'requirements' => array(
-        '_format' => 'html'
+        '_format' => 'html',
       ),
     );
 
diff --git a/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php b/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php
index fe9f6e63cd..1d0583b478 100644
--- a/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php
+++ b/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php
@@ -111,12 +111,12 @@ public function providerTestEscaping() {
       array('{{ path(name = "foo", parameters = foo) }}', TRUE),
       array(
         '{{ path(name = "foo", parameters = { foo: ["foo", "bar"] }) }}',
-        TRUE
+        TRUE,
       ),
       array('{{ path(name = "foo", parameters = { foo: foo }) }}', TRUE),
       array(
         '{{ path(name = "foo", parameters = { foo: "foo", bar: "bar" }) }}',
-        TRUE
+        TRUE,
       ),
     );
   }
diff --git a/core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php b/core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php
index 7084278b80..8a6fdc8319 100644
--- a/core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php
+++ b/core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php
@@ -38,7 +38,7 @@ public function testConstructor($db_prefix, $expected_db_prefix, $expected_site_
   public function providerTestConstructor() {
     return [
       ['test1234', 'test1234', 'sites/simpletest/1234'],
-      ['test123456test234567', 'test123456test234567', 'sites/simpletest/234567']
+      ['test123456test234567', 'test123456test234567', 'sites/simpletest/234567'],
     ];
   }
 
diff --git a/core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php b/core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php
index 5e3558e1b1..5a5d79eb1b 100644
--- a/core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php
+++ b/core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php
@@ -131,7 +131,7 @@ public function testBasicValidateWithConstraint() {
         ->addConstraint('Callback', [
           'callback' => function ($value, ExecutionContextInterface $context) {
             $context->addViolation('test violation: ' . $value);
-          }
+          },
         ])
     );
     $typed_data->setValue('foo');
@@ -149,7 +149,7 @@ public function testBasicValidateWithMultipleConstraints() {
     $options = [
       'callback' => function ($value, ExecutionContextInterface $context) {
         $context->addViolation('test violation');
-      }
+      },
     ];
     $typed_data = $this->typedDataManager->create(
       DataDefinition::create('string')
@@ -325,7 +325,7 @@ protected function buildExampleTypedDataWithProperties($subkey_value = NULL) {
       'value' => [
         'key1' => 'value1',
         'key2' => 'value2',
-        'key_with_properties' => $subkey_value
+        'key_with_properties' => $subkey_value,
       ],
     ];
     $tree['properties'] = [
diff --git a/core/tests/Drupal/Tests/Core/Update/UpdateRegistryTest.php b/core/tests/Drupal/Tests/Core/Update/UpdateRegistryTest.php
index 2462148ebe..4ebecb6097 100644
--- a/core/tests/Drupal/Tests/Core/Update/UpdateRegistryTest.php
+++ b/core/tests/Drupal/Tests/Core/Update/UpdateRegistryTest.php
@@ -79,14 +79,14 @@ function module_b_post_update_a() {
           'modules' => [
             'module_a' => [
               'module_a.post_update.php' => $module_a,
-              'module_a.info.yml' => $info_a
+              'module_a.info.yml' => $info_a,
             ],
             'module_b' => [
               'module_b.post_update.php' => $module_b,
-              'module_b.info.yml' => $info_b
+              'module_b.info.yml' => $info_b,
             ],
-          ]
-        ]
+          ],
+        ],
       ],
     ]);
   }
@@ -103,13 +103,13 @@ public function testGetPendingUpdateFunctionsNoExistingUpdates() {
 
     $update_registry = new UpdateRegistry('vfs://drupal', 'sites/default', [
       'module_a',
-      'module_b'
+      'module_b',
     ], $key_value, FALSE);
 
     $this->assertEquals([
       'module_a_post_update_a',
       'module_a_post_update_b',
-      'module_b_post_update_a'
+      'module_b_post_update_a',
     ], $update_registry->getPendingUpdateFunctions());
   }
 
@@ -150,12 +150,12 @@ public function testGetPendingUpdateFunctionsExistingUpdates() {
 
     $update_registry = new UpdateRegistry('vfs://drupal', 'sites/default', [
       'module_a',
-      'module_b'
+      'module_b',
     ], $key_value, FALSE);
 
     $this->assertEquals(array_values([
       'module_a_post_update_b',
-      'module_b_post_update_a'
+      'module_b_post_update_a',
     ]), array_values($update_registry->getPendingUpdateFunctions()));
 
   }
@@ -172,7 +172,7 @@ public function testGetPendingUpdateInformation() {
 
     $update_registry = new UpdateRegistry('vfs://drupal', 'sites/default', [
       'module_a',
-      'module_b'
+      'module_b',
     ], $key_value, FALSE);
 
     $expected = [];
@@ -197,7 +197,7 @@ public function testGetPendingUpdateInformationWithExistingUpdates() {
 
     $update_registry = new UpdateRegistry('vfs://drupal', 'sites/default', [
       'module_a',
-      'module_b'
+      'module_b',
     ], $key_value, FALSE);
 
     $expected = [];
@@ -218,7 +218,7 @@ public function testGetModuleUpdateFunctions() {
 
     $update_registry = new UpdateRegistry('vfs://drupal', 'sites/default', [
       'module_a',
-      'module_b'
+      'module_b',
     ], $key_value, FALSE);
 
     $this->assertEquals(['module_a_post_update_a', 'module_a_post_update_b'], array_values($update_registry->getModuleUpdateFunctions('module_a')));
@@ -241,7 +241,7 @@ public function testRegisterInvokedUpdatesWithoutExistingUpdates() {
 
     $update_registry = new UpdateRegistry('vfs://drupal', 'sites/default', [
       'module_a',
-      'module_b'
+      'module_b',
     ], $key_value, FALSE);
     $update_registry->registerInvokedUpdates(['module_a_post_update_a']);
   }
@@ -262,7 +262,7 @@ public function testRegisterInvokedUpdatesWithMultiple() {
 
     $update_registry = new UpdateRegistry('vfs://drupal', 'sites/default', [
       'module_a',
-      'module_b'
+      'module_b',
     ], $key_value, FALSE);
     $update_registry->registerInvokedUpdates(['module_a_post_update_a', 'module_a_post_update_b']);
   }
@@ -283,7 +283,7 @@ public function testRegisterInvokedUpdatesWithExistingUpdates() {
 
     $update_registry = new UpdateRegistry('vfs://drupal', 'sites/default', [
       'module_a',
-      'module_b'
+      'module_b',
     ], $key_value, FALSE);
     $update_registry->registerInvokedUpdates(['module_a_post_update_a']);
   }
@@ -304,7 +304,7 @@ public function testFilterOutInvokedUpdatesByModule() {
 
     $update_registry = new UpdateRegistry('vfs://drupal', 'sites/default', [
       'module_a',
-      'module_b'
+      'module_b',
     ], $key_value, FALSE);
 
     $update_registry->filterOutInvokedUpdatesByModule('module_a');
diff --git a/core/tests/Drupal/Tests/Core/Utility/TokenTest.php b/core/tests/Drupal/Tests/Core/Utility/TokenTest.php
index 04a2b8f623..1a3d3d121b 100644
--- a/core/tests/Drupal/Tests/Core/Utility/TokenTest.php
+++ b/core/tests/Drupal/Tests/Core/Utility/TokenTest.php
@@ -94,7 +94,7 @@ protected function setUp() {
     $container = new ContainerBuilder();
     $this->cacheContextManager = new CacheContextsManager($container, [
       'current_user',
-      'custom_context'
+      'custom_context',
     ]);
     $container->set('cache_contexts_manager', $this->cacheContextManager);
     \Drupal::setContainer($container);
@@ -170,7 +170,7 @@ public function testReplaceWithBubbleableMetadataObject() {
     $this->assertEquals(['node:1'], $bubbleable_metadata->getCacheTags());
     $this->assertEquals([
       'current_user',
-      'custom_context'
+      'custom_context',
     ], $bubbleable_metadata->getCacheContexts());
     $this->assertEquals(10, $bubbleable_metadata->getCacheMaxAge());
   }
@@ -205,7 +205,7 @@ public function testReplaceWithHookTokensWithBubbleableMetadata() {
     $this->assertEquals(['node:1'], $bubbleable_metadata->getCacheTags());
     $this->assertEquals([
       'current_user',
-      'custom_context'
+      'custom_context',
     ], $bubbleable_metadata->getCacheContexts());
     $this->assertEquals(10, $bubbleable_metadata->getCacheMaxAge());
   }
@@ -243,7 +243,7 @@ public function testReplaceWithHookTokensAlterWithBubbleableMetadata() {
     $this->assertEquals(['node:1'], $bubbleable_metadata->getCacheTags());
     $this->assertEquals([
       'current_user',
-      'custom_context'
+      'custom_context',
     ], $bubbleable_metadata->getCacheContexts());
     $this->assertEquals(10, $bubbleable_metadata->getCacheMaxAge());
   }
