diff --git a/core/includes/common.inc b/core/includes/common.inc
index f40565ab1c..532b3e5ef9 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 0d6c25e6b1..a2e8bd959c 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -2007,7 +2007,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.', [
             '@drupal' => drupal_install_profile_distribution_name(),
-            '%default-file' => $default_file
+            '%default-file' => $default_file,
           ]),
       ];
     }
@@ -2068,7 +2068,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',
           ]),
       ];
     }
@@ -2086,7 +2086,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.', [
               '@drupal' => drupal_install_profile_distribution_name(),
               '%file' => $file,
-              ':handbook_url' => 'https://www.drupal.org/server-permissions'
+              ':handbook_url' => 'https://www.drupal.org/server-permissions',
             ]),
         ];
       }
@@ -2099,7 +2099,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.', [
               '@drupal' => drupal_install_profile_distribution_name(),
               '%file' => $file,
-              ':handbook_url' => 'https://www.drupal.org/server-permissions'
+              ':handbook_url' => 'https://www.drupal.org/server-permissions',
             ]),
         ];
       }
@@ -2119,7 +2119,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 97a14ecaf1..cccd53b33e 100644
--- a/core/lib/Drupal/Component/Utility/Html.php
+++ b/core/lib/Drupal/Component/Utility/Html.php
@@ -124,7 +124,7 @@ public static function cleanCssIdentifier($identifier, array $filter = [
     // Identifiers cannot start with a digit, two hyphens, or a hyphen followed by a digit.
     $identifier = preg_replace([
       '/^[0-9]/',
-      '/^(-[0-9])|^(--)/'
+      '/^(-[0-9])|^(--)/',
     ], ['_', '__'], $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 57f54b2965..661a5cf983 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',
       [
         '@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 6c37c76372..573ec54849 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',
       [
         '%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 0c17ce2e02..6e59636a5d 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) {
       [
         'data' => $ybeg + $this->line_stats['offset']['y'],
         'colspan' => 2,
-      ]
+      ],
     ];
   }
 
@@ -94,7 +94,7 @@ protected function addedLine($line) {
       [
         'data' => ['#markup' => $line],
         'class' => 'diff-context diff-addedline',
-      ]
+      ],
     ];
   }
 
@@ -116,7 +116,7 @@ protected function deletedLine($line) {
       [
         'data' => ['#markup' => $line],
         'class' => 'diff-context diff-deletedline',
-      ]
+      ],
     ];
   }
 
@@ -135,7 +135,7 @@ protected function contextLine($line) {
       [
         '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 9a70ef5bc7..fa11027738 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'] = [
           '#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 faa6d0d6af..bf2452c693 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 [
-      '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 74b15b65f4..1a4564d37a 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 [
-      '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 ca106b290f..4587244446 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] = [
-              '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 98be20e04e..321ef6c42e 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] = [
             '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 a18a3c5310..220aa7256a 100644
--- a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
+++ b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
@@ -999,7 +999,7 @@ protected function initializeRevisionDataTable(ContentEntityTypeInterface $entit
         $entity_type_id . '__revision' => [
           'table' => $this->storage->getRevisionTable(),
           'columns' => [$revision_key => $revision_key],
-        ]
+        ],
       ],
     ];
 
@@ -1878,7 +1878,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 e948aa584c..f6cfdc5624 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.', [
             '%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.', [
             '%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.', [
             '%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 0830f32872..e5f49bbc4a 100644
--- a/core/lib/Drupal/Core/Extension/module.api.php
+++ b/core/lib/Drupal/Core/Extension/module.api.php
@@ -934,7 +934,7 @@ function hook_requirements($phase) {
     $requirements['drupal'] = [
       '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 43bbaa5309..43c4c980ee 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 00fe4098c7..2f5d7a53f0 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' => [
         'Regex' => [
           '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 ca30ede268..a6801fc229 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' => [
           'max' => Email::EMAIL_MAX_LENGTH,
           'maxMessage' => t('%name: the email address can not be longer than @max characters.', ['%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 f9922b9f46..2d45a7784a 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
@@ -513,7 +513,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(),
                 ]);
               }
             }
@@ -660,8 +660,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 23f5161f28..50eb767f99 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' => [
             'min' => $min,
             'minMessage' => t('%name: the value may be no less than %min.', ['%name' => $label, '%min' => $min]),
-          ]
+          ],
         ],
       ]);
     }
@@ -98,7 +98,7 @@ public function getConstraints() {
           'Range' => [
             'max' => $max,
             'maxMessage' => t('%name: the value may be no greater than %max.', ['%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 11f048e6f8..6f1c1dcc00 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'] = [
         '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 073bd2c787..4e38e755f1 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 [
-        'module' => array_keys($this->thirdPartySettings)
+        'module' => array_keys($this->thirdPartySettings),
       ];
     }
     return [];
diff --git a/core/lib/Drupal/Core/Form/FormBuilder.php b/core/lib/Drupal/Core/Form/FormBuilder.php
index be000dcc25..3920194596 100644
--- a/core/lib/Drupal/Core/Form/FormBuilder.php
+++ b/core/lib/Drupal/Core/Form/FormBuilder.php
@@ -774,9 +774,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 554e2710d7..d2c53d133a 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', [
       '%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 5442d1542e..ebca435b64 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'] = [
         'visible' => [
           ':input[name=driver]' => ['value' => $key],
-        ]
+        ],
       ];
     }
 
diff --git a/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php b/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php
index c6514962d6..aab333acde 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',
       [
         ':collection' => $this->collection,
-        ':now' => REQUEST_TIME
+        ':now' => REQUEST_TIME,
       ])->fetchAllKeyed();
     return array_map([$this->serializer, 'decode'], $values);
   }
diff --git a/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php b/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php
index 0984ffcb1f..aaf5630707 100644
--- a/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php
+++ b/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php
@@ -249,20 +249,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 89f39a8460..60b7277671 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', ['mode' => 'off']);
       $element['#options'] = [
         'attributes' => ['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 c76a9728d2..5b57fb7478 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 9ac338124c..20e4b0c142 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 584f79f908..b03fcb4999 100644
--- a/core/lib/Drupal/Core/Render/Renderer.php
+++ b/core/lib/Drupal/Core/Render/Renderer.php
@@ -326,7 +326,7 @@ protected function doRender(&$elements, $is_root_call = FALSE) {
         // automatically by the Renderer. Adding them as though they are
         // supported allows us to avoid throwing an exception 100% of the time.
         '#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 f71e2e1142..be11f80049 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, [
-        '%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 478e919be0..f6d8d2e3f1 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'] = [
-      '#type' => 'actions'
+      '#type' => 'actions',
     ];
     $form['parent']['actions']['submit'] = [
       '#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 9b88e438c9..3799275ec8 100644
--- a/core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php
+++ b/core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php
@@ -88,7 +88,7 @@ public function fetch(FeedInterface $feed) {
         'allow_redirects' => [
           'on_redirect' => function(RequestInterface $request, ResponseInterface $response, UriInterface $uri) use (&$actual_uri) {
             $actual_uri = (string) $uri;
-          }
+          },
         ],
       ])->send($request);
 
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/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/BigPipePlaceholderTestCases.php b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php
index 51b1976396..8507a3711d 100644
--- a/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php
+++ b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php
@@ -53,7 +53,7 @@ public static function cases(ContainerInterface $container = NULL, AccountInterf
       [
         '#lazy_builder' => [
           'Drupal\Core\Render\Element\StatusMessages::renderMessages',
-          [NULL]
+          [NULL],
         ],
       ]
     );
@@ -132,7 +132,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'],
         ],
       ]
     );
@@ -159,14 +159,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',
-          []
+          [],
         ],
       ]
     );
@@ -193,9 +193,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_test/src/BigPipeTestController.php b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php
index a708ecc882..d60b1b2633 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
@@ -91,7 +91,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 6545a1997a..50b27585f3 100644
--- a/core/modules/block/block.install
+++ b/core/modules/block/block.install
@@ -73,7 +73,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 d5f0852a3c..0d49ead480 100644
--- a/core/modules/block/block.post_update.php
+++ b/core/modules/block/block.post_update.php
@@ -60,7 +60,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)', [
           '@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 37b2e8bfc3..398d34cb0b 100644
--- a/core/modules/block/src/BlockListBuilder.php
+++ b/core/modules/block/src/BlockListBuilder.php
@@ -212,7 +212,7 @@ protected function buildBlocksForm() {
         '#theme_wrappers' => [
           'container' => [
             '#attributes' => ['class' => 'region-title__action'],
-          ]
+          ],
         ],
         '#prefix' => $title,
         '#type' => 'link',
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 cf1b87720a..8f963e17e6 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/Functional/BlockTest.php b/core/modules/block/tests/src/Functional/BlockTest.php
index 7518c82dc1..53b48662cd 100644
--- a/core/modules/block/tests/src/Functional/BlockTest.php
+++ b/core/modules/block/tests/src/Functional/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/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 5584b0bfdd..f522b2b842 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 = [
       'block1' => [
-        AccessResult::allowed(), 'top', 0
+        AccessResult::allowed(), 'top', 0,
       ],
       // Test a block without access.
       'block2' => [
-        AccessResult::forbidden(), 'bottom', 0
+        AccessResult::forbidden(), 'bottom', 0,
       ],
       // Test some blocks in the same region with specific weight.
       'block4' => [
-        AccessResult::allowed(), 'bottom', 5
+        AccessResult::allowed(), 'bottom', 5,
       ],
       'block3' => [
-        AccessResult::allowed(), 'bottom', 5
+        AccessResult::allowed(), 'bottom', 5,
       ],
       'block5' => [
-        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 7c1f8aac33..3064e5220d 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([
-      '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 5e09be8b58..54f7ad58e1 100644
--- a/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
+++ b/core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
@@ -190,9 +190,9 @@ public function build() {
       return [
         '#markup' => $this->t('Block with uuid %uuid does not exist. <a href=":url">Add custom block</a>.', [
           '%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 25806c5f13..ac82a6c39c 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'] = [
-        $block_content->getConfigDependencyName()
+        $block_content->getConfigDependencyName(),
       ];
     }
     return parent::getDerivativeDefinitions($base_plugin_definition);
diff --git a/core/modules/block_content/src/Tests/BlockContentTestBase.php b/core/modules/block_content/src/Tests/BlockContentTestBase.php
index 3794478d52..cfd7ffa1b7 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 = [
-    'administer blocks'
+    'administer blocks',
   ];
 
   /**
@@ -81,7 +81,7 @@ protected function createBlockContent($title = FALSE, $bundle = 'basic', $save =
     $block_content = BlockContent::create([
       '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/BlockContentTypeTest.php b/core/modules/block_content/src/Tests/BlockContentTypeTest.php
index a4e3a2175a..bbb0291c7c 100644
--- a/core/modules/block_content/src/Tests/BlockContentTypeTest.php
+++ b/core/modules/block_content/src/Tests/BlockContentTypeTest.php
@@ -29,7 +29,7 @@ class BlockContentTypeTest extends BlockContentTestBase {
    */
   protected $permissions = [
     '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 3ea2dba06c..543ec82f39 100644
--- a/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php
+++ b/core/modules/block_content/src/Tests/Views/BlockContentTestBase.php
@@ -99,7 +99,7 @@ protected function createBlockContentType(array $values = []) {
     $values += [
       '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 59f111b965..6835009285 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([
       '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/BlockContentCreationTest.php b/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
index 562a4bd102..75c0e885c0 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
+++ b/core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php
@@ -30,7 +30,7 @@ class BlockContentCreationTest extends BlockContentTestBase {
    */
   protected $permissions = [
     '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.', [
       '@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.', [
-      '%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.', [
       '@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.', [
-      '%value' => $edit['info[0][value]']
+      '%value' => $edit['info[0][value]'],
     ]));
     $this->assertResponse(200);
   }
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php b/core/modules/block_content/tests/src/Functional/BlockContentSaveTest.php
index 0f7ae5a2e6..fe730e8a0c 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' => ['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 45c7e26999..7b60569c05 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 = [
-    'administer blocks'
+    'administer blocks',
   ];
 
   /**
@@ -78,7 +78,7 @@ protected function createBlockContent($title = FALSE, $bundle = 'basic', $save =
     $block_content = BlockContent::create([
       'info' => $title,
       'type' => $bundle,
-      'langcode' => 'en'
+      'langcode' => 'en',
     ]);
     if ($block_content && $save === TRUE) {
       $block_content->save();
diff --git a/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php b/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php
index 2699fcfb69..fe58655cc5 100644
--- a/core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php
+++ b/core/modules/block_content/tests/src/Functional/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([
       '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([
       'info' => $title,
       'type' => $bundle,
-      'langcode' => 'en'
+      'langcode' => 'en',
     ]);
     $block_content->save();
     return $block_content;
@@ -162,7 +162,7 @@ public function testDisabledBundle() {
     $bundle = BlockContentType::create([
       'id' => $disabled_bundle,
       'label' => $disabled_bundle,
-      'revision' => FALSE
+      'revision' => FALSE,
     ]);
     $bundle->save();
 
diff --git a/core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php b/core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php
index ffce588605..ce7e4763d1 100644
--- a/core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php
+++ b/core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php
@@ -94,7 +94,7 @@ protected function createBlockContentType(array $values = []) {
     $values += [
       'id' => $id,
       'label' => $id,
-      'revision' => FALSE
+      'revision' => FALSE,
     ];
     $bundle = BlockContentType::create($values);
     $status = $bundle->save();
diff --git a/core/modules/book/book.module b/core/modules/book/book.module
index 4c62274271..81a194d182 100644
--- a/core/modules/book/book.module
+++ b/core/modules/book/book.module
@@ -111,7 +111,7 @@ function book_node_links_alter(array &$links, NodeInterface $node, array &$conte
               'type' => 'html',
               'node' => $node->id(),
             ]),
-            'attributes' => ['title' => t('Show a printer-friendly version of this book page and its sub-pages.')]
+            'attributes' => ['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 64e764ebf5..45b97e77bc 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 [
-      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 ffae4096cf..0cc6b58e69 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
    */
   public function getCssFiles(Editor $editor) {
     return [
-        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 2f14bca89a..5e45bde777 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
@@ -157,7 +157,7 @@ protected function generateStylesSetSetting($styles) {
       ];
       if (!empty($classes)) {
         $configured_style['attributes'] = [
-          '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 255691ff03..d807f00b04 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 => [
                '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 eb02d37ada..5664728ec3 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 @@ public function testCssFiles() {
 
     // Case 2: CKEditor iframe instance CSS file.
     $expected = [
-      'llama_css' => [drupal_get_path('module', 'ckeditor_test') . '/css/llama.css']
+      'llama_css' => [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 4f1da31834..de4c23fe83 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' => [
             '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 e0901dc84f..1312658d70 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 @@ public function getButtons() {
    */
   public function getCssFiles(Editor $editor) {
     return [
-      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 28231b8cb7..87f4fd6bb2 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.', [
           '%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 9cb147f7f0..5c93df7d73 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 ead61c1a33..9a344a65be 100644
--- a/core/modules/comment/src/CommentViewsData.php
+++ b/core/modules/comment/src/CommentViewsData.php
@@ -214,7 +214,7 @@ public function getViewsData() {
               [
                 '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 1be7a68c15..bab723e872 100644
--- a/core/modules/comment/src/Form/ConfirmDeleteMultiple.php
+++ b/core/modules/comment/src/Form/ConfirmDeleteMultiple.php
@@ -54,7 +54,7 @@ public function __construct(CommentStorageInterface $comment_storage, PrivateTem
   public static function create(ContainerInterface $container) {
     return new static(
       $container->get('entity.manager')->getStorage('comment'),
-      $container->get('user.private_tempstore')
+      $container->get('user.private_tempstore'),
     );
   }
 
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 0096ecd185..8e85545739 100644
--- a/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php
+++ b/core/modules/comment/src/Plugin/migrate/source/d6/CommentVariablePerCommentType.php
@@ -26,7 +26,7 @@ protected function getCommentVariables() {
         $return['comment'] = [
           'comment_type' => 'comment',
           'label' => $this->t('Default comments'),
-          'description' => $this->t('Allows commenting on content')
+          'description' => $this->t('Allows commenting on content'),
         ];
       }
       else {
@@ -34,7 +34,7 @@ protected function getCommentVariables() {
         $return['comment_no_subject'] = [
           '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 f88c0498d3..b8200c1c7f 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() {
         [
           '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/CommentPagerTest.php b/core/modules/comment/src/Tests/CommentPagerTest.php
index 9c48978403..b7b16cc9d3 100644
--- a/core/modules/comment/src/Tests/CommentPagerTest.php
+++ b/core/modules/comment/src/Tests/CommentPagerTest.php
@@ -316,7 +316,7 @@ public function testTwoPagers() {
         'settings' => [
           'pager_id' => 1,
           'view_mode' => 'default',
-        ]
+        ],
       ])
       ->save();
 
diff --git a/core/modules/comment/tests/src/Functional/CommentAdminTest.php b/core/modules/comment/tests/src/Functional/CommentAdminTest.php
index 93cff3c6ce..b85e0e8296 100644
--- a/core/modules/comment/tests/src/Functional/CommentAdminTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentAdminTest.php
@@ -55,7 +55,7 @@ public function testApprovalAdminInterface() {
       'comment_body' => $body,
       'entity_id' => $this->node->id(),
       'entity_type' => 'node',
-      'field_name' => 'comment'
+      'field_name' => 'comment',
     ]);
     $this->drupalLogout();
 
@@ -141,7 +141,7 @@ public 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/tests/src/Functional/CommentCSSTest.php b/core/modules/comment/tests/src/Functional/CommentCSSTest.php
index e17534a721..c281f63ce3 100644
--- a/core/modules/comment/tests/src/Functional/CommentCSSTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentCSSTest.php
@@ -23,7 +23,7 @@ protected function setUp() {
     // Allow anonymous users to see comments.
     user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, [
       'access comments',
-      'access content'
+      'access content',
     ]);
   }
 
diff --git a/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php b/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
index 257b7333fb..786c7d9e37 100644
--- a/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentNonNodeTest.php
@@ -252,7 +252,7 @@ public function getUnapprovedComment($subject) {
    */
   public function testCommentFunctionality() {
     $limited_user = $this->drupalCreateUser([
-      'administer entity_test fields'
+      'administer entity_test fields',
     ]);
     $this->drupalLogin($limited_user);
     // Test that default field exists.
diff --git a/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php b/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
index daac938fa3..f6bec9c7d3 100644
--- a/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
+++ b/core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
@@ -99,7 +99,7 @@ protected function createEntity($values, $langcode, $comment_type = 'comment_art
     $node = $this->drupalCreateNode([
       'type' => $node_type,
       $field_name => [
-        ['status' => CommentItemInterface::OPEN]
+        ['status' => CommentItemInterface::OPEN],
       ],
     ]);
     $values['entity_id'] = $node->id();
diff --git a/core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php b/core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php
index 5cb9680514..4085f4f47b 100644
--- a/core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/DefaultViewRecentCommentsTest.php
@@ -119,7 +119,7 @@ public function testBlockDisplay() {
     $map = [
       'subject' => 'subject',
       'cid' => 'cid',
-      'comment_field_data_created' => 'created'
+      'comment_field_data_created' => 'created',
     ];
     $expected_result = [];
     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 1e0fd72129..2d21f23977 100644
--- a/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php
+++ b/core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php
@@ -202,7 +202,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 = $this->generatePermutations($combinations);
 
diff --git a/core/modules/comment/tests/src/Kernel/CommentValidationTest.php b/core/modules/comment/tests/src/Kernel/CommentValidationTest.php
index 98b771513b..1d81d55ece 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' => [
         '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 e1b3c94336..16d7e404a4 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 fe1b2e496a..8b4ec35280 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' => ['use-ajax'],
               'data-dialog-type' => 'modal',
               'data-dialog-options' => json_encode([
-                '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 8d21ee4e83..9d48e0b1b9 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 [
       'config_test.dynamic.test_1' => [
         '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 98417c02e9..16c07540ff 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/src/Functional/ConfigLanguageOverrideWebTest.php b/core/modules/config/tests/src/Functional/ConfigLanguageOverrideWebTest.php
index 092ad2b377..c7e0b27d44 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 2ae3095933..ab226a8754 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 += [
       $this->entityType => [
         '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 0a867e57d9..e8df253ef1 100644
--- a/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php
+++ b/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php
@@ -911,7 +911,7 @@ public function testSequenceTranslation() {
     $expected = [
       '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 95af49eea9..7cbeb57746 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 = [
     '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 586d197579..dd5d8a0a30 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([
       '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([
       '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 b783accf97..c13a1b73f2 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
@@ -42,8 +42,8 @@ public function providerSource() {
           'lid' => 11,
           'objectid' => 'profile_love_migrations',
           'type' => 'field',
-          'property' => 'explanation'
-        ]
+          'property' => 'explanation',
+        ],
       ],
       'locales_target' => [
         [
diff --git a/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/ProfileFieldTranslationTest.php b/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/ProfileFieldTranslationTest.php
index 02cdd9909c..3eb5880ed7 100644
--- a/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/ProfileFieldTranslationTest.php
+++ b/core/modules/config_translation/tests/src/Kernel/Plugin/migrate/source/d6/ProfileFieldTranslationTest.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/config_translation/tests/src/Unit/ConfigMapperManagerTest.php b/core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php
index e72c61f6dc..4315f81b2d 100644
--- a/core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php
+++ b/core/modules/config_translation/tests/src/Unit/ConfigMapperManagerTest.php
@@ -118,7 +118,7 @@ public function providerTestHasTranslatable() {
             $this->getElement(['iii' => 'jjj']),
           ]),
         ]),
-        FALSE
+        FALSE,
       ],
       [
         $this->getNestedElement([
diff --git a/core/modules/contact/tests/drupal-7.contact.database.php b/core/modules/contact/tests/drupal-7.contact.database.php
index bd36384d7e..e63ee29d16 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([
   'category' => 'Upgrade test',
diff --git a/core/modules/contact/tests/src/Functional/ContactPersonalTest.php b/core/modules/contact/tests/src/Functional/ContactPersonalTest.php
index 5f6e8e6ad2..938aa60496 100644
--- a/core/modules/contact/tests/src/Functional/ContactPersonalTest.php
+++ b/core/modules/contact/tests/src/Functional/ContactPersonalTest.php
@@ -98,7 +98,7 @@ public function testSendPersonalContactMessage() {
     $placeholders = [
       '@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/tests/src/Functional/ContactSitewideTest.php b/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
index 178a3ad01d..0c1f96a8cf 100644
--- a/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
+++ b/core/modules/contact/tests/src/Functional/ContactSitewideTest.php
@@ -101,7 +101,7 @@ public 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]', [
-      ':href' => \Drupal::url('entity.contact_form.edit_form', ['contact_form' => 'personal'])
+      ':href' => \Drupal::url('entity.contact_form.edit_form', ['contact_form' => 'personal']),
     ]);
     $this->assertTrue(empty($edit_link), format_string('No link containing href %href found.',
       ['%href' => 'admin/structure/contact/manage/personal']
@@ -406,7 +406,7 @@ public 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/tests/src/Functional/Views/ContactFieldsTest.php b/core/modules/contact/tests/src/Functional/Views/ContactFieldsTest.php
index c66b5ad5d4..fd9b1ce8db 100644
--- a/core/modules/contact/tests/src/Functional/Views/ContactFieldsTest.php
+++ b/core/modules/contact/tests/src/Functional/Views/ContactFieldsTest.php
@@ -34,7 +34,7 @@ protected function setUp($import_test_views = TRUE) {
     $this->fieldStorage = FieldStorageConfig::create([
       'field_name' => strtolower($this->randomMachineName()),
       'entity_type' => 'contact_message',
-      'type' => 'text'
+      'type' => 'text',
     ]);
     $this->fieldStorage->save();
 
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/ContentModerationConfigureForm.php b/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php
index 6006c9abcb..274b9f8e37 100644
--- a/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php
+++ b/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php
@@ -68,7 +68,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
 
     $header = [
       'type' => $this->t('Items'),
-      'operations' => $this->t('Operations')
+      'operations' => $this->t('Operations'),
     ];
     $form['entity_types_container'] = [
       '#type' => 'details',
@@ -108,7 +108,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
             'label' => $this->t('@bundle types', ['@bundle' => $entity_type->getLabel()]),
             'entity_type_id' => $entity_type->id(),
             'selected_bundles' => $selected_bundles_list,
-          ]
+          ],
         ],
         'operations' => [
           '#type' => 'operations',
diff --git a/core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php b/core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php
index 4b879737da..65fc2a0c50 100644
--- a/core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php
+++ b/core/modules/content_moderation/src/Plugin/Validation/Constraint/ModerationStateConstraintValidator.php
@@ -98,7 +98,7 @@ public function validate($value, Constraint $constraint) {
       if (!$original_state->canTransitionTo($new_state->id())) {
         $this->context->addViolation($constraint->message, [
           '%from' => $original_state->label(),
-          '%to' => $new_state->label()
+          '%to' => $new_state->label(),
         ]);
       }
     }
diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
index 326eb7cc97..d7dded8648 100644
--- a/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
+++ b/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
@@ -476,7 +476,7 @@ public function testWorkflowInUse() {
       'edit own moderated_content content',
       'use editorial transition create_new_draft',
       'use editorial transition publish',
-      'use editorial transition archive'
+      'use editorial transition archive',
     ]);
     $this->drupalLogin($user);
     $paths = [
diff --git a/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php b/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php
index f17e4ac83c..b2abed2b01 100644
--- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php
+++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php
@@ -89,7 +89,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 e52bf96137..905e188cfd 100644
--- a/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php
+++ b/core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php
@@ -538,7 +538,7 @@ public function testWorkflowDependencies() {
     $this->assertEquals([
       'entity_test_no_bundle',
       'entity_test_rev',
-      'node'
+      'node',
     ], $workflow->getTypePlugin()->getEntityTypes());
 
     // Delete the node type and ensure it is removed from the workflow.
diff --git a/core/modules/content_translation/content_translation.admin.inc b/core/modules/content_translation/content_translation.admin.inc
index bf33ba0af0..8883bb07c6 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 455d5ed3d8..83be66a742 100644
--- a/core/modules/content_translation/content_translation.install
+++ b/core/modules/content_translation/content_translation.install
@@ -20,14 +20,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/ContentTranslationUITestBase.php b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
index e7a7dfc9dd..8917dfe3c4 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,
     ], ['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,
     ], ['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,
     ], ['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/ContentTranslationLanguageChangeTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php
index ae326ef67b..227e0e2128 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationLanguageChangeTest.php
+++ b/core/modules/content_translation/tests/src/Functional/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 (this translation)'));
 
diff --git a/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php
index f15a8f9bc8..52a9230007 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php
@@ -154,7 +154,7 @@ public 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/tests/src/Functional/ContentTranslationUISkipTest.php b/core/modules/content_translation/tests/src/Functional/ContentTranslationUISkipTest.php
index 77c176e78e..97d0b00f5d 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 @@ public function testUICheckSkip() {
     $admin_user = $this->drupalCreateUser([
       '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 c755ac4906..c7e6ef967e 100644
--- a/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php
@@ -111,7 +111,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,
     ], ['language' => $language]);
     $this->drupalPostForm($add_url, $this->getEditValues($values, $langcode), $this->getFormSubmitActionForNewTranslation($entity, $langcode));
 
@@ -176,7 +176,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,
     ], ['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.
@@ -190,7 +190,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,
     ], ['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 b8776a26a1..44e816089e 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 @@ public function testConfigImportUpdates() {
       'langcode' => 'en',
       'status' => TRUE,
       'dependencies' => [
-        'module' => ['content_translation']
+        'module' => ['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 a814c391f1..b9d61b76d2 100644
--- a/core/modules/contextual/contextual.module
+++ b/core/modules/contextual/contextual.module
@@ -86,7 +86,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', ['@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 de30f5c424..338d5d704f 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) {
           [],
           [
             'contextual-views-field-links' => UrlHelper::encodePath(Json::encode($links)),
-          ]
-        ]
+          ],
+        ],
       ];
 
       $element = [
diff --git a/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php b/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
index f42bf20f80..0e5f721375 100644
--- a/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
+++ b/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
@@ -65,7 +65,7 @@ public function _contextual_links_id_testcases() {
       'links' => [
         'views_ui_edit' => [
           'route_parameters' => [
-            'view' => 'frontpage'
+            'view' => 'frontpage',
           ],
           'metadata' => [
             '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 45a781b4b9..d8f23a323d 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' => [
             'visible' => [
               ':input[id="edit-default-value-input-default-date-type"]' => ['value' => static::DEFAULT_VALUE_CUSTOM],
-            ]
-          ]
-        ]
+            ],
+          ],
+        ],
       ];
 
       return $element;
@@ -112,7 +112,7 @@ public static function processDefaultValue($default_value, FieldableEntityInterf
         [
           'value' => $value,
           'date' => $date,
-        ]
+        ],
       ];
     }
     return $default_value;
diff --git a/core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php b/core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php
index 0f068ab9ee..03e8b36c11 100644
--- a/core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php
+++ b/core/modules/datetime/src/Tests/Views/DateTimeHandlerTestBase.php
@@ -49,7 +49,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/tests/src/Functional/DateTimeFieldTest.php b/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php
index f4606d4968..9f58f2ff89 100644
--- a/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php
+++ b/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php
@@ -190,7 +190,7 @@ public 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']]),
       ]);
       $output = $this->renderTestEntity($id);
       $this->assertContains((string) $expected, $output, new FormattableMarkup('Formatted date field using datetime_time_ago format displayed as %expected in %timezone.', [
@@ -214,7 +214,7 @@ public 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']]),
       ]);
       $output = $this->renderTestEntity($id);
       $this->assertContains((string) $expected, $output, new FormattableMarkup('Formatted date field using datetime_time_ago format displayed as %expected in %timezone.', [
@@ -342,7 +342,7 @@ public 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']]),
     ]);
     $output = $this->renderTestEntity($id);
     $this->assertContains((string) $expected, $output, SafeMarkup::format('Formatted date field using datetime_time_ago format displayed as %expected.', ['%expected' => $expected]));
@@ -363,7 +363,7 @@ public 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']]),
     ]);
     $output = $this->renderTestEntity($id);
     $this->assertContains((string) $expected, $output, SafeMarkup::format('Formatted date field using datetime_time_ago format displayed as %expected.', ['%expected' => $expected]));
diff --git a/core/modules/datetime/tests/src/Kernel/Views/ArgumentDateTimeTest.php b/core/modules/datetime/tests/src/Kernel/Views/ArgumentDateTimeTest.php
index 6145483958..1ff8ad068b 100644
--- a/core/modules/datetime/tests/src/Kernel/Views/ArgumentDateTimeTest.php
+++ b/core/modules/datetime/tests/src/Kernel/Views/ArgumentDateTimeTest.php
@@ -35,7 +35,7 @@ protected function setUp($import_test_views = TRUE) {
         'type' => 'page',
         'field_date' => [
           'value' => $date,
-        ]
+        ],
       ]);
       $node->save();
       $this->nodes[] = $node;
diff --git a/core/modules/datetime/tests/src/Kernel/Views/DateTimeHandlerTestBase.php b/core/modules/datetime/tests/src/Kernel/Views/DateTimeHandlerTestBase.php
index f0c9c78614..c1ea94c8fc 100644
--- a/core/modules/datetime/tests/src/Kernel/Views/DateTimeHandlerTestBase.php
+++ b/core/modules/datetime/tests/src/Kernel/Views/DateTimeHandlerTestBase.php
@@ -47,7 +47,7 @@ protected function setUp($import_test_views = TRUE) {
     // 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/tests/src/Kernel/Views/FilterDateTest.php b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php
index 566285e256..e07302ad2b 100644
--- a/core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php
+++ b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php
@@ -55,7 +55,7 @@ protected function setUp($import_test_views = TRUE) {
         'type' => 'page',
         'field_date' => [
           'value' => $date,
-        ]
+        ],
       ]);
       $node->save();
       $this->nodes[] = $node;
diff --git a/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php
index 1e8e929f33..87cf2f8528 100644
--- a/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php
+++ b/core/modules/datetime/tests/src/Kernel/Views/FilterDateTimeTest.php
@@ -53,7 +53,7 @@ protected function setUp($import_test_views = TRUE) {
         'type' => 'page',
         'field_date' => [
           'value' => $date,
-        ]
+        ],
       ]);
       $node->save();
       $this->nodes[] = $node;
diff --git a/core/modules/datetime/tests/src/Kernel/Views/SortDateTimeTest.php b/core/modules/datetime/tests/src/Kernel/Views/SortDateTimeTest.php
index 7375c4db29..16e888abee 100644
--- a/core/modules/datetime/tests/src/Kernel/Views/SortDateTimeTest.php
+++ b/core/modules/datetime/tests/src/Kernel/Views/SortDateTimeTest.php
@@ -39,7 +39,7 @@ protected function setUp($import_test_views = TRUE) {
         'type' => 'page',
         'field_date' => [
           'value' => $date,
-        ]
+        ],
       ]);
       $node->save();
       $this->nodes[] = $node;
diff --git a/core/modules/dblog/dblog.module b/core/modules/dblog/dblog.module
index 700ceeaa6b..bc04ce8fe4 100644
--- a/core/modules/dblog/dblog.module
+++ b/core/modules/dblog/dblog.module
@@ -103,7 +103,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' => [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>.', [':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>.', [':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 b8dd074d49..dca641ae0c 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' => ['width' => '', 'height' => ''],
-      ]
+      ],
     ]);
     $editor->save();
 
@@ -202,7 +202,7 @@ public function testLoading() {
     $this->drupalCreateNode([
       'type' => 'article',
       'body' => [
-        ['value' => $this->randomMachineName(32), 'format' => 'full_html']
+        ['value' => $this->randomMachineName(32), 'format' => 'full_html'],
       ],
     ]);
 
@@ -234,7 +234,7 @@ public function testSupportedElementTypes() {
         'directory' => 'inline-images',
         'max_size' => '',
         'max_dimensions' => ['width' => '', 'height' => ''],
-      ]
+      ],
     ]);
     $editor->save();
 
@@ -242,7 +242,7 @@ public function testSupportedElementTypes() {
     $this->drupalCreateNode([
       'type' => 'page',
       'field_text' => [
-        ['value' => $this->randomMachineName(32), 'format' => 'full_html']
+        ['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 d00fe0e684..29b46cfd89 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' => [
             'allowed_html' => '<h2> <h3> <h4> <h5> <h6> <p> <br> <strong> <a>',
-          ]
+          ],
         ],
       ],
     ]);
@@ -108,7 +108,7 @@ protected function setUp() {
           'status' => 1,
           'settings' => [
             'allowed_html' => '<h2> <h3> <h4> <h5> <h6> <p> <br> <strong> <a>',
-          ]
+          ],
         ],
       ],
     ]);
@@ -128,7 +128,7 @@ protected function setUp() {
           'status' => 1,
           'settings' => [
             'allowed_html' => '<h2> <h3> <h4> <h5> <h6> <p> <br> <strong> <a> <embed>',
-          ]
+          ],
         ],
       ],
     ]);
@@ -210,9 +210,9 @@ protected function setUp() {
       $this->drupalCreateNode([
         'type' => 'article',
         'body' => [
-          ['value' => self::$sampleContent, 'format' => $sample['format']]
+          ['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 a4515d5673..5496378eaa 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 => [
           '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 = [
       $this->drupalCreateUser(static::$basicPermissions),
       $this->drupalCreateUser(array_merge(static::$basicPermissions, ['edit any article content'])),
-      $this->drupalCreateUser(array_merge(static::$basicPermissions, ['access in-place editing']))
+      $this->drupalCreateUser(array_merge(static::$basicPermissions, ['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 276f559225..16c0773e7c 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() {
       [
         '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 35820a093b..40a43fbef2 100644
--- a/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php
+++ b/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php
@@ -583,20 +583,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',
-        ['script']
+        ['script'],
       ],
       [
         '<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',
-        ['script', 'video']
+        ['script', 'video'],
       ],
       // No real use case for this, but it is an edge case we must ensure works.
       [
         '<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',
-        []
+        [],
       ],
     ];
   }
diff --git a/core/modules/field/field.module b/core/modules/field/field.module
index 1a18b91d73..d92568a777 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/Tests/Boolean/BooleanFieldTest.php b/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php
index 6fc6c6dc9f..887817533e 100644
--- a/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php
+++ b/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php
@@ -125,7 +125,7 @@ public function testBooleanField() {
         'type' => 'boolean_checkbox',
         'settings' => [
           '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 fa68cb6150..7c9a69fcc9 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 = [
       '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 = [
       '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 = [
       '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 19575840f2..7aa4d70cba 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([
       '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 ff1b3ee67b..88e8c18233 100644
--- a/core/modules/field/src/Tests/FormTest.php
+++ b/core/modules/field/src/Tests/FormTest.php
@@ -116,7 +116,7 @@ public function testFieldFormSingle() {
 
     // Submit with invalid value (field-level validation).
     $edit = [
-      "{$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.', ['%name' => $this->field['label']]), 'Field validation fails with invalid input.');
@@ -153,7 +153,7 @@ public function testFieldFormSingle() {
     // Empty the field.
     $value = '';
     $edit = [
-      "{$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.', ['@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 64da6c1a00..6f3b91ee33 100644
--- a/core/modules/field/src/Tests/Number/NumberFieldTest.php
+++ b/core/modules/field/src/Tests/Number/NumberFieldTest.php
@@ -57,7 +57,7 @@ public function testNumberDecimalField() {
       ->setComponent($field_name, [
         'type' => 'number',
         'settings' => [
-          'placeholder' => '0.00'
+          'placeholder' => '0.00',
         ],
       ])
       ->save();
@@ -151,7 +151,7 @@ public function testNumberIntegerField() {
       ->setComponent($field_name, [
         'type' => 'number',
         'settings' => [
-          'placeholder' => '4'
+          'placeholder' => '4',
         ],
       ])
       ->save();
@@ -170,12 +170,12 @@ public function testNumberIntegerField() {
         'value' => [
           'type' => 'int',
           'unsigned' => '',
-          'size' => 'normal'
+          'size' => 'normal',
         ],
       ],
       'unique keys' => [],
       'indexes' => [],
-      'foreign keys' => []
+      'foreign keys' => [],
     ];
     $this->assertEqual($storage->getSchema(), $expected);
 
@@ -290,7 +290,7 @@ public function testNumberFloatField() {
       ->setComponent($field_name, [
         'type' => 'number',
         'settings' => [
-          'placeholder' => '0.00'
+          'placeholder' => '0.00',
         ],
       ])
       ->save();
@@ -393,7 +393,7 @@ public function testNumberFormatter() {
       'bundle' => $type,
       'settings' => [
         'prefix' => $prefix,
-        'suffix' => $suffix
+        'suffix' => $suffix,
       ],
     ])->save();
 
@@ -403,7 +403,7 @@ public function testNumberFormatter() {
       'bundle' => $type,
       'settings' => [
         'prefix' => $prefix,
-        'suffix' => $suffix
+        'suffix' => $suffix,
       ],
     ])->save();
 
@@ -411,13 +411,13 @@ public function testNumberFormatter() {
       ->setComponent($float_field, [
         'type' => 'number',
         'settings' => [
-          'placeholder' => '0.00'
+          'placeholder' => '0.00',
         ],
       ])
       ->setComponent($integer_field, [
         'type' => 'number',
         'settings' => [
-          '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 97e470e92b..af36343e81 100644
--- a/core/modules/field/src/Tests/String/StringFieldTest.php
+++ b/core/modules/field/src/Tests/String/StringFieldTest.php
@@ -55,7 +55,7 @@ public function _testTextfieldWidgets($field_type, $widget_type) {
     $field_storage = FieldStorageConfig::create([
       '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 24c0effef2..50fb1374db 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 949ffda667..b170147d51 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 2f678798a2..d889f816f1 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' => [
           'value' => -1,
           'message' => t('%name does not accept the value @value.', ['%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 b161ed66d8..dc4caea212 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');
     $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 cfb5ecf084..6e12a8e519 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 900c154b4b..f3532d36d8 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 6dce67b45f..2270d221c8 100644
--- a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
+++ b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
@@ -318,7 +318,7 @@ public function testSelectionHandlerSettings() {
       'entity_type' => 'entity_test',
       'type' => 'entity_reference',
       'settings' => [
-        '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 6bc40cc3db..23d7bdb0d1 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' => [
           '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 dfc50f21aa..52b620cdc5 100644
--- a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
@@ -113,7 +113,7 @@ public function testCreate() {
     try {
       $field_storage_definition = [
         '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 @@ public function testCreate() {
    */
   public function testCreateWithExplicitSchema() {
     $schema = [
-      'dummy' => 'foobar'
+      'dummy' => 'foobar',
     ];
     $field_storage = FieldStorageConfig::create([
       'field_name' => 'field_2',
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/Plugin/migrate/source/d7/FieldInstancePerFormDisplayTest.php b/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d7/FieldInstancePerFormDisplayTest.php
index 0663b91092..b57357fa96 100644
--- a/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d7/FieldInstancePerFormDisplayTest.php
+++ b/core/modules/field/tests/src/Kernel/Plugin/migrate/source/d7/FieldInstancePerFormDisplayTest.php
@@ -265,7 +265,7 @@ public function providerSource() {
             'data' => 'a:7:{s:5:"label";s:7:"Integer";s:6:"widget";a:5:{s:6:"weight";s:1:"2";s:4:"type";s:6:"number";s:6:"module";s:6:"number";s:6:"active";i:0;s:8:"settings";a:0:{}}s:8:"settings";a:5:{s:3:"min";s:0:"";s:3:"max";s:0:"";s:6:"prefix";s:0:"";s:6:"suffix";s:0:"";s:18:"user_register_form";b:0;}s:7:"display";a:1:{s:7:"default";a:5:{s:5:"label";s:5:"above";s:4:"type";s:14:"number_integer";s:8:"settings";a:4:{s:18:"thousand_separator";s:1:" ";s:17:"decimal_separator";s:1:".";s:5:"scale";i:0;s:13:"prefix_suffix";b:1;}s:6:"module";s:6:"number";s:6:"weight";i:1;}}s:8:"required";i:0;s:11:"description";s:0:"";s:13:"default_value";N;}',
             'deleted' => '0',
             'type' => 'number_integer',
-          ]
+          ],
         ],
       ],
       [
diff --git a/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php b/core/modules/field/tests/src/Kernel/TestItemWithDependenciesTest.php
index d1a269a6a2..4e52b75965 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 d1824cfcce..705b702035 100644
--- a/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
+++ b/core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
@@ -227,13 +227,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 84cafb0893..447bcb5db1 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/FieldConfigListBuilder.php b/core/modules/field_ui/src/FieldConfigListBuilder.php
index cb720c32a9..b32b21db87 100644
--- a/core/modules/field_ui/src/FieldConfigListBuilder.php
+++ b/core/modules/field_ui/src/FieldConfigListBuilder.php
@@ -162,7 +162,7 @@ public function getDefaultOperations(EntityInterface $entity) {
         'weight' => 10,
         'url' => $entity->urlInfo("{$entity->getTargetEntityTypeId()}-field-edit-form"),
         'attributes' => [
-          'title' => $this->t('Edit field settings.')
+          'title' => $this->t('Edit field settings.'),
         ],
       ];
     }
@@ -172,7 +172,7 @@ public function getDefaultOperations(EntityInterface $entity) {
         'weight' => 100,
         'url' => $entity->urlInfo("{$entity->getTargetEntityTypeId()}-field-delete-form"),
         'attributes' => [
-          'title' => $this->t('Delete field.')
+          'title' => $this->t('Delete field.'),
         ],
       ];
     }
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 0a91862b35..b72f1dfb10 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' => [
         'title' => $this->t('Content'),
         'invisible' => TRUE,
-        'message' => $this->t('No field is displayed.')
+        'message' => $this->t('No field is displayed.'),
       ],
       'hidden' => [
         'title' => $this->t('Disabled', [], ['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' => ['class' => ['visually-hidden']]
+      '#attributes' => ['class' => ['visually-hidden']],
     ];
 
     $form['actions'] = ['#type' => 'actions'];
diff --git a/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php b/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php
index c27f3d4f52..74a49ed1a5 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 = [
       'empty_cell' => [
-        '#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 2895479b36..a36a5b5093 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) [
       '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 29f4367bb8..6e583710b5 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) [
       '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());
diff --git a/core/modules/field_ui/src/Tests/ManageDisplayTest.php b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
index 7ba011e08e..02fa63b462 100644
--- a/core/modules/field_ui/src/Tests/ManageDisplayTest.php
+++ b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
@@ -119,7 +119,7 @@ public function testFormatterUI() {
     $edit = [
       'fields[field_test][type]' => 'field_test_multiple',
       'fields[field_test][region]' => 'content',
-      'refresh_rows' => 'field_test'
+      'refresh_rows' => 'field_test',
     ];
     $this->drupalPostAjaxForm(NULL, $edit, ['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 d08ab03ba4..317f6bba9e 100644
--- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php
+++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
@@ -409,7 +409,7 @@ public function testDefaultValue() {
     FieldStorageConfig::create([
       'field_name' => $field_name,
       'entity_type' => 'node',
-      'type' => 'test_field'
+      'type' => 'test_field',
     ])->save();
     $field = FieldConfig::create([
       'field_name' => $field_name,
@@ -548,7 +548,7 @@ public function testLockedField() {
       'entity_type' => 'node',
       'type' => 'test_field',
       'cardinality' => 1,
-      'locked' => TRUE
+      'locked' => TRUE,
     ]);
     $field_storage->save();
     FieldConfig::create([
diff --git a/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php b/core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
index 2d02e44a55..5e3e693b75 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' => [],
-      'region' => 'content'
+      'region' => 'content',
     ];
     $this->assertEqual($display->getComponents(), $expected);
 
@@ -214,7 +214,7 @@ public function testFieldComponent() {
     $field_storage = FieldStorageConfig::create([
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => 'test_field'
+      'type' => 'test_field',
     ]);
     $field_storage->save();
     $field = FieldConfig::create([
@@ -360,7 +360,7 @@ public function testDeleteField() {
     $field_storage = FieldStorageConfig::create([
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => 'test_field'
+      'type' => 'test_field',
     ]);
     $field_storage->save();
     $field = FieldConfig::create([
@@ -409,7 +409,7 @@ public function testOnDependencyRemoval() {
     $field_storage = FieldStorageConfig::create([
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => 'text'
+      'type' => 'text',
     ]);
     $field_storage->save();
     $field = FieldConfig::create([
diff --git a/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php b/core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php
index 09d2a20114..c1d22b7423 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([
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => 'test_field'
+      'type' => 'test_field',
     ]);
     $field_storage->save();
     $field = FieldConfig::create([
@@ -185,7 +185,7 @@ public function testDeleteField() {
     $field_storage = FieldStorageConfig::create([
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => 'test_field'
+      'type' => 'test_field',
     ]);
     $field_storage->save();
     $field = FieldConfig::create([
@@ -234,7 +234,7 @@ public function testOnDependencyRemoval() {
     $field_storage = FieldStorageConfig::create([
       'field_name' => $field_name,
       'entity_type' => 'entity_test',
-      'type' => 'text'
+      'type' => 'text',
     ]);
     $field_storage->save();
     $field = FieldConfig::create([
diff --git a/core/modules/file/src/Tests/FileFieldWidgetTest.php b/core/modules/file/src/Tests/FileFieldWidgetTest.php
index ad47d77841..af1b429359 100644
--- a/core/modules/file/src/Tests/FileFieldWidgetTest.php
+++ b/core/modules/file/src/Tests/FileFieldWidgetTest.php
@@ -270,7 +270,7 @@ public 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([$nid]);
diff --git a/core/modules/file/src/Tests/SaveUploadTest.php b/core/modules/file/src/Tests/SaveUploadTest.php
index a9f69c2fb7..78ae5f7422 100644
--- a/core/modules/file/src/Tests/SaveUploadTest.php
+++ b/core/modules/file/src/Tests/SaveUploadTest.php
@@ -280,7 +280,7 @@ public function testHandleFileMunge() {
   public function testExistingRename() {
     $edit = [
       '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 @@ public function testExistingRename() {
   public function testExistingReplace() {
     $edit = [
       '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 @@ public function testExistingReplace() {
   public function testExistingError() {
     $edit = [
       '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 @@ public function testDrupalMovingUploadedFileError() {
 
     $edit = [
       '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 @@ public function testDrupalMovingUploadedFileError() {
     $this->assertResponse(200);
     $this->assertRaw(t('Upload error. Could not move uploaded file @file to destination @destination.', [
       '@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/AccessTest.php b/core/modules/file/tests/src/Kernel/AccessTest.php
index cfd8e56838..ae92b6119a 100644
--- a/core/modules/file/tests/src/Kernel/AccessTest.php
+++ b/core/modules/file/tests/src/Kernel/AccessTest.php
@@ -93,7 +93,7 @@ public function testCheckFieldAccess() {
     \Drupal::currentUser()->setAccount($this->user1);
     /** @var \Drupal\file\FileInterface $file */
     $file = File::create([
-      'uri' => 'public://test.png'
+      'uri' => 'public://test.png',
     ]);
     // While creating a file entity access will be allowed for create-only
     // fields.
diff --git a/core/modules/file/tests/src/Kernel/FileItemValidationTest.php b/core/modules/file/tests/src/Kernel/FileItemValidationTest.php
index c9a247bf40..cec3ce930f 100644
--- a/core/modules/file/tests/src/Kernel/FileItemValidationTest.php
+++ b/core/modules/file/tests/src/Kernel/FileItemValidationTest.php
@@ -78,9 +78,9 @@ public function testFileValidationConstraint($file_type) {
         'default' => [
           'files' => [
             'test.txt' => str_repeat('a', 3000),
-          ]
-        ]
-      ]
+          ],
+        ],
+      ],
     ]);
 
     // Test for max filesize.
@@ -95,7 +95,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 f95e9cd488..43748266b4 100644
--- a/core/modules/file/tests/src/Kernel/UsageTest.php
+++ b/core/modules/file/tests/src/Kernel/UsageTest.php
@@ -26,7 +26,7 @@ public function testGetUsage() {
         'module' => 'testing',
         'type' => 'foo',
         'id' => 1,
-        'count' => 1
+        'count' => 1,
       ])
       ->execute();
     db_insert('file_usage')
@@ -35,7 +35,7 @@ public 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/file/tests/src/Unit/Plugin/migrate/cckfield/d6/FileCckTest.php b/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d6/FileCckTest.php
index 2997596d95..e1499452cb 100644
--- a/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d6/FileCckTest.php
+++ b/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d6/FileCckTest.php
@@ -64,7 +64,7 @@ public function getFieldTypeProvider() {
     return [
       ['image', 'imagefield_widget'],
       ['file', 'filefield_widget'],
-      ['file', 'x_widget']
+      ['file', 'x_widget'],
     ];
   }
 
diff --git a/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d7/FileCckTest.php b/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d7/FileCckTest.php
index 8503eae783..3a9d3dd94a 100644
--- a/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d7/FileCckTest.php
+++ b/core/modules/file/tests/src/Unit/Plugin/migrate/cckfield/d7/FileCckTest.php
@@ -69,7 +69,7 @@ public function getFieldTypeProvider() {
     return [
       ['image', 'imagefield_widget'],
       ['file', 'filefield_widget'],
-      ['file', 'x_widget']
+      ['file', 'x_widget'],
     ];
   }
 
diff --git a/core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php b/core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php
index 28d0842004..51bcbc2182 100644
--- a/core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php
+++ b/core/modules/file/tests/src/Unit/Plugin/migrate/field/d6/FileFieldTest.php
@@ -63,7 +63,7 @@ public function getFieldTypeProvider() {
     return [
       ['image', 'imagefield_widget'],
       ['file', 'filefield_widget'],
-      ['file', 'x_widget']
+      ['file', 'x_widget'],
     ];
   }
 
diff --git a/core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php b/core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php
index 15d86a1096..a478bdb404 100644
--- a/core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php
+++ b/core/modules/file/tests/src/Unit/Plugin/migrate/field/d7/FileFieldTest.php
@@ -68,7 +68,7 @@ public function getFieldTypeProvider() {
     return [
       ['image', 'imagefield_widget'],
       ['file', 'filefield_widget'],
-      ['file', 'x_widget']
+      ['file', 'x_widget'],
     ];
   }
 
diff --git a/core/modules/filter/filter.module b/core/modules/filter/filter.module
index 87ff713bdf..f460151c43 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 f1a62c926a..86b8bbdeb1 100644
--- a/core/modules/filter/src/Plugin/Filter/FilterHtml.php
+++ b/core/modules/filter/src/Plugin/Filter/FilterHtml.php
@@ -391,7 +391,7 @@ public function tips($long = FALSE) {
       'h3' => [$this->t('Heading'), '<h3>' . $this->t('Subtitle three') . '</h3>'],
       'h4' => [$this->t('Heading'), '<h4>' . $this->t('Subtitle four') . '</h4>'],
       'h5' => [$this->t('Heading'), '<h5>' . $this->t('Subtitle five') . '</h5>'],
-      'h6' => [$this->t('Heading'), '<h6>' . $this->t('Subtitle six') . '</h6>']
+      'h6' => [$this->t('Heading'), '<h6>' . $this->t('Subtitle six') . '</h6>'],
     ];
     $header = [$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);
diff --git a/core/modules/filter/tests/src/Functional/FilterAdminTest.php b/core/modules/filter/tests/src/Functional/FilterAdminTest.php
index 21431e7969..47e639c59f 100644
--- a/core/modules/filter/tests/src/Functional/FilterAdminTest.php
+++ b/core/modules/filter/tests/src/Functional/FilterAdminTest.php
@@ -140,7 +140,7 @@ public function testFormatAdmin() {
     // exists.
     // @todo: See https://www.drupal.org/node/2031223 for the above.
     $edit_link = $this->xpath('//a[@href=:href]', [
-      ':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->assertNotEmpty($edit_link, format_string('Link href %href found.',
       ['%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 2203bbec1f..bbdacdf560 100644
--- a/core/modules/filter/tests/src/Kernel/FilterAPITest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterAPITest.php
@@ -48,7 +48,7 @@ public function testCheckMarkupFilterOrder() {
             'allowed_html' => '<p>',
           ],
         ],
-      ]
+      ],
     ]);
     $crazy_format->save();
 
@@ -180,10 +180,10 @@ public function testFilterFormatAPI() {
                 'a' => ['href' => TRUE],
                 'em' => TRUE,
               ],
-            ]
+            ],
           ],
         ],
-      ]
+      ],
     ]);
     $very_restricted_html_format->save();
     $this->assertIdentical(
@@ -217,7 +217,7 @@ public 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 cf72bbee45..b96f1cf23e 100644
--- a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
@@ -195,7 +195,7 @@ public 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 @@ public 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 @@ public 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 @@ public 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 @@ public 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 @@ public function testUrlFilter() {
     $filter->setConfiguration([
       'settings' => [
         'filter_url_length' => 496,
-      ]
+      ],
     ]);
 
     // @todo Possible categories:
@@ -842,7 +842,7 @@ public function testUrlFilter() {
     $filter->setConfiguration([
       'settings' => [
         'filter_url_length' => 20,
-      ]
+      ],
     ]);
     $tests = [
       'www.trimmed.com/d/ff.ext?a=1&b=2#a1' => [
@@ -924,7 +924,7 @@ public function testUrlFilterContent() {
     $filter->setConfiguration([
       'settings' => [
         '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 6f2425912b..f79915e2d8 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' => [
-      'id' => 'date'
+      'id' => 'date',
     ],
     'filter' => [
       'id' => 'date',
diff --git a/core/modules/forum/src/Form/Overview.php b/core/modules/forum/src/Form/Overview.php
index df6f94725a..da913c4ff0 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>.', [
       ':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 05cd860760..1ecd3b68fa 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' => [],
       '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 12bb551ffa..c5410f6183 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'] = [
       '#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/tests/src/Functional/Views/ForumIntegrationTest.php b/core/modules/forum/tests/src/Functional/Views/ForumIntegrationTest.php
index 19c000012d..23528de702 100644
--- a/core/modules/forum/tests/src/Functional/Views/ForumIntegrationTest.php
+++ b/core/modules/forum/tests/src/Functional/Views/ForumIntegrationTest.php
@@ -72,17 +72,17 @@ public function testForumIntegration() {
     $expected_result[] = [
       'nid' => $nodes[0]->id(),
       'sticky' => NodeInterface::STICKY,
-      'comment_count' => 1.
+      'comment_count' => 1.,
     ];
     $expected_result[] = [
       'nid' => $nodes[1]->id(),
       'sticky' => NodeInterface::NOT_STICKY,
-      'comment_count' => 2.
+      'comment_count' => 2.,
     ];
     $expected_result[] = [
       'nid' => $nodes[2]->id(),
       'sticky' => NodeInterface::NOT_STICKY,
-      'comment_count' => 3.
+      'comment_count' => 3.,
     ];
     $column_map = [
       'nid' => 'nid',
diff --git a/core/modules/hal/tests/fixtures/update/drupal-8.rest-hal_update_8301.php b/core/modules/hal/tests/fixtures/update/drupal-8.rest-hal_update_8301.php
index 842e52afd6..cccd707bb8 100644
Binary files a/core/modules/hal/tests/fixtures/update/drupal-8.rest-hal_update_8301.php and b/core/modules/hal/tests/fixtures/update/drupal-8.rest-hal_update_8301.php differ
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/Feed/FeedHalJsonTestBase.php b/core/modules/hal/tests/src/Functional/EntityResource/Feed/FeedHalJsonTestBase.php
index 43181323e3..76f1d6fe9e 100644
--- a/core/modules/hal/tests/src/Functional/EntityResource/Feed/FeedHalJsonTestBase.php
+++ b/core/modules/hal/tests/src/Functional/EntityResource/Feed/FeedHalJsonTestBase.php
@@ -35,10 +35,10 @@ protected function getExpectedNormalizedEntity() {
     return $normalization + [
       '_links' => [
         'self' => [
-          'href' => $this->baseUrl . '/aggregator/sources/1?_format=hal_json'
+          'href' => $this->baseUrl . '/aggregator/sources/1?_format=hal_json',
         ],
         'type' => [
-          'href' => $this->baseUrl . '/rest/type/aggregator_feed/aggregator_feed'
+          'href' => $this->baseUrl . '/rest/type/aggregator_feed/aggregator_feed',
         ],
       ],
     ];
@@ -51,7 +51,7 @@ protected function getNormalizedPostEntity() {
     return parent::getNormalizedPostEntity() + [
       '_links' => [
         'type' => [
-          'href' => $this->baseUrl . '/rest/type/aggregator_feed/aggregator_feed'
+          'href' => $this->baseUrl . '/rest/type/aggregator_feed/aggregator_feed',
         ],
       ],
     ];
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 7bbe21830c..af7b812fff 100644
--- a/core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php
+++ b/core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php
@@ -84,7 +84,7 @@ protected function getExpectedNormalizedEntity() {
               ],
             ],
             'uuid' => [
-              ['value' => $author->uuid()]
+              ['value' => $author->uuid()],
             ],
           ],
         ],
@@ -99,7 +99,7 @@ protected function getExpectedNormalizedEntity() {
               ],
             ],
             'uuid' => [
-              ['value' => $author->uuid()]
+              ['value' => $author->uuid()],
             ],
             'lang' => 'en',
           ],
diff --git a/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php b/core/modules/hal/tests/src/Kernel/EntityTranslationNormalizeTest.php
index 2597af4aff..48be45e759 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/HalLinkManagerTest.php b/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php
index 098868ea89..9d8ea5032d 100644
--- a/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php
+++ b/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php
@@ -91,7 +91,7 @@ public function testGetRelationInternalIds() {
       'entity_type_id' => 'node',
       'entity_type' => \Drupal::entityTypeManager()->getDefinition('node'),
       'bundle' => 'page',
-      'field_name' => 'field_ref'
+      'field_name' => 'field_ref',
     ], $internal_ids);
   }
 
diff --git a/core/modules/hal/tests/src/Kernel/NormalizeTest.php b/core/modules/hal/tests/src/Kernel/NormalizeTest.php
index d837b79a02..6126eed3c3 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' => [
         '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 a00d9e27f0..77714d2388 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 = [
diff --git a/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php b/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php
index 6255e41ab3..0fb885f71a 100644
--- a/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php
+++ b/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php
@@ -365,7 +365,7 @@ public function testInvalidDefaultImage() {
       'settings' => [
         'default_image' => [
           'uuid' => 100000,
-        ]
+        ],
       ],
     ]);
     $field_storage->save();
@@ -380,7 +380,7 @@ public function testInvalidDefaultImage() {
       'settings' => [
         'default_image' => [
           'uuid' => 100000,
-        ]
+        ],
       ],
     ]);
     $field->save();
diff --git a/core/modules/image/src/Tests/ImageFieldValidateTest.php b/core/modules/image/src/Tests/ImageFieldValidateTest.php
index e429d0bb20..1d67214942 100644
--- a/core/modules/image/src/Tests/ImageFieldValidateTest.php
+++ b/core/modules/image/src/Tests/ImageFieldValidateTest.php
@@ -19,27 +19,27 @@ public 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 54c5c64a19..02281b282b 100644
--- a/core/modules/image/src/Tests/ImageThemeFunctionTest.php
+++ b/core/modules/image/src/Tests/ImageThemeFunctionTest.php
@@ -116,7 +116,7 @@ public 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/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php b/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php
index acd255ba27..f873104a0c 100644
--- a/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php
+++ b/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php
@@ -165,7 +165,7 @@ public function testDisplayErrorMessagesNotInlineQuickEdit() {
       '#title' => 'Test',
       '#parents' => ['test'],
       '#id' => 'edit-test',
-      '#array_parents' => ['test']
+      '#array_parents' => ['test'],
     ];
     $form_state = new FormState();
     $form_state->setErrorByName('test', 'invalid');
diff --git a/core/modules/language/src/Form/LanguageFormBase.php b/core/modules/language/src/Form/LanguageFormBase.php
index 8c8f5fac69..d30c4b6922 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'] = [
         '#type' => 'item',
         '#title' => $this->t('Language code'),
-        '#markup' => $language->id()
+        '#markup' => $language->id(),
       ];
       $form['langcode'] = [
         '#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 c1333e6a27..d3de9ac106 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' => ['class' => ['language-customization-checkbox']],
         '#attached' => [
           'library' => [
-            'language/drupal.language.admin'
+            'language/drupal.language.admin',
           ],
         ],
       ];
diff --git a/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php b/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php
index 87ad05bfd1..0f3dd1f0ba 100644
--- a/core/modules/language/tests/src/Functional/LanguageConfigurationElementTest.php
+++ b/core/modules/language/tests/src/Functional/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 = [
-      '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([
         'type' => 'article',
-        'name' => 'Article'
+        'name' => 'Article',
       ]);
     }
     $admin_user = $this->drupalCreateUser(['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 = [
-      '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/tests/src/Functional/LanguageNegotiationContentEntityTest.php b/core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.php
index 27785c0952..3ac9406252 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/Functional/LanguageUrlRewritingTest.php b/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
index 7021aa0027..07eec52514 100644
--- a/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
+++ b/core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
@@ -108,7 +108,7 @@ public function testDomainNameNegotiationPort() {
     $edit = [
       '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/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/Views/FilterLanguageTest.php b/core/modules/language/tests/src/Kernel/Views/FilterLanguageTest.php
index c94d623e93..004207281c 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 5d772a98ce..8fa765e0b6 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 [
       '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 80913ece8d..4cf92eb02a 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([
       '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 fade172826..e39ece6d20 100644
--- a/core/modules/locale/locale.batch.inc
+++ b/core/modules/locale/locale.batch.inc
@@ -242,7 +242,7 @@ function locale_translation_http_check($uri) {
       'allow_redirects' => [
         'on_redirect' => function(RequestInterface $request, ResponseInterface $response, UriInterface $request_uri) use (&$actual_uri) {
           $actual_uri = (string) $request_uri;
-        }
+        },
       ],
     ])->head($uri);
     $result = [];
diff --git a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php b/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
index 67c2dfa707..15a476bd74 100644
--- a/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
+++ b/core/modules/locale/tests/src/Functional/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 @@ public 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 @@ public 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/tests/src/Functional/LocaleFileSystemFormTest.php b/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php
index face32e69b..0071471f14 100644
--- a/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php
+++ b/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php
@@ -45,7 +45,7 @@ public function testFileConfigurationPage() {
     // The setting should persist.
     $translation_path = $this->publicFilesDirectory . '/translations_changed';
     $fields = [
-      '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/tests/src/Functional/LocaleUpdateInterfaceTest.php b/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php
index c6c69c2a97..ab1de7e929 100644
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateInterfaceTest.php
+++ b/core/modules/locale/tests/src/Functional/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', ['%local_path' => 'core/modules/locale/tests/test.de.po'])
+      '@info' => t('File not found at %local_path', ['%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 a63995922d..d43ad8af58 100644
--- a/core/modules/migrate/tests/src/Kernel/MigrateRollbackEntityConfigTest.php
+++ b/core/modules/migrate/tests/src/Kernel/MigrateRollbackEntityConfigTest.php
@@ -83,14 +83,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 = [
@@ -106,7 +106,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/FileCopyTest.php b/core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php
index 644371e5f5..cdc1295535 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) {
@@ -113,17 +113,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 5e7cbaca4c..3db9625260 100644
--- a/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php
+++ b/core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php
@@ -384,7 +384,7 @@ public function testImportWithValidRowWithException() {
   public function testProcessRow() {
     $expected = [
       '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 3c3cba8859..1a33974471 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'] = [
       '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'] = [
       '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/VariableTranslationTest.php b/core/modules/migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php
index 152706798c..1d7f2d944b 100644
--- a/core/modules/migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php
+++ b/core/modules/migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php
@@ -43,7 +43,7 @@ class VariableTranslationTest extends MigrateSqlSourceTestCase {
       'language' => 'mi',
       'site_slogan' => 'Ko whakamataku heke',
       'site_name' => 'ingoa_pae',
-    ]
+    ],
   ];
 
   /**
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 d1905b0e6c..d2a15666d1 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
@@ -44,7 +44,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 b96ee5aff6..b837b7d371 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 = [
       'operations' => [
-        ['_node_mass_update_batch_process', [$nodes, $updates, $langcode, $load, $revisions]]
+        ['_node_mass_update_batch_process', [$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 dd151a4a96..b0a87d889a 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 4e76edddd2..ad10d9ce2a 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'] = [
       '#type' => 'container',
       '#attributes' => [
-        'class' => ['node-preview-container', 'container-inline']
+        'class' => ['node-preview-container', 'container-inline'],
       ],
     ];
 
@@ -1173,7 +1173,7 @@ function node_access_rebuild($batch_mode = FALSE) {
         'operations' => [
           ['_node_access_rebuild_batch_operation', []],
         ],
-        '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 8b6125b87a..c827df8194 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' => [
         'data-drupal-autosubmit' => TRUE,
-      ]
+      ],
     ];
 
     $form['submit'] = [
diff --git a/core/modules/node/src/NodeForm.php b/core/modules/node/src/NodeForm.php
index 4c9bbac7b6..54fdf6f114 100644
--- a/core/modules/node/src/NodeForm.php
+++ b/core/modules/node/src/NodeForm.php
@@ -100,7 +100,7 @@ public function form(array $form, FormStateInterface $form_state) {
     if ($this->operation == 'edit') {
       $form['#title'] = $this->t('<em>Edit @type</em> @title', [
         '@type' => node_get_type_label($node),
-        '@title' => $node->label()
+        '@title' => $node->label(),
       ]);
     }
 
@@ -146,8 +146,8 @@ public function form(array $form, FormStateInterface $form_state) {
       '#type' => 'container',
       '#weight' => 99,
       '#attributes' => [
-        'class' => ['node-form-footer']
-      ]
+        'class' => ['node-form-footer'],
+      ],
     ];
     $form['status']['#group'] = 'footer';
 
diff --git a/core/modules/node/src/NodeTypeListBuilder.php b/core/modules/node/src/NodeTypeListBuilder.php
index be6e5f638b..870729891a 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 f0971fb3bb..5bee777de7 100644
--- a/core/modules/node/src/NodeViewBuilder.php
+++ b/core/modules/node/src/NodeViewBuilder.php
@@ -47,7 +47,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 b5aebf48fa..d7932beca5 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'] = [
diff --git a/core/modules/node/src/Plugin/Search/NodeSearch.php b/core/modules/node/src/Plugin/Search/NodeSearch.php
index c200f34b61..afe8ad2e5a 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'] = [
-      '#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 34d4bcf6c5..2542275217 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 [
-      '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 9c3465d2ba..b709ed11dd 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/NodeRevisionsTest.php b/core/modules/node/src/Tests/NodeRevisionsTest.php
index e9fcece934..4a5b78f504 100644
--- a/core/modules/node/src/Tests/NodeRevisionsTest.php
+++ b/core/modules/node/src/Tests/NodeRevisionsTest.php
@@ -171,7 +171,7 @@ public function testRevisions() {
     $this->assertRaw(t('@type %title has been reverted to the revision from %revision-date.', [
       '@type' => 'Basic page',
       '%title' => $nodes[1]->label(),
-      '%revision-date' => format_date($nodes[1]->getRevisionCreationTime())
+      '%revision-date' => format_date($nodes[1]->getRevisionCreationTime()),
     ]), 'Revision reverted.');
     $node_storage->resetCache([$node->id()]);
     $reverted_node = $node_storage->load($node->id());
diff --git a/core/modules/node/src/Tests/NodeTestBase.php b/core/modules/node/src/Tests/NodeTestBase.php
index 2dcaba5b38..643684cde4 100644
--- a/core/modules/node/src/Tests/NodeTestBase.php
+++ b/core/modules/node/src/Tests/NodeTestBase.php
@@ -105,7 +105,7 @@ public function nodeAccessAssertMessage($operation, $result, $langcode = NULL) {
       [
         '@result' => $result ? 'true' : 'false',
         '%op' => $operation,
-        '%langcode' => !empty($langcode) ? $langcode : 'empty'
+        '%langcode' => !empty($langcode) ? $langcode : 'empty',
       ]
     );
   }
diff --git a/core/modules/node/src/Tests/NodeTypeTest.php b/core/modules/node/src/Tests/NodeTypeTest.php
index 70d3ac40b5..9938bb0ab5 100644
--- a/core/modules/node/src/Tests/NodeTypeTest.php
+++ b/core/modules/node/src/Tests/NodeTypeTest.php
@@ -249,7 +249,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/PagePreviewTest.php b/core/modules/node/src/Tests/PagePreviewTest.php
index ed4c6fa1cb..45aa19e433 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/tests/src/Functional/NodeAccessFieldTest.php b/core/modules/node/tests/src/Functional/NodeAccessFieldTest.php
index 082f288c68..a78a780bcc 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([
       '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 6c5bcd4ed0..5d987b36a1 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([
       'access content',
       'administer content types',
-      'administer menu'
+      'administer menu',
     ]);
 
     $this->config('user.role.' . RoleInterface::ANONYMOUS_ID)->set('permissions', [])->save();
diff --git a/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php b/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php
index 9ea75ccff7..7ed8413fc7 100644
--- a/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php
+++ b/core/modules/node/tests/src/Functional/NodeAccessRebuildNodeGrantsTest.php
@@ -52,7 +52,7 @@ public function testNodeAccessRebuildNodeGrants() {
     for ($i = 0; $i < 30; $i++) {
       $nodes[] = $this->drupalCreateNode([
         'uid' => $this->webUser->id(),
-        'private' => [['value' => 1]]
+        'private' => [['value' => 1]],
       ]);
     }
 
diff --git a/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php b/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
index 7e71847001..06fec9d305 100644
--- a/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
+++ b/core/modules/node/tests/src/Functional/NodeRevisionsAllTest.php
@@ -39,7 +39,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);
@@ -109,7 +109,7 @@ public function testRevisions() {
         'revert all revisions',
         'delete all revisions',
         'edit any page content',
-        'delete any page content'
+        'delete any page content',
       ]
     );
     $this->drupalLogin($content_admin);
@@ -134,7 +134,7 @@ public function testRevisions() {
       [
         '@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([$node->id()]);
diff --git a/core/modules/node/tests/src/Functional/NodeTestBase.php b/core/modules/node/tests/src/Functional/NodeTestBase.php
index 2ef0d73c50..e52708632b 100644
--- a/core/modules/node/tests/src/Functional/NodeTestBase.php
+++ b/core/modules/node/tests/src/Functional/NodeTestBase.php
@@ -102,7 +102,7 @@ public function nodeAccessAssertMessage($operation, $result, $langcode = NULL) {
       [
         '@result' => $result ? 'true' : 'false',
         '%op' => $operation,
-        '%langcode' => !empty($langcode) ? $langcode : 'empty'
+        '%langcode' => !empty($langcode) ? $langcode : 'empty',
       ]
     );
   }
diff --git a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
index a44bea131e..69b262e295 100644
--- a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
+++ b/core/modules/node/tests/src/Functional/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,
     ], ['language' => $language]);
     $edit = $this->getEditValues($values, $langcode);
     $edit['status[value]'] = FALSE;
diff --git a/core/modules/node/tests/src/Functional/NodeViewTest.php b/core/modules/node/tests/src/Functional/NodeViewTest.php
index b0eaa47f66..36a26fc370 100644
--- a/core/modules/node/tests/src/Functional/NodeViewTest.php
+++ b/core/modules/node/tests/src/Functional/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/tests/src/Functional/Views/FrontPageTest.php b/core/modules/node/tests/src/Functional/Views/FrontPageTest.php
index 37a6b91f3f..618119c061 100644
--- a/core/modules/node/tests/src/Functional/Views/FrontPageTest.php
+++ b/core/modules/node/tests/src/Functional/Views/FrontPageTest.php
@@ -284,7 +284,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/tests/src/Functional/Views/NodeLanguageTest.php b/core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php
index d2d1b479a4..31e085213c 100644
--- a/core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php
+++ b/core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php
@@ -75,7 +75,7 @@ protected function setUp($import_test_views = TRUE) {
       ],
       'fr' => [
         'Premier nœud fr',
-      ]
+      ],
     ];
 
     // Create nodes with translations.
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 9f28c065ae..34c8dd3ddc 100644
--- a/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php
+++ b/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php
@@ -36,7 +36,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/options/tests/src/Kernel/Views/OptionsListFilterTest.php b/core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php
index bc377b094a..06bedade85 100644
--- a/core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php
+++ b/core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php
@@ -78,20 +78,20 @@ public function testViewsTestOptionsListGroupedFilter() {
               'operator' => 'or',
               'value' => [
                 $this->fieldValues[0] => $this->fieldValues[0],
-              ]
+              ],
             ],
             2 => [
               'title' => 'Second',
               'operator' => 'or',
               'value' => [
                 $this->fieldValues[1] => $this->fieldValues[1],
-              ]
+              ],
             ],
           ],
         ],
         'reduce_duplicates' => '',
         'plugin_id' => 'list_field',
-      ]
+      ],
     ];
     $view->setDisplay();
     $view->displayHandlers->get('default')->overrideOption('filters', $filters);
diff --git a/core/modules/page_cache/src/Tests/PageCacheTest.php b/core/modules/page_cache/src/Tests/PageCacheTest.php
index cb00cb6861..07ae9264cb 100644
--- a/core/modules/page_cache/src/Tests/PageCacheTest.php
+++ b/core/modules/page_cache/src/Tests/PageCacheTest.php
@@ -355,7 +355,7 @@ public function testPageCacheAnonymous403404() {
           0 => [
             '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 884d24fb8a..1cb85f7b89 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'] = [
         '#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 602e84f42f..773b792f38 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 2b1e4b230a..cb6419c1da 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 = [
-          '#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 = [
       '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 150ef000a8..19dad3b805 100644
--- a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
+++ b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
@@ -87,7 +87,7 @@ protected function setUp() {
         0 => [
           'value' => '<p>How are you?</p>',
           'format' => 'filtered_html',
-        ]
+        ],
       ],
       'revision_log' => $this->randomString(),
     ]);
@@ -188,7 +188,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
@@ -364,7 +364,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 546ac3af6d..caf34763ad 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' => [
-        '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 2943748587..8cc2d2f8b6 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, [
         '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 7e98286002..fddd440894 100644
--- a/core/modules/rdf/tests/src/Functional/UserAttributesTest.php
+++ b/core/modules/rdf/tests/src/Functional/UserAttributesTest.php
@@ -45,7 +45,7 @@ public function testUserAttributesInMarkup() {
     $authors = [
       $this->drupalCreateUser([], $this->randomMachineName(30)),
       $this->drupalCreateUser([], $this->randomMachineName(20)),
-      $this->drupalCreateUser([], $this->randomMachineName(5))
+      $this->drupalCreateUser([], $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 8ad0e6a6c8..7b16149b44 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' => [
                 '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 b50d71be65..328e589aab 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 c6acb5683a..63a4fea9e6 100644
--- a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php
+++ b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php
@@ -78,7 +78,7 @@ public function testResponsiveImageFormatterUI() {
       ])
       ->addImageStyleMapping('responsive_image_test_module.narrow', '1x', [
         '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', [
diff --git a/core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php b/core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php
index bc9663dcf2..e181b96f22 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 6d45178804..8ed5a6dbff 100644
--- a/core/modules/rest/rest.post_update.php
+++ b/core/modules/rest/rest.post_update.php
@@ -53,7 +53,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 3f97e46901..d33a6e79e3 100644
--- a/core/modules/rest/src/Tests/RESTTestBase.php
+++ b/core/modules/rest/src/Tests/RESTTestBase.php
@@ -383,7 +383,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/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 e2c0ccdf65..69f7c3aafe 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php
@@ -71,8 +71,8 @@ protected function getExpectedNormalizedEntity() {
     $normalization = [
       'uuid' => [
         [
-          'value' => $this->entity->uuid()
-        ]
+          'value' => $this->entity->uuid(),
+        ],
       ],
       'id' => [
         [
@@ -87,15 +87,15 @@ protected function getExpectedNormalizedEntity() {
       'type' => [
         [
           'value' => 'entity_test',
-        ]
+        ],
       ],
       'name' => [
         [
           'value' => 'Llama',
-        ]
+        ],
       ],
       'created' => [
-        $this->formatExpectedTimestampItemValues((int) $this->entity->get('created')->value)
+        $this->formatExpectedTimestampItemValues((int) $this->entity->get('created')->value),
       ],
       'user_id' => [
         [
@@ -103,7 +103,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/EntityResource/Feed/FeedResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/Feed/FeedResourceTestBase.php
index 1e79395a60..498404dc96 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/Feed/FeedResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/Feed/FeedResourceTestBase.php
@@ -66,33 +66,33 @@ protected function getExpectedNormalizedEntity() {
     return [
       'uuid' => [
         [
-          'value' => 'abcdefg'
-        ]
+          'value' => 'abcdefg',
+        ],
       ],
       'fid' => [
         [
-          'value' => 1
-        ]
+          'value' => 1,
+        ],
       ],
       'langcode' => [
         [
-          'value' => 'en'
-        ]
+          'value' => 'en',
+        ],
       ],
       'url' => [
         [
-          'value' => 'http://example.com/rss.xml'
-        ]
+          'value' => 'http://example.com/rss.xml',
+        ],
       ],
       'title' => [
         [
-          'value' => 'Feed'
-        ]
+          'value' => 'Feed',
+        ],
       ],
       'refresh' => [
         [
-          'value' => 900
-        ]
+          'value' => 900,
+        ],
       ],
       'checked' => [
         $this->formatExpectedTimestampItemValues(123456789),
@@ -102,28 +102,28 @@ protected function getExpectedNormalizedEntity() {
       ],
       'link' => [
         [
-          'value' => 'http://example.com'
-        ]
+          'value' => 'http://example.com',
+        ],
       ],
       'description' => [
         [
-          'value' => 'Feed Resource Test 1'
-        ]
+          'value' => 'Feed Resource Test 1',
+        ],
       ],
       'image' => [
         [
-          'value' => 'http://example.com/feed_logo'
-        ]
+          'value' => 'http://example.com/feed_logo',
+        ],
       ],
       'hash' => [
         [
-          'value' => 'abcdefg'
-        ]
+          'value' => 'abcdefg',
+        ],
       ],
       'etag' => [
         [
-          'value' => 'hijklmn'
-        ]
+          'value' => 'hijklmn',
+        ],
       ],
       'modified' => [
         $this->formatExpectedTimestampItemValues(123456789),
@@ -138,23 +138,23 @@ protected function getNormalizedPostEntity() {
     return [
       'title' => [
         [
-          'value' => 'Feed Resource Post Test'
-        ]
+          'value' => 'Feed Resource Post Test',
+        ],
       ],
       'url' => [
         [
-          'value' => 'http://example.com/feed'
-        ]
+          'value' => 'http://example.com/feed',
+        ],
       ],
       'refresh' => [
         [
-          'value' => 900
-        ]
+          'value' => 900,
+        ],
       ],
       'description' => [
         [
-          'value' => 'Feed Resource Post Test Description'
-        ]
+          'value' => 'Feed Resource Post Test Description',
+        ],
       ],
     ];
   }
diff --git a/core/modules/rest/tests/src/Functional/ResourceTest.php b/core/modules/rest/tests/src/Functional/ResourceTest.php
index 1e8babe0db..d04b990e60 100644
--- a/core/modules/rest/tests/src/Functional/ResourceTest.php
+++ b/core/modules/rest/tests/src/Functional/ResourceTest.php
@@ -121,7 +121,7 @@ public function testSerializationClassIsOptional() {
           ],
           'supported_auth' => [
             'cookie',
-          ]
+          ],
         ],
       ],
     ])->save();
diff --git a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
index ad1a0b30a5..83c40e0e5a 100644
--- a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
+++ b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
@@ -272,7 +272,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/src/Kernel/Entity/ConfigDependenciesTest.php b/core/modules/rest/tests/src/Kernel/Entity/ConfigDependenciesTest.php
index 51ad3e977f..6da8f94e4e 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 ae99a8731e..d56fe657a3 100644
--- a/core/modules/search/search.module
+++ b/core/modules/search/search.module
@@ -783,7 +783,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 9a8f6deb30..748324fee6 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', [
         '%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'] = [
-      '#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'] = [
       '#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 417d9918a2..e6cc2df0b5 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 7037646bc8..e9d2ac8bca 100644
--- a/core/modules/search/tests/src/Kernel/SearchMatchTest.php
+++ b/core/modules/search/tests/src/Kernel/SearchMatchTest.php
@@ -156,7 +156,7 @@ public function _testQueries() {
       '"am minim veniam" -"cillum dolore"' => [5, 6],
       '"am minim veniam" -"dolore cillum"' => [5, 6, 7],
       'xxxxx "minim am veniam es" OR dolore' => [],
-      'xx "minim am veniam es" OR dolore' => []
+      'xx "minim am veniam es" OR dolore' => [],
     ];
     foreach ($queries as $query => $results) {
       $result = db_select('search_index', 'i')
diff --git a/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php b/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php
index 83bf47a495..4a5cffdcaf 100644
--- a/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php
+++ b/core/modules/shortcut/tests/src/Functional/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 e1d21ae7c8..8d295950af 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',
-      ['colspan' => 2, 'data' => 'Status']
+      ['colspan' => 2, 'data' => 'Status'],
     ];
     $form['result']['results'] = [];
     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 1e9e75da0b..7131041d15 100644
--- a/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
+++ b/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
@@ -278,7 +278,7 @@ public function testEnableModulesFixedList() {
     $field_storage = FieldStorageConfig::create([
       '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 = []) {
       $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", [
diff --git a/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php b/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php
index d62cc48a3e..d6fe19964a 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 [
-        '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 bb9da9411a..957391db76 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 = [
       'name' => $user->getUsername(),
-      'pass' => $user->pass_raw
+      'pass' => $user->pass_raw,
     ];
     $this->drupalPostForm('user/login', $edit, t('Log in'), [
       'query' => ['destination' => 'user/logout'],
diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php
index 569103224e..8ca42ce36f 100644
--- a/core/modules/simpletest/src/WebTestBase.php
+++ b/core/modules/simpletest/src/WebTestBase.php
@@ -283,7 +283,7 @@ protected function drupalLogin(AccountInterface $account) {
 
     $edit = [
       'name' => $account->getUsername(),
-      'pass' => $account->pass_raw
+      'pass' => $account->pass_raw,
     ];
     $this->drupalPostForm('user/login', $edit, t('Log in'));
 
@@ -657,7 +657,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 1802a4569c..3df856800f 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 [
       '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 787c35bff2..90a62093b6 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 9e0a374a4a..253fefd7d9 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'] = [
       '#type' => 'status_report',
       '#requirements' => $requirements,
-      '#suffix' => $this->t('Check the messages and <a href=":url">try again</a>.', [':url' => $try_again_url])
+      '#suffix' => $this->t('Check the messages and <a href=":url">try again</a>.', [':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 50026606d2..8a5172c670 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.',
             [
               '%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 28ff7ef4cc..b1e740fda1 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.',
             [
               '%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 a66b26b104..2fecbf434f 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'] = [
@@ -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 986ff11497..9c25fd29b9 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 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30];
     $form['feed_default_items'] = [
@@ -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'] = [
       '#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 2ad98931a3..b461bc46b0 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'] = [
       '#type' => 'hidden',
-      '#value' => $var
+      '#value' => $var,
     ];
     $form['config_key'] = [
       '#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'] = [
         '#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 65fdc51cc7..28bb3814c9 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 90c548b630..76ab6fb160 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() {
       ], [], 'ajax-test/dialog-contents', ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_dialog']], [], NULL, [
       'submit' => [
         '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',
       ], [], 'ajax-test/dialog-contents', ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_dialog']], [], NULL, [
       // Don't send a target.
-      'submit' => []
+      'submit' => [],
     ]);
     // 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 9af773b86c..5ad960a9f0 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[] = [
         'message' => $message,
         'group' => $group,
-        'caller' => $caller
+        'caller' => $caller,
       ];
     }
   }
diff --git a/core/modules/system/src/Tests/Path/UrlAliasFixtures.php b/core/modules/system/src/Tests/Path/UrlAliasFixtures.php
index 71cd736380..417fb7f1d4 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() {
       [
         'source' => '/node/1',
         'alias' => '/alias_for_node_1_en',
-        'langcode' => 'en'
+        'langcode' => 'en',
       ],
       [
         'source' => '/node/2',
         'alias' => '/alias_for_node_2_en',
-        'langcode' => 'en'
+        'langcode' => 'en',
       ],
       [
         'source' => '/node/1',
         'alias' => '/alias_for_node_1_fr',
-        'langcode' => 'fr'
+        'langcode' => 'fr',
       ],
       [
         '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 1be9561b36..0f219c5036 100644
--- a/core/modules/system/src/Tests/Session/SessionTest.php
+++ b/core/modules/system/src/Tests/Session/SessionTest.php
@@ -57,7 +57,7 @@ public function testSessionSaveRegenerate() {
     // session_test_user_login() which breaks a normal assertion.
     $edit = [
       '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 fab7a37a34..ab1840c655 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/Theme/FunctionsTest.php b/core/modules/system/src/Tests/Theme/FunctionsTest.php
index 825834859a..27116dd5a9 100644
--- a/core/modules/system/src/Tests/Theme/FunctionsTest.php
+++ b/core/modules/system/src/Tests/Theme/FunctionsTest.php
@@ -209,7 +209,7 @@ public function testLinks() {
         'url' => Url::fromRoute('router_test.1'),
         'query' => [
           'key' => 'value',
-        ]
+        ],
       ],
     ];
 
@@ -330,7 +330,7 @@ public function testIndexedKeyedLinks() {
         'url' => Url::fromRoute('router_test.1'),
         'query' => [
           'key' => 'value',
-        ]
+        ],
       ],
     ];
 
diff --git a/core/modules/system/src/Tests/Theme/TwigTransTest.php b/core/modules/system/src/Tests/Theme/TwigTransTest.php
index b73cdaf0c2..5cd34b6bd9 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/system.api.php b/core/modules/system/system.api.php
index 7951ecd21f..ca1e02c986 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[] = [
         'title' => t('Foo'),
         'url' => Url::fromRoute('system.themes_page'),
-        'query' => ['theme' => $theme->getName()]
+        'query' => ['theme' => $theme->getName()],
       ];
     }
   }
diff --git a/core/modules/system/system.install b/core/modules/system/system.install
index db361f3971..3524968061 100644
--- a/core/modules/system/system.install
+++ b/core/modules/system/system.install
@@ -51,10 +51,10 @@ function system_requirements($phase) {
         'value' => t('%profile_name (%profile-%version)', [
           '%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 cb35676899..c19c6bb664 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 fa394473d7..cf5f9dfebe 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 5ba65e8013..a34d288ff8 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([
               'width' => 400,
-            ])
+            ]),
           ],
         ],
         'link3' => [
@@ -151,7 +151,7 @@ public function dialog() {
             'data-dialog-options' => json_encode([
               'target' => 'ajax-test-dialog-wrapper-1',
               'width' => 800,
-            ])
+            ]),
           ],
         ],
         'link4' => [
@@ -179,7 +179,7 @@ public function dialog() {
             'data-dialog-options' => json_encode([
               'width' => 800,
               'height' => 500,
-            ])
+            ]),
           ],
         ],
         'link7' => [
@@ -190,7 +190,7 @@ public function dialog() {
             'data-dialog-type' => 'dialog',
             'data-dialog-options' => json_encode([
               '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 5f11b6b71a..bc9b8e35b8 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'] = [
-      '#type' => 'hidden'
+      '#type' => 'hidden',
     ];
     $form['button1'] = [
       '#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 1d34f8a459..9a5951e6d3 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 [
       'success' => [
         '#markup' => 'Redirection successful.',
-      ]
+      ],
     ];
   }
 
@@ -103,7 +103,7 @@ public function testProgrammatic($value = 1) {
     return [
       'success' => [
         '#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 b4e3ca5632..a5450b1064 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' => ['id'],
     'unique keys' => [
-      'name' => ['name']
+      'name' => ['name'],
     ],
     'indexes' => [
       'ages' => ['age'],
@@ -148,7 +148,7 @@ function database_test_schema() {
       ],
       'blob2' => [
         'description' => 'A second BLOB field.',
-        'type' => 'blob'
+        'type' => 'blob',
       ],
     ],
     'primary key' => ['id'],
@@ -212,7 +212,7 @@ function database_test_schema() {
     ],
     'primary key' => ['id'],
     'unique keys' => [
-      'name' => ['name']
+      'name' => ['name'],
     ],
     'indexes' => [
       'ages' => ['age'],
@@ -242,7 +242,7 @@ function database_test_schema() {
     ],
     'primary key' => ['id'],
     'unique keys' => [
-      'name' => ['name']
+      'name' => ['name'],
     ],
   ];
 
diff --git a/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php b/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php
index 9ba11b7733..2a6b83965e 100644
--- a/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php
+++ b/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php
@@ -62,7 +62,7 @@ public function renderArray() {
       '#pre_render' => [function () {
         $elements = $this->earlyRenderContent();
         return $elements;
-      }
+      },
       ],
     ];
   }
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 bcf55f48b2..27337f2c12 100644
--- a/core/modules/system/tests/modules/entity_test/entity_test.module
+++ b/core/modules/system/tests/modules/entity_test/entity_test.module
@@ -261,7 +261,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/entity_test_update/update/entity_rev_pub_updates_8400.inc b/core/modules/system/tests/modules/entity_test_update/update/entity_rev_pub_updates_8400.inc
index 988505d58a..6ccfabc064 100644
--- a/core/modules/system/tests/modules/entity_test_update/update/entity_rev_pub_updates_8400.inc
+++ b/core/modules/system/tests/modules/entity_test_update/update/entity_rev_pub_updates_8400.inc
@@ -38,7 +38,7 @@ function entity_test_update_update_8400() {
   $revision_metadata_keys = [
     'revision_user' => 'revision_user',
     'revision_created' => 'revision_created',
-    'revision_log_message' => 'revision_log_message'
+    'revision_log_message' => 'revision_log_message',
   ];
   $entity_type->set('revision_metadata_keys', $revision_metadata_keys);
 
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 31fb341afb..ddc0a9e0e8 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 1964f740fe..29893645ea 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 d5f6d6c293..b8aedac36a 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 c15b16d8b0..c51d3c8983 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 8e1f69e792..1e995c58f7 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 d2114fdf8e..488fa6ef42 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 = [
       'query' => [
         '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 04b1f66361..a4fbb667ba 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 @@ public function _getFakeModuleFiles() {
       'fake.module',
       'fake.info.yml',
       'theme' => [
-        'fake.html.twig'
+        'fake.html.twig',
       ],
       'inc' => [
-        'fake.inc'
-      ]
+        'fake.inc',
+      ],
     ];
     return $files;
   }
diff --git a/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php b/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php
index 1bfa19f482..2262670f2b 100644
--- a/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php
+++ b/core/modules/system/tests/src/Functional/Form/LanguageSelectElementTest.php
@@ -45,7 +45,7 @@ public 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.', ['@id' => $id]));
diff --git a/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php b/core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php
index 6f5dc7da68..586b1c93b2 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" =>
           [
             'ajax_page_state' => [
-              'libraries' => 'core/html5shiv'
-            ]
-          ]
+              'libraries' => 'core/html5shiv',
+            ],
+          ],
       ]
     );
     $this->assertNoRaw(
diff --git a/core/modules/system/tests/src/Functional/Update/EntityUpdateToRevisionableAndPublishableTest.php b/core/modules/system/tests/src/Functional/Update/EntityUpdateToRevisionableAndPublishableTest.php
index eb4a01c99c..8579ec2ddd 100644
--- a/core/modules/system/tests/src/Functional/Update/EntityUpdateToRevisionableAndPublishableTest.php
+++ b/core/modules/system/tests/src/Functional/Update/EntityUpdateToRevisionableAndPublishableTest.php
@@ -161,7 +161,7 @@ protected function updateEntityTypeDefinition() {
     $revision_metadata_keys = [
       'revision_user' => 'revision_user',
       'revision_created' => 'revision_created',
-      'revision_log_message' => 'revision_log_message'
+      'revision_log_message' => 'revision_log_message',
     ];
     $entity_type->set('revision_metadata_keys', $revision_metadata_keys);
 
diff --git a/core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php b/core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php
index 6eb51a2a51..fd9caf52a5 100644
--- a/core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php
+++ b/core/modules/system/tests/src/Functional/Update/RecalculatedDependencyTest.php
@@ -58,7 +58,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/tests/src/Kernel/Block/SystemMenuBlockTest.php b/core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php
index 07cf684b11..0726320316 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 = [
       'config' => [
-        'system.menu.' . $this->menu->id()
+        'system.menu.' . $this->menu->id(),
       ],
       'module' => [
-        'system'
+        'system',
       ],
       'theme' => [
-        'stark'
+        'stark',
       ],
     ];
     $this->assertIdentical($expected, $dependencies);
@@ -247,7 +247,7 @@ public function testConfigLevelDepth() {
       'test.example2' => [
         'test.example3' => [
           'test.example4' => [],
-        ]
+        ],
       ],
       'test.example5' => [
         'test.example7' => [],
diff --git a/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php b/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php
index 03d22afe57..28d056cecd 100644
--- a/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php
+++ b/core/modules/system/tests/src/Kernel/Form/ProgrammaticTest.php
@@ -95,7 +95,7 @@ protected function doSubmitForm($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/tests/src/Kernel/Scripts/DbCommandBaseTest.php b/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
index cb7f5eb7c4..f111d7b36f 100644
--- a/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
+++ b/core/modules/system/tests/src/Kernel/Scripts/DbCommandBaseTest.php
@@ -35,7 +35,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');
@@ -48,7 +48,7 @@ public function testSpecifyDatabaseDoesNotExist() {
     $command = new DbCommandBaseTester();
     $command_tester = new CommandTester($command);
     $command_tester->execute([
-      '--database' => 'dne'
+      '--database' => 'dne',
     ]);
     $this->setExpectedException(ConnectionNotDefinedException::class);
     $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/EntityReferenceSelection/TermSelection.php b/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php
index a66eaf51c6..df27fc1a69 100644
--- a/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php
+++ b/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php
@@ -28,7 +28,7 @@ public function defaultConfiguration() {
       'sort' => [
         'field' => 'name',
         'direction' => 'asc',
-      ]
+      ],
     ] + parent::defaultConfiguration();
   }
 
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 cc1afa9035..fafc1e4306 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 5e98bfe9b2..9dd1792235 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/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
index 4de73705d9..992e5bee18 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidUiTest.php
@@ -199,7 +199,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/VocabularyCrudTest.php b/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php
index 2ac2d9de61..ca0497379c 100644
--- a/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php
@@ -149,7 +149,7 @@ public function testUninstallReinstall() {
       'field_name' => $field_name,
       'entity_type' => 'taxonomy_term',
       'type' => 'text',
-      'cardinality' => 4
+      'cardinality' => 4,
     ];
     FieldStorageConfig::create($storage_definition)->save();
     $field_definition = [
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 207b528589..e68628be73 100644
--- a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php
+++ b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php
@@ -46,7 +46,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 f2aa1ccdde..17fc9d5e42 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' => [
           'max' => $max_length,
           'maxMessage' => t('%name: the telephone number may not be longer than @max characters.', ['%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 18bedf0725..75e626f66d 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 = [
     '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 447a0b180d..dcee58346d 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' => [
             'max' => $max_length,
             'maxMessage' => t('%name: the text may not be longer than @max characters.', ['%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 d061c00f1e..3216fd8138 100644
--- a/core/modules/text/src/Tests/TextFieldTest.php
+++ b/core/modules/text/src/Tests/TextFieldTest.php
@@ -44,7 +44,7 @@ public function testTextFieldValidation() {
       'type' => 'text',
       'settings' => [
         'max_length' => $max_length,
-      ]
+      ],
     ]);
     $field_storage->save();
     FieldConfig::create([
@@ -90,7 +90,7 @@ public function testRequiredLongTextWithFileUpload() {
     $field_storage = FieldStorageConfig::create([
       'field_name' => $file_field_name,
       'entity_type' => 'entity_test',
-      'type' => 'file'
+      'type' => 'file',
     ]);
     $field_storage->save();
     FieldConfig::create([
@@ -117,7 +117,7 @@ public function testRequiredLongTextWithFileUpload() {
     $this->drupalPostForm('entity_test/add', $edit, 'Upload');
     $this->assertResponse(200);
     $edit = [
-      'text_long[0][value]' => 'Long text'
+      'text_long[0][value]' => 'Long text',
     ];
     $this->drupalPostForm(NULL, $edit, 'Save');
     $this->assertResponse(200);
@@ -153,7 +153,7 @@ public function _testTextfieldWidgetsFormatted($field_type, $widget_type) {
     $field_storage = FieldStorageConfig::create([
       '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 a48c191b5e..69a0b15892 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' => [
         'max_length' => 10,
-      ]
+      ],
     ]);
     $this->fieldStorage->save();
     $this->field = FieldConfig::create([
diff --git a/core/modules/text/tests/src/Unit/Migrate/TextCckTest.php b/core/modules/text/tests/src/Unit/Migrate/TextCckTest.php
index 73d7e2e623..717b1ebcb7 100644
--- a/core/modules/text/tests/src/Unit/Migrate/TextCckTest.php
+++ b/core/modules/text/tests/src/Unit/Migrate/TextCckTest.php
@@ -76,7 +76,7 @@ public function testProcessBooleanTextImplicitValues() {
       'widget_type' => 'optionwidgets_onoff',
       'global_settings' => [
         'allowed_values' => "foo\nbar",
-      ]
+      ],
     ];
     $this->plugin->processCckFieldValues($this->migration, 'field', $info);
 
@@ -101,7 +101,7 @@ public function testProcessBooleanTextExplicitValues() {
       'widget_type' => 'optionwidgets_onoff',
       'global_settings' => [
         'allowed_values' => "foo|Foo\nbaz|Baz",
-      ]
+      ],
     ];
     $this->plugin->processCckFieldValues($this->migration, 'field', $info);
 
diff --git a/core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php b/core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php
index 44fb04e71b..97e25b3dc1 100644
--- a/core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php
+++ b/core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php
@@ -76,7 +76,7 @@ public function testProcessBooleanTextImplicitValues() {
       'widget_type' => 'optionwidgets_onoff',
       'global_settings' => [
         'allowed_values' => "foo\nbar",
-      ]
+      ],
     ];
     $this->plugin->processFieldValues($this->migration, 'field', $info);
 
@@ -101,7 +101,7 @@ public function testProcessBooleanTextExplicitValues() {
       'widget_type' => 'optionwidgets_onoff',
       'global_settings' => [
         'allowed_values' => "foo|Foo\nbaz|Baz",
-      ]
+      ],
     ];
     $this->plugin->processFieldValues($this->migration, 'field', $info);
 
diff --git a/core/modules/text/tests/src/Unit/Plugin/migrate/cckfield/TextCckTest.php b/core/modules/text/tests/src/Unit/Plugin/migrate/cckfield/TextCckTest.php
index 6f2d967029..d315b750c8 100644
--- a/core/modules/text/tests/src/Unit/Plugin/migrate/cckfield/TextCckTest.php
+++ b/core/modules/text/tests/src/Unit/Plugin/migrate/cckfield/TextCckTest.php
@@ -76,7 +76,7 @@ public function testProcessBooleanTextImplicitValues() {
       'widget_type' => 'optionwidgets_onoff',
       'global_settings' => [
         'allowed_values' => "foo\nbar",
-      ]
+      ],
     ];
     $this->plugin->processCckFieldValues($this->migration, 'field', $info);
 
@@ -101,7 +101,7 @@ public function testProcessBooleanTextExplicitValues() {
       'widget_type' => 'optionwidgets_onoff',
       'global_settings' => [
         'allowed_values' => "foo|Foo\nbaz|Baz",
-      ]
+      ],
     ];
     $this->plugin->processCckFieldValues($this->migration, 'field', $info);
 
diff --git a/core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php b/core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php
index 52418fe371..673a0a624a 100644
--- a/core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php
+++ b/core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php
@@ -75,7 +75,7 @@ public function testProcessBooleanTextImplicitValues() {
       'widget_type' => 'optionwidgets_onoff',
       'global_settings' => [
         'allowed_values' => "foo\nbar",
-      ]
+      ],
     ];
     $this->plugin->processFieldValues($this->migration, 'field', $info);
 
@@ -100,7 +100,7 @@ public function testProcessBooleanTextExplicitValues() {
       'widget_type' => 'optionwidgets_onoff',
       'global_settings' => [
         'allowed_values' => "foo|Foo\nbaz|Baz",
-      ]
+      ],
     ];
     $this->plugin->processFieldValues($this->migration, 'field', $info);
 
diff --git a/core/modules/tour/tests/src/Functional/TourTest.php b/core/modules/tour/tests/src/Functional/TourTest.php
index 55f3743f61..1db1bb8cae 100644
--- a/core/modules/tour/tests/src/Functional/TourTest.php
+++ b/core/modules/tour/tests/src/Functional/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' => [
-            'data-id' => 'tour-code-test-2'
+            'data-id' => 'tour-code-test-2',
           ],
         ],
       ],
diff --git a/core/modules/tracker/tests/src/Functional/Views/TrackerUserUidTest.php b/core/modules/tracker/tests/src/Functional/Views/TrackerUserUidTest.php
index 7bd675b2ed..9f2b0a758b 100644
--- a/core/modules/tracker/tests/src/Functional/Views/TrackerUserUidTest.php
+++ b/core/modules/tracker/tests/src/Functional/Views/TrackerUserUidTest.php
@@ -31,7 +31,7 @@ public function testUserUid() {
       [
         '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 54402879dd..be15d57478 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 30b25c2064..6a8ec6abcb 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 = [
-      '#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 1860269d60..8fa6ef37dc 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.', [':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.', [':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 1c2cc60fb2..664f25f9c5 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 7b14a05852..b7532c8d89 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' => [
         '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 d6959681f4..c0f1667208 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 eacc37857c..4fc03ae792 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'] = [
       '#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'] = [
       '#type' => 'checkbox',
diff --git a/core/modules/user/src/Entity/User.php b/core/modules/user/src/Entity/User.php
index 7529532581..81fdf62f94 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 081a509a2d..f5e8b7866e 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 f3ee85a97b..5a57410b05 100644
--- a/core/modules/user/src/Tests/UserAdminTest.php
+++ b/core/modules/user/src/Tests/UserAdminTest.php
@@ -103,7 +103,7 @@ public function testUserAdmin() {
     $this->drupalPostForm('admin/people', $edit, t('Apply to selected items'), [
       // Sort the table by username so that we know reliably which user will be
       // targeted with the blocking action.
-      'query' => ['order' => 'name', 'sort' => 'asc']
+      'query' => ['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 @@ public function testUserAdmin() {
     $this->drupalPostForm('admin/people', $editunblock, t('Apply to selected items'), [
       // Sort the table by username so that we know reliably which user will be
       // targeted with the blocking action.
-      'query' => ['order' => 'name', 'sort' => 'asc']
+      'query' => ['order' => 'name', 'sort' => 'asc'],
     ]);
     $user_storage->resetCache([$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 c4f70656c8..3886ce04e0 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 = [$this->randomMachineName()];
     $users = array_map('strtolower', $users);
     $edit = [
-      'options[value]' => implode(', ', $users)
+      'options[value]' => implode(', ', $users),
     ];
     $this->drupalPostForm($path, $edit, t('Apply'));
     $this->assertRaw(t('There are no entities matching "%value".', ['%value' => implode(', ', $users)]));
@@ -106,7 +106,7 @@ public function testAdminUserInterface() {
     $users = [$random_name, $this->names[0]];
     $users = array_map('strtolower', $users);
     $edit = [
-      'options[value]' => implode(', ', $users)
+      'options[value]' => implode(', ', $users),
     ];
     $users = [$users[0]];
     $this->drupalPostForm($path, $edit, t('Apply'));
@@ -116,7 +116,7 @@ public function testAdminUserInterface() {
     $users = $this->names;
     $users = array_map('strtolower', $users);
     $edit = [
-      'options[value]' => implode(', ', $users)
+      'options[value]' => implode(', ', $users),
     ];
     $this->drupalPostForm($path, $edit, t('Apply'));
     $this->assertNoRaw(t('There are no entities matching "%value".', ['%value' => implode(', ', $users)]));
diff --git a/core/modules/user/src/UserViewsData.php b/core/modules/user/src/UserViewsData.php
index 2c79114790..313bc50443 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 eaa2a9a618..8f19b6e17c 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([
   '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 57bebc042a..df22f9cb93 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 2918d2f61e..a621455d44 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 [
-      '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 b8f2888426..a35782c9b5 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([
       'id' => 'test_rid_1',
-      'label' => 'test rid 1'
+      'label' => 'test rid 1',
     ], 'user_role');
     $role2 = new Role([
       'id' => 'test_rid_2',
diff --git a/core/modules/user/user.module b/core/modules/user/user.module
index 19b9527a21..b55e7a87c4 100644
--- a/core/modules/user/user.module
+++ b/core/modules/user/user.module
@@ -602,7 +602,7 @@ function user_pass_reset_url($account, $options = []) {
     ],
     [
       'absolute' => TRUE,
-      'language' => \Drupal::languageManager()->getLanguage($langcode)
+      'language' => \Drupal::languageManager()->getLanguage($langcode),
     ]
   );
 }
@@ -631,7 +631,7 @@ function user_cancel_url(UserInterface $account, $options = []) {
   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 b69234c3bc..d538c8281d 100644
--- a/core/modules/views/src/Entity/View.php
+++ b/core/modules/views/src/Entity/View.php
@@ -420,7 +420,7 @@ public static function preCreate(EntityStorageInterface $storage, array &$values
           'position' => 0,
           'display_options' => [],
         ],
-      ]
+      ],
     ];
   }
 
diff --git a/core/modules/views/src/EntityViewsData.php b/core/modules/views/src/EntityViewsData.php
index 49b0af80f8..cb28d4a607 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 44e7ec4b0f..46f2aaf421 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'] = [
-      '#type' => 'actions'
+      '#type' => 'actions',
     ];
     $form['actions']['submit'] = [
       // 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 f6a045cf32..bd257d6dde 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 fc2e9b894b..f700f16ace 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' => [
                 'config' => [
                   $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 5f9c9788de..f361305afe 100644
--- a/core/modules/views/src/Plugin/views/PluginBase.php
+++ b/core/modules/views/src/Plugin/views/PluginBase.php
@@ -400,7 +400,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 3f145195a3..53cc52ddcc 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'] = [
@@ -637,7 +637,7 @@ public function defaultSummaryForm(&$form, FormStateInterface $form_state) {
       '#default_value' => $this->options['summary']['number_of_records'],
       '#options' => [
         0 => $this->getSortName(),
-        1 => $this->t('Number of records')
+        1 => $this->t('Number of records'),
       ],
       '#states' => [
         'visible' => [
diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
index a2e19a29d8..ab7548c4e6 100644
--- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -1034,13 +1034,13 @@ public function optionLink($text, $section, $class = '', $title = '') {
         'js' => 'nojs',
         'view' => $this->view->storage->id(),
         'display_id' => $this->display['id'],
-        'type' => $section
+        'type' => $section,
       ], [
         'attributes' => [
           'class' => ['views-ajax-link', $class],
           'title' => $title,
-          'id' => Html::getUniqueId('views-' . $this->display['id'] . '-' . $section)
-        ]
+          'id' => Html::getUniqueId('views-' . $this->display['id'] . '-' . $section),
+        ],
     ]));
   }
 
@@ -2588,7 +2588,7 @@ public function getArgumentText() {
   public function getPagerText() {
     return [
       '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 aca0683f3c..5ca78667d4 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 [
       '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 ee2882c3b5..faf8da14b1 100644
--- a/core/modules/views/src/Plugin/views/field/EntityField.php
+++ b/core/modules/views/src/Plugin/views/field/EntityField.php
@@ -408,10 +408,10 @@ protected function defineOptions() {
     ];
 
     $options['multi_type'] = [
-      'default' => 'separator'
+      'default' => 'separator',
     ];
     $options['separator'] = [
-      'default' => ', '
+      'default' => ', ',
     ];
 
     $options['field_api_classes'] = [
diff --git a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
index 3c663f5f2e..8fc1eb8f26 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 = [
         '' => $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 f27973ebbf..4ed091f810 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 fdc2dea6dc..a3e40586fd 100644
--- a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
+++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
@@ -1102,7 +1102,7 @@ protected function buildExposedFiltersGroupForm(&$form, FormStateInterface $form
       '#required' => TRUE,
       '#attributes' => [
         'class' => ['default-radios'],
-      ]
+      ],
     ];
     // From all groups, let chose which is the default.
     $form['group_info']['default_group_multiple'] = [
@@ -1111,7 +1111,7 @@ protected function buildExposedFiltersGroupForm(&$form, FormStateInterface $form
       '#default_value' => $this->options['group_info']['default_group_multiple'],
       '#attributes' => [
         'class' => ['default-checkboxes'],
-      ]
+      ],
     ];
 
     $form['group_info']['add_group'] = [
diff --git a/core/modules/views/src/Plugin/views/filter/NumericFilter.php b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
index 7f687a14f4..37984f7e0a 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'] = [
         '#type' => 'textfield',
@@ -227,7 +227,7 @@ protected function valueForm(&$form, FormStateInterface $form_state) {
         // Ensure there is something in the 'value'.
         $form['value'] = [
           '#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 a9ab5a1861..b9fb9b05c0 100644
--- a/core/modules/views/src/Plugin/views/filter/StringFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/StringFilter.php
@@ -231,7 +231,7 @@ protected function valueForm(&$form, FormStateInterface $form_state) {
       // Ensure there is something in the 'value'.
       $form['value'] = [
         '#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 ccf40f64e9..413845d0ce 100644
--- a/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
+++ b/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
@@ -226,7 +226,7 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition
     // Merge in some default values.
     $configuration += [
       '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 ab056f59a7..0982dcee79 100644
--- a/core/modules/views/src/Plugin/views/query/Sql.php
+++ b/core/modules/views/src/Plugin/views/query/Sql.php
@@ -155,7 +155,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.
@@ -991,7 +991,7 @@ public function addOrderBy($table, $field = NULL, $order = 'ASC', $alias = '', $
 
     $this->orderby[] = [
       'field' => $as,
-      'direction' => strtoupper($order)
+      'direction' => strtoupper($order),
     ];
   }
 
@@ -1739,7 +1739,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 7c01604604..090f6290c8 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/FieldApiDataTest.php b/core/modules/views/src/Tests/FieldApiDataTest.php
index f6d5159dd8..388562cb18 100644
--- a/core/modules/views/src/Tests/FieldApiDataTest.php
+++ b/core/modules/views/src/Tests/FieldApiDataTest.php
@@ -45,7 +45,7 @@ protected function setUp() {
       'field_name' => $field_names[0],
       'entity_type' => 'node',
       'bundle' => 'page',
-      'label' => 'GiraffeA" label'
+      'label' => 'GiraffeA" label',
     ];
     FieldConfig::create($field)->save();
 
@@ -55,7 +55,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.
@@ -230,7 +230,7 @@ public 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/ViewTestData.php b/core/modules/views/src/Tests/ViewTestData.php
index 3c9ace7555..48fe937c50 100644
--- a/core/modules/views/src/Tests/ViewTestData.php
+++ b/core/modules/views/src/Tests/ViewTestData.php
@@ -106,7 +106,7 @@ public static function schemaDefinition() {
       ],
       'primary key' => ['id'],
       'unique keys' => [
-        'name' => ['name']
+        'name' => ['name'],
       ],
       'indexes' => [
         'ages' => ['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 cf430af25c..4d1a2ed727 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[] = [
       '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 3590440b9f..1ef60361cd 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/Functional/DefaultViewsTest.php b/core/modules/views/tests/src/Functional/DefaultViewsTest.php
index 3e7d0b48b2..6e5d4ff83c 100644
--- a/core/modules/views/tests/src/Functional/DefaultViewsTest.php
+++ b/core/modules/views/tests/src/Functional/DefaultViewsTest.php
@@ -97,7 +97,7 @@ protected function setUp($import_test_views = TRUE) {
         '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/tests/src/Functional/Entity/FieldEntityTest.php b/core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php
index a46e54c9e5..2393b6d269 100644
--- a/core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php
+++ b/core/modules/views/tests/src/Functional/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/tests/src/Functional/Entity/FilterEntityBundleTest.php b/core/modules/views/tests/src/Functional/Entity/FilterEntityBundleTest.php
index 993293cebf..22bb6435c8 100644
--- a/core/modules/views/tests/src/Functional/Entity/FilterEntityBundleTest.php
+++ b/core/modules/views/tests/src/Functional/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/tests/src/Functional/GlossaryTest.php b/core/modules/views/tests/src/Functional/GlossaryTest.php
index d67f70dfd7..bf25db5ffc 100644
--- a/core/modules/views/tests/src/Functional/GlossaryTest.php
+++ b/core/modules/views/tests/src/Functional/GlossaryTest.php
@@ -41,7 +41,7 @@ public function testGlossaryView() {
     $nodes_by_char = [];
     foreach ($nodes_per_char as $char => $count) {
       $setting = [
-        'type' => $type->id()
+        'type' => $type->id(),
       ];
       for ($i = 0; $i < $count; $i++) {
         $node = $setting;
diff --git a/core/modules/views/tests/src/Functional/Handler/AreaTest.php b/core/modules/views/tests/src/Functional/Handler/AreaTest.php
index d631373d23..991a77076c 100644
--- a/core/modules/views/tests/src/Functional/Handler/AreaTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/AreaTest.php
@@ -41,8 +41,8 @@ protected function viewsData() {
       'title' => 'Test Example area',
       'help' => 'A area handler which just exists for tests.',
       'area' => [
-        'id' => 'test_example'
-      ]
+        'id' => 'test_example',
+      ],
     ];
 
     return $data;
diff --git a/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php b/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php
index a3646f0c0b..7aee9d573c 100644
--- a/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php
@@ -484,7 +484,7 @@ public function testFieldClasses() {
       'p',
       'strong',
       'em',
-      'marquee'
+      'marquee',
     ];
 
     $this->assertEqual(array_keys($element_types), $expected_elements);
@@ -581,28 +581,28 @@ public function testTextRendering() {
       [
         'value' => $random_text_8,
         'trimmed_value' => '',
-        'trimmed' => TRUE
+        'trimmed' => TRUE,
       ],
       // Create one string with two words which doesn't fit both into the limit.
       [
         '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.
       [
         '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.
       [
         '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/tests/src/Functional/Plugin/ArgumentDefaultTest.php b/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
index ea2f5b2373..e81619e31f 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
@@ -56,9 +56,9 @@ public function testArgumentDefaultPlugin() {
     $options = [
       'default_argument_type' => 'argument_default_test',
       'default_argument_options' => [
-        '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/tests/src/Functional/Plugin/CacheWebTest.php b/core/modules/views/tests/src/Functional/Plugin/CacheWebTest.php
index f8ce5a927f..c919bcb831 100644
--- a/core/modules/views/tests/src/Functional/Plugin/CacheWebTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/CacheWebTest.php
@@ -51,8 +51,8 @@ public function testCacheOutputOnPage() {
       'type' => 'time',
       'options' => [
         'results_lifespan' => '3600',
-        'output_lifespan' => '3600'
-      ]
+        'output_lifespan' => '3600',
+      ],
     ]);
     $view->save();
     $this->container->get('router.builder')->rebuildIfNeeded();
@@ -70,7 +70,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/tests/src/Functional/Plugin/ContextualFiltersBlockContextTest.php b/core/modules/views/tests/src/Functional/Plugin/ContextualFiltersBlockContextTest.php
index 215ee2890f..41356b69c7 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ContextualFiltersBlockContextTest.php
+++ b/core/modules/views/tests/src/Functional/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/tests/src/Functional/Plugin/DisplayTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
index 6748152987..d8deaa598b 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
@@ -285,7 +285,7 @@ public function testOutputIsEmpty() {
       'table' => 'views_test_data',
       'field' => 'id',
       'id' => 'id',
-      'value' => ['value' => 7297]
+      'value' => ['value' => 7297],
     ];
     $view->setHandler('default', 'filter', 'id', $item);
     $this->executeView($view);
diff --git a/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php b/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php
index eaa5aaa32f..4cd81d2891 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php
+++ b/core/modules/views/tests/src/Functional/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', ['query' => [$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);
 
@@ -286,7 +286,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/tests/src/Functional/Plugin/PagerTest.php b/core/modules/views/tests/src/Functional/Plugin/PagerTest.php
index c80fa09bfc..6aa59c5a9b 100644
--- a/core/modules/views/tests/src/Functional/Plugin/PagerTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/PagerTest.php
@@ -418,8 +418,8 @@ public function testPagerLocale() {
       // Create source string.
       $source = $this->localeStorage->createString(
         [
-          'source' => $label
-        ]
+          'source' => $label,
+        ],
       );
       $source->save();
       $this->createTranslation($source, $translation, $langcode);
diff --git a/core/modules/views/tests/src/Functional/Plugin/ViewsBulkTest.php b/core/modules/views/tests/src/Functional/Plugin/ViewsBulkTest.php
index 1b3078b544..e3faa88405 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ViewsBulkTest.php
+++ b/core/modules/views/tests/src/Functional/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/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php b/core/modules/views/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php
index 8d60f358b9..fd12451b1a 100644
--- a/core/modules/views/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php
+++ b/core/modules/views/tests/src/Functional/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__ . '/../../../fixtures/update/argument-placeholder.php'
+      __DIR__ . '/../../../fixtures/update/argument-placeholder.php',
     ];
   }
 
diff --git a/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php b/core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php
index 4929c7ecf7..6a9168713d 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/AreaEmptyTest.php b/core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php
index 0f209cac2e..a113f0c4ff 100644
--- a/core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php
@@ -35,8 +35,8 @@ protected function viewsData() {
       'title' => 'Test Example area',
       'help' => 'A area handler which just exists for tests.',
       'area' => [
-        'id' => 'test_example'
-      ]
+        'id' => 'test_example',
+      ],
     ];
 
     return $data;
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
index b5c52fef77..dbd04d8337 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 @@ public function testSimple() {
         'table' => 'views',
         'field' => 'counter',
         'relationship' => 'none',
-        'counter_start' => $rand_start
+        'counter_start' => $rand_start,
       ],
       'name' => [
         '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 1d304f53a1..a6c14d0973 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 677a3f5e40..82573e079e 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 = [
diff --git a/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php b/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php
index e49ef7a2c7..ac8000a8d8 100644
--- a/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php
@@ -59,7 +59,7 @@ protected function setUp($import_test_views = TRUE) {
       'entity_type' => 'node',
       'bundle' => 'article',
       'label' => 'Translated text',
-      'translatable' => TRUE
+      'translatable' => TRUE,
     ])->save();
 
     FieldStorageConfig::create([
diff --git a/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php b/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php
index 34d426dc76..82876f1e3e 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 1a9f32eff7..5b634afa1c 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 = [
       'config' => ['views.view.test_exposed_block'],
       'module' => ['views'],
-      'theme' => ['stark']
+      'theme' => ['stark'],
     ];
     $this->assertIdentical($expected, $dependencies);
   }
@@ -53,7 +53,7 @@ public function testViewsBlock() {
     $expected = [
       'config' => ['views.view.content_recent'],
       'module' => ['views'],
-      'theme' => ['stark']
+      'theme' => ['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 9f6066eff3..6fc417bb4a 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' => [
         'results_lifespan' => '3600',
         'output_lifespan' => '3600',
-      ]
+      ],
     ]);
 
     // Test the default (non-paged) display.
@@ -189,7 +189,7 @@ public function testTimeResultCachingWithPager() {
       'options' => [
         'results_lifespan' => '3600',
         'output_lifespan' => '3600',
-      ]
+      ],
     ]);
 
     $mapping = ['views_test_data_name' => 'name'];
@@ -272,7 +272,7 @@ public function testHeaderStorage() {
       'type' => 'time',
       'options' => [
         'output_lifespan' => '3600',
-      ]
+      ],
     ]);
 
     $output = $view->buildRenderable();
@@ -331,7 +331,7 @@ public function testCacheData() {
       'options' => [
         'results_lifespan' => '3600',
         'output_lifespan' => '3600',
-      ]
+      ],
     ]);
     $this->executeView($view);
 
@@ -393,9 +393,9 @@ public function testArgumentDefaultCache() {
     $options = [
       'default_argument_type' => 'argument_default_test',
       'default_argument_options' => [
-        'value' => 'John'
+        'value' => 'John',
       ],
-      'default_action' => 'default'
+      'default_action' => 'default',
     ];
     $view->addHandler('default', 'argument', 'views_test_data', 'name', $options);
     $view->initHandlers();
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 d08adaacb0..a6776b585a 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/FieldOrLanguageJoinTest.php b/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php
index 1f9c6dabd1..e28207e04e 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php
@@ -89,12 +89,12 @@ public function testBase() {
     $configuration['extra'] = [
       [
         'field' => 'name',
-        'value' => $random_name_1
+        'value' => $random_name_1,
       ],
       [
         'field' => 'name',
         'value' => $random_name_2,
-        'operator' => '<>'
+        'operator' => '<>',
       ],
     ];
     $join_info = $this->buildJoin($view, $configuration, 'users3');
@@ -111,7 +111,7 @@ public function testBase() {
     $configuration['extra'] = [
       [
         'field' => 'name',
-        'value' => $random_name_1
+        'value' => $random_name_1,
       ],
       [
         'field' => 'name',
diff --git a/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php b/core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
index 0839fcb2c8..3764fcf6b7 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'] = [
       [
         'field' => 'name',
-        'value' => $random_name_1
+        'value' => $random_name_1,
       ],
       [
         'field' => 'name',
         'value' => $random_name_2,
-        'operator' => '<>'
+        'operator' => '<>',
       ],
     ];
     $join = $this->manager->createInstance('standard', $configuration);
@@ -157,7 +157,7 @@ public function testBasePlugin() {
     $configuration['extra'] = [
       [
         'field' => 'name',
-        'value' => $random_name_1
+        'value' => $random_name_1,
       ],
       [
         'field' => 'name',
@@ -179,7 +179,7 @@ public function testBasePlugin() {
     $configuration['extra'] = [
       [
         'field' => 'langcode',
-        'value' => 'en'
+        'value' => 'en',
       ],
       [
         'left_field' => 'status',
@@ -188,7 +188,7 @@ public function testBasePlugin() {
       ],
       [
         '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 1163297b1b..dc4cc7c359 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' => [
         '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 802befe1ca..973462619a 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 = [
       [
         'name' => 'John',
-        'uid' => 1
-      ]
+        'uid' => 1,
+      ],
     ];
     $this->assertIdenticalResultset($view, $expected_result, $this->columnMap);
     $view->destroy();
@@ -101,8 +101,8 @@ public function testRelationshipQuery() {
     $expected_result = [
       [
         '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 879f6d44d5..7c49327290 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' => [
           '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 7cf953af74..e6cce86f2e 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' => [
         'display_options' => ['path' => 'test.xml'],
         'display_plugin' => 'feed',
         'id' => 'feed',
         'display_title' => 'Feed',
-        'position' => 2
+        'position' => 2,
       ],
       'page_2' => [
         'display_options' => ['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 = [
       'alter' => [
-        '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 = [
       'alter' => [
         '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 eefc541180..a3bcf1eed0 100644
--- a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
+++ b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
@@ -451,7 +451,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')
@@ -569,7 +569,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']);
 
@@ -721,7 +721,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 7ecf9ef041..c63258abdc 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 = [
     '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 ac5a1fe4b9..ec79b52d94 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 91d52829c5..42a1b37783 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 ef0e812aa2..d94840746b 100644
--- a/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php
@@ -196,7 +196,7 @@ public function providerTestHasMoreRecords() {
       // Now we are on the second page, which has just a single one left.
       [5, 6, 1, FALSE],
       // Increase the total items, so we have some available on the third page.
-      [5, 12, 1, TRUE]
+      [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 0900df6924..022f5320db 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 = [
       '#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 = [
       '#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 622b42a846..afa849f8c8 100644
--- a/core/modules/views/tests/src/Unit/PluginBaseTest.php
+++ b/core/modules/views/tests/src/Unit/PluginBaseTest.php
@@ -101,7 +101,7 @@ public function providerTestUnpackOptions() {
       'expected' => [
         'key' => 'value2',
       ],
-      ''
+      '',
     ];
     // Set no storage but an options value, so the options value should be kept.
     $test_parameters[] = [
diff --git a/core/modules/views/tests/src/Unit/ViewExecutableTest.php b/core/modules/views/tests/src/Unit/ViewExecutableTest.php
index e0aada0285..d5b4a9f151 100644
--- a/core/modules/views/tests/src/Unit/ViewExecutableTest.php
+++ b/core/modules/views/tests/src/Unit/ViewExecutableTest.php
@@ -295,7 +295,7 @@ public function testBuildThemeFunctions() {
     unset($view->display_handler);
     $expected = [
       'test_hook__test_view',
-      'test_hook'
+      'test_hook',
     ];
     $this->assertEquals($expected, $view->buildThemeFunctions('test_hook'));
 
@@ -307,7 +307,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'));
 
@@ -323,7 +323,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.theme.inc b/core/modules/views/views.theme.inc
index 39e741420a..876f9ab433 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 a2d9fedcbc..cc73bd536b 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 36f34c26a1..1396395867 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 1ffb710ca1..dea977824d 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 377a3d55c2..1d416b4285 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'] = [
       '#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/RowUITest.php b/core/modules/views_ui/src/Tests/RowUITest.php
index 5689009783..e8aa2c3101 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 = [
-      '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 = [
-      '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/ViewPreviewForm.php b/core/modules/views_ui/src/ViewPreviewForm.php
index 2cc25332ef..80cb636ccf 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 [
       '#attributes' => [
         'id' => 'preview-submit-wrapper',
-        'class' => ['preview-submit-wrapper']
+        'class' => ['preview-submit-wrapper'],
       ],
       'button' => [
         '#type' => 'submit',
diff --git a/core/modules/views_ui/src/ViewUI.php b/core/modules/views_ui/src/ViewUI.php
index 2e7fabd62b..046aa8597b 100644
--- a/core/modules/views_ui/src/ViewUI.php
+++ b/core/modules/views_ui/src/ViewUI.php
@@ -713,7 +713,7 @@ public function renderPreview($display_id, $args = []) {
                 'data' => [
                   '#markup' => $path,
                 ],
-              ]
+              ],
             ];
           }
           if ($show_stats) {
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php b/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
index af2c4e2a6f..b35c611f47 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayPathTest.php
@@ -208,7 +208,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/tests/src/Functional/DisplayTest.php b/core/modules/views_ui/tests/src/Functional/DisplayTest.php
index 44724b4211..cb3d61cffe 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayTest.php
@@ -45,7 +45,7 @@ public function testAddDisplay() {
    */
   public function testReorderDisplay() {
     $view = [
-      'block[create]' => TRUE
+      'block[create]' => TRUE,
     ];
     $view = $this->randomView($view);
 
@@ -60,7 +60,7 @@ public function testReorderDisplay() {
     // Put the block display in front of the page display.
     $edit = [
       'displays[page_1][weight]' => 2,
-      'displays[block_1][weight]' => 1
+      'displays[block_1][weight]' => 1,
     ];
     $this->drupalPostForm(NULL, $edit, t('Apply'));
     $this->drupalPostForm(NULL, [], t('Save'));
diff --git a/core/modules/views_ui/tests/src/Functional/HandlerTest.php b/core/modules/views_ui/tests/src/Functional/HandlerTest.php
index 826cdc24e5..428432eaef 100644
--- a/core/modules/views_ui/tests/src/Functional/HandlerTest.php
+++ b/core/modules/views_ui/tests/src/Functional/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' => [
         '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/tests/src/Functional/StyleUITest.php b/core/modules/views_ui/tests/src/Functional/StyleUITest.php
index 1eb9c7862f..62f682a5f9 100644
--- a/core/modules/views_ui/tests/src/Functional/StyleUITest.php
+++ b/core/modules/views_ui/tests/src/Functional/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 = [
-      '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 = [
-      '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/tests/src/Functional/ViewsUITourTest.php b/core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php
index 839fe3a47a..8a2dd2953f 100644
--- a/core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php
+++ b/core/modules/views_ui/tests/src/Functional/ViewsUITourTest.php
@@ -76,7 +76,7 @@ public function testViewsUiTourTipsTranslated() {
     foreach ($handler_titles as $handler_title) {
       // Create source string.
       $source = $this->localeStorage->createString([
-        'source' => $handler_title
+        'source' => $handler_title,
       ]);
       $source->save();
       $this->createTranslation($source, $langcode);
diff --git a/core/modules/views_ui/tests/src/Unit/ViewListBuilderTest.php b/core/modules/views_ui/tests/src/Unit/ViewListBuilderTest.php
index 23cc7a8e65..f0618be55f 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' => '',
-          ]
+          ],
         ],
         [
           'page',
@@ -61,7 +61,7 @@ public function testBuildRowEntityList() {
             'contextual_links_locations' => ['page'],
             'theme' => 'views_view',
             'admin' => 'Page admin label',
-          ]
+          ],
         ],
         [
           '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 15f85e3a02..26ca1ba889 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 e6ef8756ff..fd210ca9e4 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 889b7bbfed..03c2d6042b 100644
--- a/core/modules/workflows/src/Form/WorkflowEditForm.php
+++ b/core/modules/workflows/src/Form/WorkflowEditForm.php
@@ -75,7 +75,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',
@@ -115,14 +115,14 @@ public function form(array $form, FormStateInterface $form_state) {
         'edit' => [
           'title' => $this->t('Edit'),
           'url' => Url::fromRoute('entity.workflow.edit_state_form', ['workflow' => $workflow->id(), 'workflow_state' => $state->id()]),
-        ]
+        ],
       ];
       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(),
           ]),
         ];
       }
@@ -152,7 +152,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 a04998d287..82d1c3a04a 100644
--- a/core/modules/workflows/src/Form/WorkflowStateEditForm.php
+++ b/core/modules/workflows/src/Form/WorkflowStateEditForm.php
@@ -120,14 +120,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()] = [
@@ -225,8 +225,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 1406025a72..fdd548ad5f 100644
--- a/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php
+++ b/core/modules/workflows/src/Form/WorkflowTransitionEditForm.php
@@ -223,8 +223,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 eb652ad533..3f12b14f4c 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->getTypePlugin()->getStates());
diff --git a/core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php b/core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php
index c8748342fb..cc43936d6f 100644
--- a/core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php
+++ b/core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php
@@ -83,7 +83,7 @@ public function testCrossSiteRequest() {
     $response = $httpClient->request('POST', $url->setAbsolute()->toString(), [
       'headers' => [
         'Origin' => $origin,
-      ]
+      ],
     ]);
     $this->assertEquals(200, $response->getStatusCode());
   }
diff --git a/core/tests/Drupal/FunctionalTests/Routing/CaseInsensitivePathTest.php b/core/tests/Drupal/FunctionalTests/Routing/CaseInsensitivePathTest.php
index 3aaac143ea..96b59d7be0 100644
--- a/core/tests/Drupal/FunctionalTests/Routing/CaseInsensitivePathTest.php
+++ b/core/tests/Drupal/FunctionalTests/Routing/CaseInsensitivePathTest.php
@@ -63,8 +63,8 @@ public function testMixedCasePaths() {
 
     $this->drupalGet('admin/content', [
       'query' => [
-        'title' => 'FooBarBaz'
-      ]
+        'title' => 'FooBarBaz',
+      ],
     ]);
 
     $this->assertSession()->linkExists('FooBarBaz');
@@ -74,8 +74,8 @@ public function testMixedCasePaths() {
 
     $this->drupalGet('Admin/Content', [
       'query' => [
-        'title' => 'FooBarBaz'
-      ]
+        'title' => 'FooBarBaz',
+      ],
     ]);
 
     $this->assertSession()->linkExists('FooBarBaz');
diff --git a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
index 4aca50032b..1f6af1b892 100644
--- a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
+++ b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
@@ -265,7 +265,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/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 84b4e42067..3edb08c81e 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' => [
           'enforced' => [
-            'module' => ['node']
-          ]
-        ]
+            'module' => ['node'],
+          ],
+        ],
       ]
     );
     $entity1->save();
@@ -200,7 +200,7 @@ public function testConfigEntityUninstall() {
         'id' => 'entity1',
         'dependencies' => [
           'enforced' => [
-            'module' => ['node', 'config_test']
+            'module' => ['node', 'config_test'],
           ],
         ],
       ]
@@ -264,7 +264,7 @@ public function testConfigEntityUninstallComplex(array $entity_id_suffixes) {
         'id' => 'entity_' . $entity_id_suffixes[0],
         'dependencies' => [
           'enforced' => [
-            'module' => ['node', 'config_test']
+            'module' => ['node', 'config_test'],
           ],
         ],
       ]
@@ -309,7 +309,7 @@ public function testConfigEntityUninstallComplex(array $entity_id_suffixes) {
         'dependencies' => [
           'enforced' => [
             'config' => [$entity_1->getConfigDependencyName()],
-            'module' => ['node', 'config_test']
+            'module' => ['node', 'config_test'],
           ],
         ],
       ]
@@ -478,7 +478,7 @@ public function testConfigEntityDelete() {
     // Test dependencies between configuration entities.
     $entity1 = $storage->create(
       [
-        'id' => 'entity1'
+        'id' => 'entity1',
       ]
     );
     $entity1->save();
@@ -591,7 +591,7 @@ public function testContentEntityDelete() {
         'id' => 'entity1',
         'dependencies' => [
           'enforced' => [
-            'content' => [$content_entity->getConfigDependencyName()]
+            'content' => [$content_entity->getConfigDependencyName()],
           ],
         ],
       ]
@@ -602,7 +602,7 @@ public function testContentEntityDelete() {
         'id' => 'entity2',
         'dependencies' => [
           'enforced' => [
-            'config' => [$entity1->getConfigDependencyName()]
+            'config' => [$entity1->getConfigDependencyName()],
           ],
         ],
       ]
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php
index 5a137b9f4f..cb8487267c 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 = [
       '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 807152bfed..154d2383b4 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([
       'id' => $this->randomMachineName(),
       'label' => $this->randomString(),
-      'style' => 999
+      'style' => 999,
     ]);
     $entity->save();
     $this->assertSame('999', $entity->style);
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php
index cbb2e958bf..1bfd2c7939 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 = [
-        SafeMarkup::format('Entity type mismatch on rename. @old_type not equal to @new_type for existing configuration @old_name and staged configuration @new_name.', ['@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.', ['@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 = [
-      'config_test.old::config_test.new'
+      'config_test.old::config_test.new',
     ];
     $renames = $this->configImporter->getUnprocessedConfiguration('rename');
     $this->assertSame($expected, $renames);
@@ -149,7 +149,7 @@ public function testRenameSimpleConfigValidation() {
     catch (ConfigImporterException $e) {
       $this->pass('Expected ConfigImporterException thrown when simple configuration is renamed.');
       $expected = [
-        SafeMarkup::format('Rename operation for simple configuration. Existing configuration @old_name and staged configuration @new_name.', ['@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.', ['@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 9d3989cf18..5200f7a913 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
@@ -226,7 +226,7 @@ public function testSecondaryWritePrimaryFirst() {
       // Add a dependency on primary, to ensure that is synced first.
       'dependencies' => [
         'config' => [$name_primary],
-      ]
+      ],
     ];
     $sync->write($name_secondary, $values_secondary);
 
@@ -265,7 +265,7 @@ public function testSecondaryWriteSecondaryFirst() {
       // Add a dependency on secondary, so that is synced first.
       'dependencies' => [
         'config' => [$name_secondary],
-      ]
+      ],
     ];
     $sync->write($name_primary, $values_primary);
     $values_secondary = [
@@ -322,7 +322,7 @@ public function testSecondaryUpdateDeletedDeleterFirst() {
       // Add a dependency on deleter, to make sure that is synced first.
       'dependencies' => [
         'config' => [$name_deleter],
-      ]
+      ],
     ];
     $storage->write($name_deletee, $values_deletee);
     $values_deletee['label'] = 'Updated Deletee';
@@ -338,7 +338,7 @@ public function testSecondaryUpdateDeletedDeleterFirst() {
       // will also be synced after the deletee due to alphabetical ordering.
       'dependencies' => [
         'config' => [$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 5ded4842b5..d86bf0f31f 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
@@ -353,7 +353,7 @@ public function testConfigSaveWithSchema() {
       // If the config schema doesn't have a type it shouldn't be casted.
       'no_type' => 1,
       'mapping' => [
-        'string' => 1
+        'string' => 1,
       ],
       'float' => '3.14',
       'null_float' => '',
@@ -376,7 +376,7 @@ public function testConfigSaveWithSchema() {
       'boolean' => TRUE,
       'no_type' => 1,
       'mapping' => [
-        '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 c18910e21d..dc121eaf56 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([
-        '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/EntityLoadByUuidTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityLoadByUuidTest.php
index 4974a74cb7..afd7e0d9b7 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityLoadByUuidTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityLoadByUuidTest.php
@@ -35,12 +35,12 @@ public function testLoadEntityByUuidAccessChecking() {
     // Create two test entities.
     $entity_0 = EntityTest::create([
       'type' => 'entity_test',
-      'name' => 'published entity'
+      'name' => 'published entity',
     ]);
     $entity_0->save();
     $entity_1 = EntityTest::create([
       'type' => 'entity_test',
-      'name' => 'unpublished entity'
+      'name' => 'unpublished entity',
     ]);
     $entity_1->save();
 
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
index 763fa44f15..bb38a9f91b 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
@@ -671,7 +671,7 @@ public function testCaseSensitivity() {
       'translatable' => FALSE,
       'settings' => [
         'case_sensitive' => FALSE,
-      ]
+      ],
     ]);
     $field_storage->save();
 
@@ -717,7 +717,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.
@@ -910,7 +910,7 @@ public function testPendingRevisions() {
     $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 b430872609..137fad883c 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 = [
       '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 884ee89956..162fbf7b0e 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 041b062f45..4b3ab413e8 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/Entity/ValidReferenceConstraintValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
index 3f182c91e8..be609d8d71 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
@@ -150,7 +150,7 @@ public function testPreExistingItemsValidation() {
         ['entity' => $unpublished_node],
         ['entity' => $different_bundle_node],
         ['entity' => $deleted_node],
-      ]
+      ],
     ]);
 
     // Check that users with access are able pass the validation for fields
diff --git a/core/tests/Drupal/KernelTests/Core/Field/FieldSettingsTest.php b/core/tests/Drupal/KernelTests/Core/Field/FieldSettingsTest.php
index 583e55b7c4..aad980084f 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 05ac7c2557..4eca9976f2 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' => [
          'jar' => 0,
          'jpg' => 1,
-      ]
+      ],
     ];
 
     $test_case = [
diff --git a/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php b/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php
index 0c01af1050..a6600de928 100644
--- a/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Image/ToolkitGdTest.php
@@ -119,7 +119,7 @@ public 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 @@ public function testManipulations() {
             array_fill(0, 3, 76) + [3 => 0],
             array_fill(0, 3, 149) + [3 => 0],
             array_fill(0, 3, 29) + [3 => 0],
-            array_fill(0, 3, 225) + [3 => 127]
+            array_fill(0, 3, 225) + [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 5966eaa745..6bf2faaa98 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() {
       [
         '1-one',
         [
-          '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 a64b553a16..60ad3ed536 100644
--- a/core/tests/Drupal/KernelTests/Core/Render/RenderTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Render/RenderTest.php
@@ -36,7 +36,7 @@ public 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 ef593751bf..40a8a743dd 100644
--- a/core/tests/Drupal/KernelTests/Core/Site/SettingsRewriteTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Site/SettingsRewriteTest.php
@@ -111,7 +111,7 @@ public 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 c44cc1c814..8bcc3c4bc9 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 d30d2de13d..871be6ec0f 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 bbdf10992f..54f2872ab8 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', [
         'key' => [
-          'AllowedValues' => [1, 2, 3]
+          'AllowedValues' => [1, 2, 3],
         ],
       ]);
 
@@ -67,7 +67,7 @@ public function testValidation() {
       ->setPropertyDefinition('key', DataDefinition::create('integer'))
       ->addConstraint('ComplexData', [
         'key' => [
-          'NotNull' => []
+          'NotNull' => [],
         ],
       ]);
 
diff --git a/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php b/core/tests/Drupal/KernelTests/Core/TypedData/TypedDataTest.php
index c79f2cfc9f..fb822bbb34 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, [
       '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 abdedd9c03..5851f7df56 100644
--- a/core/tests/Drupal/Tests/BrowserTestBase.php
+++ b/core/tests/Drupal/Tests/BrowserTestBase.php
@@ -308,7 +308,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 208440be74..06ec1131e1 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 7b8fc87d78..d616be9a05 100644
--- a/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php
+++ b/core/tests/Drupal/Tests/Component/DependencyInjection/ContainerTest.php
@@ -912,7 +912,7 @@ protected function getMockContainerDefinition() {
       'arguments' => [],
       'configurator' => [
         $this->getServiceCall('configurator'),
-        'configureService'
+        'configureService',
       ],
     ];
     $services['configurable_service_exception'] = [
diff --git a/core/tests/Drupal/Tests/Component/FileSystem/RegexDirectoryIteratorTest.php b/core/tests/Drupal/Tests/Component/FileSystem/RegexDirectoryIteratorTest.php
index e8d52bb5b5..fd44845527 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 2f8f23e5b3..82226d0d34 100644
--- a/core/tests/Drupal/Tests/Component/Serialization/YamlTestBase.php
+++ b/core/tests/Drupal/Tests/Component/Serialization/YamlTestBase.php
@@ -37,7 +37,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 cbb9d7e8eb..a875a82cfb 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 ([
       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[] = [$value, '', TRUE];
     }
diff --git a/core/tests/Drupal/Tests/Component/Utility/NestedArrayTest.php b/core/tests/Drupal/Tests/Component/Utility/NestedArrayTest.php
index 80fc7ddf33..4cdb1b62f0 100644
--- a/core/tests/Drupal/Tests/Component/Utility/NestedArrayTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/NestedArrayTest.php
@@ -265,7 +265,7 @@ 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],
diff --git a/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php b/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php
index 7503cc2710..ab2447065a 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[] = [
       ['weight' => 1],
       ['weight' => 1],
-      0
+      0,
     ];
 
     // Weights set and $a is less (lighter) than $b.
     $tests[] = [
       ['weight' => 1],
       ['weight' => 2],
-      -1
+      -1,
     ];
 
     // Weights set and $a is greater (heavier) than $b.
     $tests[] = [
       ['weight' => 2],
       ['weight' => 1],
-      1
+      1,
     ];
 
     // Weights not set.
     $tests[] = [
       [],
       [],
-      0
+      0,
     ];
 
     // Weights for $b not set.
     $tests[] = [
       ['weight' => 1],
       [],
-      1
+      1,
     ];
 
     // Weights for $a not set.
     $tests[] = [
       [],
       ['weight' => 1],
-      -1
+      -1,
     ];
 
     return $tests;
@@ -125,42 +125,42 @@ public function providerSortByWeightProperty() {
     $tests[] = [
       ['#weight' => 1],
       ['#weight' => 1],
-      0
+      0,
     ];
 
     // Weights set and $a is less (lighter) than $b.
     $tests[] = [
       ['#weight' => 1],
       ['#weight' => 2],
-      -1
+      -1,
     ];
 
     // Weights set and $a is greater (heavier) than $b.
     $tests[] = [
       ['#weight' => 2],
       ['#weight' => 1],
-      1
+      1,
     ];
 
     // Weights not set.
     $tests[] = [
       [],
       [],
-      0
+      0,
     ];
 
     // Weights for $b not set.
     $tests[] = [
       ['#weight' => 1],
       [],
-      1
+      1,
     ];
 
     // Weights for $a not set.
     $tests[] = [
       [],
       ['#weight' => 1],
-      -1
+      -1,
     ];
 
     return $tests;
@@ -201,35 +201,35 @@ public function providerSortByTitleElement() {
     $tests[] = [
       ['title' => 'test'],
       ['title' => 'test'],
-      0
+      0,
     ];
 
     // Title $a not set.
     $tests[] = [
       [],
       ['title' => 'test'],
-      -4
+      -4,
     ];
 
     // Title $b not set.
     $tests[] = [
       ['title' => 'test'],
       [],
-      4
+      4,
     ];
 
     // Titles set but not equal.
     $tests[] = [
       ['title' => 'test'],
       ['title' => 'testing'],
-      -1
+      -1,
     ];
 
     // Titles set but not equal.
     $tests[] = [
       ['title' => 'testing'],
       ['title' => 'test'],
-      1
+      1,
     ];
 
     return $tests;
@@ -270,35 +270,35 @@ public function providerSortByTitleProperty() {
     $tests[] = [
       ['#title' => 'test'],
       ['#title' => 'test'],
-      0
+      0,
     ];
 
     // Title $a not set.
     $tests[] = [
       [],
       ['#title' => 'test'],
-      -4
+      -4,
     ];
 
     // Title $b not set.
     $tests[] = [
       ['#title' => 'test'],
       [],
-      4
+      4,
     ];
 
     // Titles set but not equal.
     $tests[] = [
       ['#title' => 'test'],
       ['#title' => 'testing'],
-      -1
+      -1,
     ];
 
     // Titles set but not equal.
     $tests[] = [
       ['#title' => 'testing'],
       ['#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 0664f94272..695b4278ed 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',
-        ['img']
+        ['img'],
       ],
       [
         '<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',
-        ['a']
+        ['a'],
       ],
       [
         '<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',
-        ['span']
+        ['span'],
       ],
       [
         '<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',
-        ['img']
+        ['img'],
       ],
       [
         '<a data-a2a-url="foo"></a>',
         '<a data-a2a-url="foo"></a>',
         'Link tag with numeric data attribute',
-        ['a']
+        ['a'],
       ],
     ];
   }
diff --git a/core/tests/Drupal/Tests/Core/Annotation/TranslationTest.php b/core/tests/Drupal/Tests/Core/Annotation/TranslationTest.php
index 7be87f593f..65038a6dc8 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() {
       [
         '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 c7f1f3d562..aea79dc372 100644
--- a/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
@@ -94,7 +94,7 @@ public function providerTestRender() {
         '#tag' => 'style',
         '#value' => $value,
         '#attributes' => [
-          'media' => $media
+          'media' => $media,
         ],
         '#browsers' => $browsers,
       ];
@@ -461,7 +461,7 @@ public function testRenderInvalidType() {
       'media' => 'all',
       'preprocess' => TRUE,
       'browsers' => [],
-      '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 db39f1079b..45d3b6d35d 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 d06c678bcd..cbb739009e 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.
       [[], '', '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 0a5d3d3e38..1663273108 100644
--- a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php
@@ -282,13 +282,13 @@ public function providerCalculateDependenciesWithPluginCollections() {
           'config_dependencies' => [
             'config' => [$instance_dependency_1],
             'module' => [$instance_dependency_2],
-          ]
+          ],
         ],
         [
           'config' => [$instance_dependency_1],
-          'module' => [$instance_dependency_2, 'test']
-        ]
-      ]
+          'module' => [$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 7bcbc97cc9..f689db48ab 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' => [
         'module' => [
           'node',
-          'views'
+          'views',
         ],
         'config' => [
           '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 914d4f6fe5..c5d4c1c4ea 100644
--- a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php
+++ b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php
@@ -85,7 +85,7 @@ public function testConstructBadStorage() {
     $this->setExpectedException(ConfigEntityStorageClassException::class, '\Drupal\Core\Entity\KeyValueStore\KeyValueEntityStorage is not \Drupal\Core\Config\Entity\ConfigEntityStorage or it does not extend it');
     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 f3c882cec0..5558b26e83 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 fc0d63bede..353e6d3c7b 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' => [
           'config' => [
-            'field.storage.node.body'
+            'field.storage.node.body',
           ],
         ],
       ],
@@ -89,7 +89,7 @@ protected function getConfigData() {
       ],
       // Simple config.
       'system.performance' => [
-        '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 0b7aa25146..3821aef2e1 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.
       [['_controller' => 'Drupal\Tests\Core\Controller\MockContainerAware::getResult'], 'Drupal\Tests\Core\Controller\MockContainerAware', 'This is container aware.'],
       // Tests a request with no controller specified.
-      [[], FALSE]
+      [[], FALSE],
     ];
   }
 
diff --git a/core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php b/core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php
index 455cbcf799..fde641bd40 100644
--- a/core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php
+++ b/core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php
@@ -51,7 +51,7 @@ public function providerTestWeekDaysOrdered() {
         5 => 'Friday',
         6 => 'Saturday',
         0 => 'Sunday',
-      ]
+      ],
     ];
     $data[] = [
       2,
diff --git a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
index 5fe2b4478c..6ec819ee3c 100644
--- a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
+++ b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
@@ -347,7 +347,7 @@ public function testProcessNoPriorityAndExtraArguments() {
     $container
       ->register('consumer_id', __NAMESPACE__ . '\ValidConsumerWithExtraArguments')
       ->addTag('service_collector', [
-        'call' => 'addNoPriority'
+        'call' => 'addNoPriority',
       ]);
 
     $container
@@ -376,7 +376,7 @@ public function testProcessWithIdAndExtraArguments() {
     $container
       ->register('consumer_id', __NAMESPACE__ . '\ValidConsumerWithExtraArguments')
       ->addTag('service_collector', [
-        'call' => 'addWithId'
+        'call' => 'addWithId',
       ]);
 
     $container
@@ -408,7 +408,7 @@ public function testProcessWithDifferentArgumentsOrderAndDefaultValue() {
     $container
       ->register('consumer_id', __NAMESPACE__ . '\ValidConsumerWithExtraArguments')
       ->addTag('service_collector', [
-        'call' => 'addWithDifferentOrder'
+        'call' => 'addWithDifferentOrder',
       ]);
 
     $container
@@ -416,7 +416,7 @@ public function testProcessWithDifferentArgumentsOrderAndDefaultValue() {
       ->addTag('consumer_id', [
         '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 4d198b9cb2..308c49c0fa 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([
       'container_yamls' => [
-        __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 3dc70c214c..e85d799a9f 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;
diff --git a/core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php b/core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
index 616f6ba0a3..c6eb7d9160 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 = [
       'id' => $this->fieldType,
       'storage_settings' => [
-        'some_setting' => 'value 1'
+        'some_setting' => 'value 1',
       ],
       'field_settings' => [
         '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 d525514e49..fd4b4007ab 100644
--- a/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php
@@ -677,7 +677,7 @@ public function testGetFieldMap() {
           'type' => 'string',
           'bundles' => ['second_bundle' => 'second_bundle'],
         ],
-      ]
+      ],
     ];
     $this->assertEquals($expected, $this->entityFieldManager->getFieldMap());
   }
@@ -696,7 +696,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 db92ca9d0a..5ad6247aec 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' => [
           'type' => 'varchar',
-        ]
+        ],
       ],
       'unique keys' => [
         'email' => ['username', 'hostname', ['domain', 3]],
@@ -194,7 +194,7 @@ public function testGetSchemaBase() {
         ],
         'city' => [
           'type' => 'varchar',
-        ]
+        ],
       ],
       'indexes' => [
         'country_state_city' => ['country', 'state', ['city', 10]],
@@ -420,7 +420,7 @@ public function testGetSchemaRevisionable() {
           'revision_id' => [
             'type' => 'int',
             'not null' => FALSE,
-          ]
+          ],
         ],
         'primary key' => ['id'],
         'unique keys' => [
@@ -431,7 +431,7 @@ public function testGetSchemaRevisionable() {
           'entity_test__revision' => [
             'table' => 'entity_test_revision',
             'columns' => ['revision_id' => 'revision_id'],
-          ]
+          ],
         ],
       ],
       'entity_test_revision' => [
@@ -524,7 +524,7 @@ public function testGetSchemaTranslatable() {
           'langcode' => [
             'type' => 'varchar',
             'not null' => TRUE,
-          ]
+          ],
         ],
         'primary key' => ['id'],
         'unique keys' => [],
@@ -652,7 +652,7 @@ public function testGetSchemaRevisionableTranslatable() {
           'langcode' => [
             'type' => 'varchar',
             'not null' => TRUE,
-          ]
+          ],
         ],
         'primary key' => ['id'],
         'unique keys' => [
@@ -835,7 +835,7 @@ public function testDedicatedTableSchema() {
         'color' => [
           'table' => 'color',
           'columns' => [
-            'color' => 'id'
+            'color' => 'id',
           ],
         ],
       ],
@@ -1002,7 +1002,7 @@ public function testDedicatedTableSchemaForEntityWithStringIdentifier() {
         'color' => [
           'table' => 'color',
           'columns' => [
-            '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 98f5718c83..601346f985 100644
--- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php
@@ -755,7 +755,7 @@ public function testGetTableMappingRevisionableTranslatable(array $entity_keys)
     $revision_metadata_keys = [
       'revision_created' => 'revision_timestamp',
       'revision_user' => 'revision_uid',
-      'revision_log_message' => 'revision_log'
+      'revision_log_message' => 'revision_log',
     ];
 
     $this->entityType->expects($this->atLeastOnce())
@@ -1355,7 +1355,7 @@ protected function setUpModuleHandlerNoImplementations() {
       ->method('getImplementations')
       ->will($this->returnValueMap([
         ['entity_load', []],
-        [$this->entityTypeId . '_load', []]
+        [$this->entityTypeId . '_load', []],
       ]));
 
     $this->container->set('module_handler', $this->moduleHandler);
diff --git a/core/tests/Drupal/Tests/Core/EntityReferenceSelection/EntityReferenceSelectionUnitTest.php b/core/tests/Drupal/Tests/Core/EntityReferenceSelection/EntityReferenceSelectionUnitTest.php
index bfd5143849..d2672b344b 100644
--- a/core/tests/Drupal/Tests/Core/EntityReferenceSelection/EntityReferenceSelectionUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/EntityReferenceSelection/EntityReferenceSelectionUnitTest.php
@@ -83,7 +83,7 @@ public function providerTestSetConfiguration() {
               'bar' => 'bar value',
               'baz' => 'baz value',
             ],
-          ]
+          ],
         ],
       ],
       [
@@ -96,7 +96,7 @@ public function providerTestSetConfiguration() {
           'handler_settings' => [
             // Same setting from root level takes precedence.
             'setting2' => 'this will be overwritten',
-          ]
+          ],
         ],
       ],
     ];
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 4fda0022b7..820c6bd47c 100644
--- a/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
+++ b/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
@@ -52,7 +52,7 @@ protected function getModuleHandler() {
         '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);
     return $module_handler;
   }
@@ -107,8 +107,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(['load'])
       ->getMock();
@@ -177,7 +177,7 @@ public function testSetModuleList() {
     $fixture_module_handler = $this->getModuleHandler();
     $module_handler = $this->getMockBuilder(ModuleHandler::class)
       ->setConstructorArgs([
-        $this->root, [], $this->cacheBackend
+        $this->root, [], $this->cacheBackend,
       ])
       ->setMethods(['resetImplementations'])
       ->getMock();
@@ -205,7 +205,7 @@ public function testAddModule() {
 
     $module_handler = $this->getMockBuilder(ModuleHandler::class)
       ->setConstructorArgs([
-        $this->root, [], $this->cacheBackend
+        $this->root, [], $this->cacheBackend,
       ])
       ->setMethods(['resetImplementations'])
       ->getMock();
@@ -227,7 +227,7 @@ public function testAddProfile() {
 
     $module_handler = $this->getMockBuilder(ModuleHandler::class)
       ->setConstructorArgs([
-        $this->root, [], $this->cacheBackend
+        $this->root, [], $this->cacheBackend,
       ])
       ->setMethods(['resetImplementations'])
       ->getMock();
@@ -264,8 +264,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(['loadInclude'])
       ->getMock();
@@ -353,8 +353,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(['buildImplementationInfo', 'loadInclude'])
       ->getMock();
@@ -391,8 +391,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(['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 14e03cb565..4d95e0b0bc 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 177504c13a..d9537c3fdb 100644
--- a/core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php
@@ -86,7 +86,7 @@ public function testBuildResponseRenderArray() {
       '#ajax' => [
         'callback' => function (array $form, FormStateInterface $form_state) {
           return $form['test'];
-        }
+        },
       ],
     ];
     $request = new Request();
@@ -117,7 +117,7 @@ public function testBuildResponseResponse() {
       '#ajax' => [
         'callback' => function (array $form, FormStateInterface $form_state) {
           return new AjaxResponse([]);
-        }
+        },
       ],
     ];
     $request = new Request();
@@ -142,7 +142,7 @@ public function testBuildResponseWithCommands() {
       '#ajax' => [
         'callback' => function (array $form, FormStateInterface $form_state) {
           return new AjaxResponse([]);
-        }
+        },
       ],
     ];
     $request = new Request();
@@ -175,7 +175,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 3ae9d6c139..b55dd19b72 100644
--- a/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php
@@ -331,7 +331,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 351788c6e7..2a77cfac25 100644
--- a/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php
@@ -1253,7 +1253,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 84b91afe97..db18ed5fc1 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 = [
-      '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 = [
       'route_name' => 'test_route',
-      'route_parameters' => ['parameter' => 'example']
+      'route_parameters' => ['parameter' => 'example'],
     ];
 
     $this->routeProvider->expects($this->once())
@@ -124,7 +124,7 @@ public function testGetRouteParametersInPluginDefinitions() {
    */
   public function testGetRouteParametersForDynamicRouteWithNonUpcastedParameters() {
     $this->pluginDefinition = [
-      '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 = [
-      'route_name' => 'test_route'
+      'route_name' => 'test_route',
     ];
 
     $route = new Route('/test-route/{parameter}');
@@ -177,17 +177,17 @@ public function providerTestGetWeight() {
         [
           '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.
       [
         [
           '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' => [
         'class' => [
           '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 98a122ca21..b287f12eb3 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 = [
       'definitions' => [
-        'test1' => ['parent' => 'test0', 'menu_name' => '', 'weight' => 0, 'expanded' => FALSE, 'enabled' => FALSE]
-      ]
+        'test1' => ['parent' => 'test0', 'menu_name' => '', 'weight' => 0, 'expanded' => FALSE, 'enabled' => FALSE],
+      ],
     ];
     $definitions_save_2 = [
       'definitions' => [
         'test1' => ['parent' => 'test0', 'menu_name' => '', 'weight' => 0, 'expanded' => FALSE, 'enabled' => FALSE],
-        'test1__la___ma' => ['parent' => 'test1', 'menu_name' => '', 'weight' => 0, 'expanded' => FALSE, 'enabled' => FALSE]
-      ]
+        'test1__la___ma' => ['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 6d60e1d4e7..b7549ce47a 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'] = [
       'strawberry', 'raspberry', 'pear', 'peach',
-      'pineapple', 'banana', 'apple'
+      'pineapple', 'banana', 'apple',
     ];
 
     $converters[1]['unsorted'] = [
@@ -95,7 +95,7 @@ public function providerTestAddConverter() {
 
     $converters[1]['sorted'] = [
       '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 929930a521..1d5d26b741 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 = [
       'url' => [
-        '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 @@ public function testProcessInbound() {
     $config_factory_stub = $this->getConfigFactoryStub(
       [
         'system.site' => [
-          'page.front' => '/user/login'
+          'page.front' => '/user/login',
         ],
         'language.negotiation' => [
           'url' => [
diff --git a/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php b/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
index 7188a51d13..2ee9bdbf49 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 providerTestAddCacheableDependency() {
       '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 d168f741e5..8182448324 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 = [
       '#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 fb0c0c5227..49a5fbde2c 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
@@ -1124,7 +1124,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 76f9d48b27..7e4b83345e 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererRecursionTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererRecursionTest.php
@@ -46,10 +46,10 @@ public function testRenderRecursionWithNestedRenderRoot() {
     $page = [
       'content' => [
         '#pre_render' => [
-          $callable
+          $callable,
         ],
         '#suffix' => $parent_markup,
-      ]
+      ],
     ];
     $renderer->renderRoot($page);
   }
@@ -78,10 +78,10 @@ public function testRenderRecursionWithNestedRender() {
       'content' => [
         'complex_child' => $complex_child_template,
         '#post_render' => [
-          $callable
+          $callable,
         ],
         '#suffix' => $parent_markup,
-      ]
+      ],
     ];
     $output = $renderer->renderRoot($page);
 
@@ -114,10 +114,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 f3ea379b63..f8a2b37010 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererTest.php
@@ -182,7 +182,7 @@ public function providerTestRenderBasic() {
         '#pre_render' => [function($elements) {
           $elements['#markup'] .= '<script>alert("bar");</script>';
           return $elements;
-        }
+        },
         ],
       ],
       'fooalert("bar");',
@@ -195,7 +195,7 @@ public function providerTestRenderBasic() {
         '#pre_render' => [function($elements) {
           $elements['#markup'] .= '<script>alert("bar");</script>';
           return $elements;
-        }
+        },
         ],
       ],
       'foo<script>alert("bar");</script>',
@@ -208,7 +208,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;',
@@ -496,7 +496,7 @@ public function testRenderWithAccessCallbackCallable($access) {
     $build = [
       '#access_callback' => function() use ($access) {
         return $access;
-      }
+      },
     ];
 
     $this->assertAccess($build, $access);
@@ -515,7 +515,7 @@ public function testRenderWithAccessPropertyAndCallback($access) {
       '#access' => $access,
       '#access_callback' => function() {
         return TRUE;
-      }
+      },
     ];
 
     $this->assertAccess($build, $access);
@@ -893,7 +893,7 @@ public function providerTestAddCacheableDependency() {
             'contexts' => ['theme'],
             'tags' => ['bar'],
             'max-age' => 600,
-          ]
+          ],
         ],
         new TestCacheableDependency(['user.roles'], ['foo'], Cache::PERMANENT),
         [
@@ -911,7 +911,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 38278ab081..5ff38fa46b 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' => ['GET'],
       'requirements' => [
-        '_format' => 'json'
+        '_format' => 'json',
       ],
     ];
     $routes['route_d'] = [
@@ -70,7 +70,7 @@ public function staticSampleRouteCollection() {
       'path' => '/path/two',
       'methods' => ['GET', 'HEAD'],
       'requirements' => [
-        '_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 a872e305d4..f98a8a9c54 100644
--- a/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php
+++ b/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php
@@ -114,12 +114,12 @@ public function providerTestEscaping() {
       ['{{ path(name = "foo", parameters = foo) }}', TRUE],
       [
         '{{ path(name = "foo", parameters = { foo: ["foo", "bar"] }) }}',
-        TRUE
+        TRUE,
       ],
       ['{{ path(name = "foo", parameters = { foo: foo }) }}', TRUE],
       [
         '{{ 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 08b8117034..67c1631c60 100644
--- a/core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php
+++ b/core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php
@@ -129,7 +129,7 @@ public function testBasicValidateWithConstraint() {
         ->addConstraint('Callback', [
           'callback' => function ($value, ExecutionContextInterface $context) {
             $context->addViolation('test violation: ' . $value);
-          }
+          },
         ])
     );
     $typed_data->setValue('foo');
@@ -147,7 +147,7 @@ public function testBasicValidateWithMultipleConstraints() {
     $options = [
       'callback' => function ($value, ExecutionContextInterface $context) {
         $context->addViolation('test violation');
-      }
+      },
     ];
     $typed_data = $this->typedDataManager->create(
       DataDefinition::create('string')
@@ -320,7 +320,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 91620e6155..5f8474a0dc 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());
   }
