diff --git a/core/includes/batch.inc b/core/includes/batch.inc
index a4b5378..532a1b5 100644
--- a/core/includes/batch.inc
+++ b/core/includes/batch.inc
@@ -118,7 +118,6 @@ function _batch_progress_page() {
   }
   else {
     // This is one of the later requests; do some processing first.
-
     // Error handling: if PHP dies due to a fatal error (e.g. a nonexistent
     // function), it will output whatever is in the output buffer, followed by
     // the error message.
@@ -289,7 +288,6 @@ function _batch_process() {
 
   if ($batch['progressive']) {
     // Gather progress information.
-
     // Reporting 100% progress will cause the whole batch to be considered
     // processed. If processing was paused right after moving to a new set,
     // we have to use the info from the new (unprocessed) set.
diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 589d451..e3eccc8 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -957,7 +957,7 @@ function &drupal_register_shutdown_function($callback = NULL) {
     $args = func_get_args();
     // Remove $callback from the arguments.
     unset($args[0]);
-    // Save callback and arguments
+    // Save callback and arguments.
     $callbacks[] = array('callback' => $callback, 'arguments' => $args);
   }
   return $callbacks;
diff --git a/core/includes/common.inc b/core/includes/common.inc
index 03af03b..a4036b4 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -1243,7 +1243,7 @@ function archiver_get_extensions() {
  *   If no appropriate archiver class was found, will return FALSE.
  */
 function archiver_get_archiver($file) {
-  // Archivers can only work on local paths
+  // Archivers can only work on local paths.
   $filepath = drupal_realpath($file);
   if (!is_file($filepath)) {
     throw new Exception(t('Archivers can only operate on local files: %file not supported', array('%file' => $file)));
diff --git a/core/includes/errors.inc b/core/includes/errors.inc
index 36d3a41..388a70e 100644
--- a/core/includes/errors.inc
+++ b/core/includes/errors.inc
@@ -228,7 +228,6 @@ function _drupal_log_error($error, $fatal = FALSE) {
 
       if ($error_level != ERROR_REPORTING_DISPLAY_VERBOSE) {
         // Without verbose logging, use a simple message.
-
         // We call SafeMarkup::format() directly here, rather than use t() since
         // we are in the middle of error handling, and we don't want t() to
         // cause further errors.
@@ -236,7 +235,6 @@ function _drupal_log_error($error, $fatal = FALSE) {
       }
       else {
         // With verbose logging, we will also include a backtrace.
-
         // First trace is the error itself, already contained in the message.
         // While the second trace is the error source and also contained in the
         // message, the message doesn't contain argument values, so we output it
diff --git a/core/includes/file.inc b/core/includes/file.inc
index 3e5eb8c..9855b87 100644
--- a/core/includes/file.inc
+++ b/core/includes/file.inc
@@ -628,7 +628,7 @@ function file_unmanaged_move($source, $destination = NULL, $replace = FILE_EXIST
 function file_munge_filename($filename, $extensions, $alerts = TRUE) {
   $original = $filename;
 
-  // Allow potentially insecure uploads for very savvy users and admin
+  // Allow potentially insecure uploads for very savvy users and admin.
   if (!\Drupal::config('system.file')->get('allow_insecure_uploads')) {
     // Remove any null bytes. See
     // http://php.net/manual/security.filesystem.nullbytes.php
@@ -694,7 +694,7 @@ function file_create_filename($basename, $directory) {
   // some filesystems, not many applications handle them well.
   $basename = preg_replace('/[\x00-\x1F]/u', '_', $basename);
   if (substr(PHP_OS, 0, 3) == 'WIN') {
-    // These characters are not allowed in Windows filenames
+    // These characters are not allowed in Windows filenames.
     $basename = str_replace(array(':', '*', '?', '"', '<', '>', '|'), '_', $basename);
   }
 
diff --git a/core/includes/form.inc b/core/includes/form.inc
index c110c5b..11e36be 100644
--- a/core/includes/form.inc
+++ b/core/includes/form.inc
@@ -796,7 +796,7 @@ function batch_process($redirect = NULL, Url $url = NULL, $redirect_callback = N
   $batch =& batch_get();
 
   if (isset($batch)) {
-    // Add process information
+    // Add process information.
     $process_info = array(
       'current_set' => 0,
       'progressive' => TRUE,
diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index 7a9812f..e501199 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -1128,7 +1128,7 @@ function install_database_errors($database, $settings_file) {
     $errors['driver'] = t("In your %settings_file file you have configured @drupal to use a %driver server, however your PHP installation currently does not support this database type.", array('%settings_file' => $settings_file, '@drupal' => drupal_install_profile_distribution_name(), '%driver' => $driver));
   }
   else {
-    // Run driver specific validation
+    // Run driver specific validation.
     $errors += $database_types[$driver]->validateDatabaseSettings($database);
     if (!empty($errors)) {
       // No point to try further.
diff --git a/core/includes/install.inc b/core/includes/install.inc
index 3120799..c35e797 100644
--- a/core/includes/install.inc
+++ b/core/includes/install.inc
@@ -982,10 +982,10 @@ function drupal_requirements_severity(&$requirements) {
  */
 function drupal_check_module($module) {
   module_load_install($module);
-  // Check requirements
+  // Check requirements.
   $requirements = \Drupal::moduleHandler()->invoke($module, 'requirements', array('install'));
   if (is_array($requirements) && drupal_requirements_severity($requirements) == REQUIREMENT_ERROR) {
-    // Print any error messages
+    // Print any error messages.
     foreach ($requirements as $requirement) {
       if (isset($requirement['severity']) && $requirement['severity'] == REQUIREMENT_ERROR) {
         $message = $requirement['description'];
diff --git a/core/includes/module.inc b/core/includes/module.inc
index bc50d2c..4b95710 100644
--- a/core/includes/module.inc
+++ b/core/includes/module.inc
@@ -87,7 +87,7 @@ function system_register($type, $name, $uri) {
  *   The name of the module's install file, if successful; FALSE otherwise.
  */
 function module_load_install($module) {
-  // Make sure the installation API is available
+  // Make sure the installation API is available.
   include_once __DIR__ . '/install.inc';
 
   return module_load_include('install', $module);
@@ -221,7 +221,7 @@ function module_config_sort($data) {
   // compound of "[sign-as-integer][padded-integer-weight][name]"; e.g., given
   // two modules and weights (spaces added for clarity):
   // - Block with weight -5: 0 0000000000000000005 block
-  // - Node  with weight  0: 1 0000000000000000000 node
+  // - Node  with weight  0: 1 0000000000000000000 node.
   $sort = array();
   foreach ($data as $name => $weight) {
     // Prefix negative weights with 0, positive weights with 1.
diff --git a/core/includes/pager.inc b/core/includes/pager.inc
index 6b6bbb7..93677be 100644
--- a/core/includes/pager.inc
+++ b/core/includes/pager.inc
@@ -190,16 +190,15 @@ function template_preprocess_pager(&$variables) {
   // Calculate various markers within this pager piece:
   // Middle is used to "center" pages around the current page.
   $pager_middle = ceil($quantity / 2);
-  // current is the page we are currently paged to.
+  // Current is the page we are currently paged to.
   $pager_current = $pager_page_array[$element] + 1;
-  // first is the first page listed by this pager piece (re quantity).
+  // First is the first page listed by this pager piece (re quantity).
   $pager_first = $pager_current - $pager_middle + 1;
-  // last is the last page listed by this pager piece (re quantity).
+  // Last is the last page listed by this pager piece (re quantity).
   $pager_last = $pager_current + $quantity - $pager_middle;
-  // max is the maximum page number.
+  // Max is the maximum page number.
   $pager_max = $pager_total[$element];
   // End of marker calculations.
-
   // Prepare for generation loop.
   $i = $pager_first;
   if ($pager_last > $pager_max) {
@@ -213,7 +212,6 @@ function template_preprocess_pager(&$variables) {
     $i = 1;
   }
   // End of generation loop preparation.
-
   // Create the "first" and "previous" links if we are not on the first page.
   if ($pager_page_array[$element] > 0) {
     $items['first'] = array();
diff --git a/core/includes/theme.inc b/core/includes/theme.inc
index 33b1769..92f8dff 100644
--- a/core/includes/theme.inc
+++ b/core/includes/theme.inc
@@ -432,7 +432,6 @@ function theme_render_and_autoescape($arg) {
 
   // This is a normal render array, which is safe by definition, with special
   // simple cases already handled.
-
   // Early return if this element was pre-rendered (no need to re-render).
   if (isset($arg['#printed']) && $arg['#printed'] == TRUE && isset($arg['#markup']) && strlen($arg['#markup']) > 0) {
     return (string) $arg['#markup'];
@@ -880,7 +879,7 @@ function template_preprocess_table(&$variables) {
   // Format the table columns:
   if (!empty($variables['colgroups'])) {
     foreach ($variables['colgroups'] as &$colgroup) {
-      // Check if we're dealing with a simple or complex column
+      // Check if we're dealing with a simple or complex column.
       if (isset($colgroup['data'])) {
         $cols = $colgroup['data'];
         unset($colgroup['data']);
@@ -975,7 +974,7 @@ function template_preprocess_table(&$variables) {
         $cells = $row;
         $row_attributes = array();
 
-        // Check if we're dealing with a simple or complex row
+        // Check if we're dealing with a simple or complex row.
         if (isset($row['data'])) {
           $cells = $row['data'];
           $variables['no_striping'] = isset($row['no_striping']) ? $row['no_striping'] : FALSE;
@@ -1392,8 +1391,7 @@ function theme_get_suggestions($args, $base, $delimiter = '__') {
   // page__node
   // page__node__%
   // page__node__1
-  // page__node__edit
-
+  // page__node__edit.
   $suggestions = array();
   $prefix = $base;
   foreach ($args as $arg) {
diff --git a/core/includes/unicode.inc b/core/includes/unicode.inc
index f0df33e..7f08ba3 100644
--- a/core/includes/unicode.inc
+++ b/core/includes/unicode.inc
@@ -76,7 +76,7 @@ function unicode_requirements() {
  * @ingroup php_wrappers
  */
 function drupal_xml_parser_create(&$data) {
-  // Default XML encoding is UTF-8
+  // Default XML encoding is UTF-8.
   $encoding = 'utf-8';
   $bom = FALSE;
 
diff --git a/core/lib/Drupal/Component/Diff/Diff.php b/core/lib/Drupal/Component/Diff/Diff.php
index 4afcbd3..f480aa1 100644
--- a/core/lib/Drupal/Component/Diff/Diff.php
+++ b/core/lib/Drupal/Component/Diff/Diff.php
@@ -34,7 +34,7 @@ class Diff {
   public function __construct($from_lines, $to_lines) {
     $eng = new DiffEngine();
     $this->edits = $eng->diff($from_lines, $to_lines);
-    //$this->_check($from_lines, $to_lines);
+    // $this->_check($from_lines, $to_lines);.
   }
 
   /**
diff --git a/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php b/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php
index 78ec76a..13bbeea 100644
--- a/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php
+++ b/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php
@@ -88,7 +88,7 @@ public function diff($from_lines, $to_lines) {
     // Find the LCS.
     $this->_compareseq(0, sizeof($this->xv), 0, sizeof($this->yv));
 
-    // Merge edits when possible
+    // Merge edits when possible.
     $this->_shift_boundaries($from_lines, $this->xchanged, $this->ychanged);
     $this->_shift_boundaries($to_lines, $this->ychanged, $this->xchanged);
 
@@ -299,8 +299,8 @@ protected function _compareseq($xoff, $xlim, $yoff, $ylim) {
     }
     else {
       // This is ad hoc but seems to work well.
-      //$nchunks = sqrt(min($xlim - $xoff, $ylim - $yoff) / 2.5);
-      //$nchunks = max(2, min(8, (int)$nchunks));
+      // $nchunks = sqrt(min($xlim - $xoff, $ylim - $yoff) / 2.5);
+      // $nchunks = max(2, min(8, (int)$nchunks));.
       $nchunks = min(7, $xlim - $xoff, $ylim - $yoff) + 1;
       list($lcs, $seps)
       = $this->_diag($xoff, $xlim, $yoff, $ylim, $nchunks);
diff --git a/core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php b/core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php
index f5cba32..a6592cf 100644
--- a/core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php
+++ b/core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php
@@ -48,7 +48,7 @@ protected function _flushLine($new_tag) {
       array_push($this->lines, $this->line);
     }
     else {
-      // make empty lines visible by inserting an NBSP
+      // Make empty lines visible by inserting an NBSP.
       array_push($this->lines, $this::NBSP);
     }
     $this->line = '';
diff --git a/core/lib/Drupal/Component/Diff/WordLevelDiff.php b/core/lib/Drupal/Component/Diff/WordLevelDiff.php
index c9114bc..8da6ab4 100644
--- a/core/lib/Drupal/Component/Diff/WordLevelDiff.php
+++ b/core/lib/Drupal/Component/Diff/WordLevelDiff.php
@@ -27,7 +27,7 @@ protected function _split($lines) {
     $first = TRUE;
     foreach ($lines as $line) {
       // If the line is too long, just pretend the entire line is one big word
-      // This prevents resource exhaustion problems
+      // This prevents resource exhaustion problems.
       if ( $first ) {
         $first = FALSE;
       }
diff --git a/core/lib/Drupal/Component/Gettext/PoStreamReader.php b/core/lib/Drupal/Component/Gettext/PoStreamReader.php
index faaa95f..bcceaa2 100644
--- a/core/lib/Drupal/Component/Gettext/PoStreamReader.php
+++ b/core/lib/Drupal/Component/Gettext/PoStreamReader.php
@@ -272,7 +272,6 @@ private function readLine() {
 
       if (!strncmp('#', $line, 1)) {
         // Lines starting with '#' are comments.
-
         if ($this->_context == 'COMMENT') {
           // Already in comment context, add to current comment.
           $this->_current_item['#'][] = substr($line, 1);
@@ -297,7 +296,6 @@ private function readLine() {
       }
       elseif (!strncmp('msgid_plural', $line, 12)) {
         // A plural form for the current source string.
-
         if ($this->_context != 'MSGID') {
           // A plural form can only be added to an msgid directly.
           $this->_errors[] = SafeMarkup::format('The translation stream %uri contains an error: "msgid_plural" was expected but not found on line %line.', $log_vars);
@@ -328,7 +326,6 @@ private function readLine() {
       }
       elseif (!strncmp('msgid', $line, 5)) {
         // Starting a new message.
-
         if (($this->_context == 'MSGSTR') || ($this->_context == 'MSGSTR_ARR')) {
           // We are currently in string context, save current item.
           $this->setItemFromArray($this->_current_item);
@@ -359,7 +356,6 @@ private function readLine() {
       }
       elseif (!strncmp('msgctxt', $line, 7)) {
         // Starting a new context.
-
         if (($this->_context == 'MSGSTR') || ($this->_context == 'MSGSTR_ARR')) {
           // We are currently in string context, save current item.
           $this->setItemFromArray($this->_current_item);
@@ -389,7 +385,6 @@ private function readLine() {
       }
       elseif (!strncmp('msgstr[', $line, 7)) {
         // A message string for a specific plurality.
-
         if (($this->_context != 'MSGID') &&
             ($this->_context != 'MSGCTXT') &&
             ($this->_context != 'MSGID_PLURAL') &&
@@ -431,7 +426,6 @@ private function readLine() {
       }
       elseif (!strncmp("msgstr", $line, 6)) {
         // A string pair for an msgid (with optional context).
-
         if (($this->_context != 'MSGID') && ($this->_context != 'MSGCTXT')) {
           // Strings are only valid within an id or context scope.
           $this->_errors[] = SafeMarkup::format('The translation stream %uri contains an error: "msgstr" is unexpected on line %line.', $log_vars);
@@ -456,7 +450,6 @@ private function readLine() {
       }
       elseif ($line != '') {
         // Anything that is not a token may be a continuation of a previous token.
-
         $quoted = $this->parseQuoted($line);
         if ($quoted === FALSE) {
           // This string must be quoted.
diff --git a/core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php b/core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
index 96318ac..5a832b9 100644
--- a/core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
+++ b/core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
@@ -143,7 +143,6 @@ public function validateContexts() {
     $violations = new ConstraintViolationList();
     // @todo: Implement symfony validator API to let the validator traverse
     // and set property paths accordingly.
-
     foreach ($this->getContexts() as $context) {
       $violations->addAll($context->validate());
     }
diff --git a/core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php b/core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php
index 0801b36..b02b46b 100644
--- a/core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php
+++ b/core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php
@@ -107,7 +107,7 @@ public function build($class_name, $proxy_class_name = '') {
 
     $output .= $this->buildUseStatements();
 
-    // The actual class;
+    // The actual class;.
     $properties = <<<'EOS'
 /**
  * The id of the original proxied service.
@@ -302,7 +302,7 @@ protected function buildMethodBody(\ReflectionMethod $reflection_method) {
       $output .= "    \\$class_name::$function_name(";
     }
 
-    // Add parameters;
+    // Add parameters;.
     $parameters = [];
     foreach ($reflection_method->getParameters() as $parameter) {
       $parameters[] = '$' . $parameter->getName();
diff --git a/core/lib/Drupal/Component/Utility/Crypt.php b/core/lib/Drupal/Component/Utility/Crypt.php
index 2c18d91..1310889 100644
--- a/core/lib/Drupal/Component/Utility/Crypt.php
+++ b/core/lib/Drupal/Component/Utility/Crypt.php
@@ -89,7 +89,7 @@ public static function hashEquals($known_string, $user_string) {
       return hash_equals($known_string, $user_string);
     }
     else {
-      // Backport of hash_equals() function from PHP 5.6
+      // Backport of hash_equals() function from PHP 5.6.
       // @see https://github.com/php/php-src/blob/PHP-5.6/ext/hash/hash.c#L739
       if (!is_string($known_string)) {
         trigger_error(sprintf("Expected known_string to be a string, %s given", gettype($known_string)), E_USER_WARNING);
diff --git a/core/lib/Drupal/Component/Utility/Tags.php b/core/lib/Drupal/Component/Utility/Tags.php
index 3f8ed13..74ec016 100644
--- a/core/lib/Drupal/Component/Utility/Tags.php
+++ b/core/lib/Drupal/Component/Utility/Tags.php
@@ -20,7 +20,7 @@ class Tags {
    */
   public static function explode($tags) {
     // This regexp allows the following types of user input:
-    // this, "somecompany, llc", "and ""this"" w,o.rks", foo bar
+    // this, "somecompany, llc", "and ""this"" w,o.rks", foo bar.
     $regexp = '%(?:^|,\ *)("(?>[^"]*)(?>""[^"]* )*"|(?: [^",]*))%x';
     preg_match_all($regexp, $tags, $matches);
     $typed_tags = array_unique($matches[1]);
diff --git a/core/lib/Drupal/Component/Utility/Unicode.php b/core/lib/Drupal/Component/Utility/Unicode.php
index f6b4668..fdc9444 100644
--- a/core/lib/Drupal/Component/Utility/Unicode.php
+++ b/core/lib/Drupal/Component/Utility/Unicode.php
@@ -607,7 +607,7 @@ public static function strcasecmp($str1 , $str2) {
    */
   public static function mimeHeaderEncode($string) {
     if (preg_match('/[^\x20-\x7E]/', $string)) {
-      $chunk_size = 47; // floor((75 - strlen("=?UTF-8?B??=")) * 0.75);
+      $chunk_size = 47; // floor((75 - strlen("=?UTF-8?B??=")) * 0.75);.
       $len = strlen($string);
       $output = '';
       while ($len > 0) {
diff --git a/core/lib/Drupal/Component/Utility/UserAgent.php b/core/lib/Drupal/Component/Utility/UserAgent.php
index bd81105..1722ec9 100644
--- a/core/lib/Drupal/Component/Utility/UserAgent.php
+++ b/core/lib/Drupal/Component/Utility/UserAgent.php
@@ -43,7 +43,7 @@ public static function getBestMatchingLangcode($http_accept_language, $langcodes
     //   Accept-Language = "Accept-Language" ":"
     //                  1#( language-range [ ";" "q" "=" qvalue ] )
     //   language-range  = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" )
-    // Samples: "hu, en-us;q=0.66, en;q=0.33", "hu,en-us;q=0.5"
+    // Samples: "hu, en-us;q=0.66, en;q=0.33", "hu,en-us;q=0.5".
     $ua_langcodes = array();
     if (preg_match_all('@(?<=[, ]|^)([a-zA-Z-]+|\*)(?:;q=([0-9.]+))?(?:$|\s*,\s*)@', trim($http_accept_language), $matches, PREG_SET_ORDER)) {
       foreach ($matches as $match) {
diff --git a/core/lib/Drupal/Core/Archiver/Tar.php b/core/lib/Drupal/Core/Archiver/Tar.php
index 3bf66c0..34f0ee8 100644
--- a/core/lib/Drupal/Core/Archiver/Tar.php
+++ b/core/lib/Drupal/Core/Archiver/Tar.php
@@ -45,7 +45,6 @@ public function remove($file_path) {
     // so we'll have to simulate it somehow, probably by
     // creating a new archive with everything but the removed
     // file.
-
     return $this;
   }
 
diff --git a/core/lib/Drupal/Core/Asset/CssOptimizer.php b/core/lib/Drupal/Core/Asset/CssOptimizer.php
index f473544..a544243 100644
--- a/core/lib/Drupal/Core/Asset/CssOptimizer.php
+++ b/core/lib/Drupal/Core/Asset/CssOptimizer.php
@@ -95,7 +95,7 @@ public function loadFile($file, $optimize = NULL, $reset_basepath = TRUE) {
     if ($reset_basepath) {
       $basepath = '';
     }
-    // Store the value of $optimize for preg_replace_callback with nested
+    // Store the value of $optimize for preg_replace_callback with nested.
     // @import loops.
     if (isset($optimize)) {
       $_optimize = $optimize;
diff --git a/core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php b/core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php
index c101968..6653314 100644
--- a/core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php
@@ -54,7 +54,7 @@ public function getCacheableMetadata() {
     $cacheable_metadata = new CacheableMetadata();
 
     // The permissions hash changes when:
-    // - a user is updated to have different roles;
+    // - a user is updated to have different roles;.
     $tags = ['user:' . $this->user->id()];
     // - a role is updated to have different permissions.
     foreach ($this->user->getRoles() as $rid) {
diff --git a/core/lib/Drupal/Core/Cache/MemoryBackend.php b/core/lib/Drupal/Core/Cache/MemoryBackend.php
index a0d32bd..8d87eea 100644
--- a/core/lib/Drupal/Core/Cache/MemoryBackend.php
+++ b/core/lib/Drupal/Core/Cache/MemoryBackend.php
@@ -84,7 +84,6 @@ protected function prepareItem($cache, $allow_invalid) {
     // We must clone it as part of the preparation step so that the actual
     // cache object is not affected by the unserialize() call or other
     // manipulations of the returned object.
-
     $prepared = clone $cache;
     $prepared->data = unserialize($prepared->data);
 
diff --git a/core/lib/Drupal/Core/Config/ConfigBase.php b/core/lib/Drupal/Core/Config/ConfigBase.php
index 6dfa962..b6ea7e1 100644
--- a/core/lib/Drupal/Core/Config/ConfigBase.php
+++ b/core/lib/Drupal/Core/Config/ConfigBase.php
@@ -102,7 +102,7 @@ public static function validateName($name) {
     }
 
     // The name must not contain any of the following characters:
-    // : ? * < > " ' / \
+    // : ? * < > " ' / \.
     if (preg_match('/[:?*<>"\'\/\\\\]/', $name)) {
       throw new ConfigNameException("Invalid character in Config object name $name.");
     }
diff --git a/core/lib/Drupal/Core/Config/ConfigImporter.php b/core/lib/Drupal/Core/Config/ConfigImporter.php
index bd9af28..0973ff4 100644
--- a/core/lib/Drupal/Core/Config/ConfigImporter.php
+++ b/core/lib/Drupal/Core/Config/ConfigImporter.php
@@ -392,7 +392,7 @@ protected function createExtensionChangelist() {
     // -2   options
     // -1   text
     //  0 0 ban
-    //  0 1 actions
+    //  0 1 actions.
     // @todo Move this sorting functionality to the extension system.
     array_multisort(array_values($module_list), SORT_ASC, array_keys($module_list), SORT_DESC, $module_list);
     $this->extensionChangelist['module']['uninstall'] = array_intersect(array_keys($module_list), $uninstall);
diff --git a/core/lib/Drupal/Core/Config/TypedConfigManager.php b/core/lib/Drupal/Core/Config/TypedConfigManager.php
index 8e3ea45..cd6978c 100644
--- a/core/lib/Drupal/Core/Config/TypedConfigManager.php
+++ b/core/lib/Drupal/Core/Config/TypedConfigManager.php
@@ -236,13 +236,13 @@ protected function getFallbackName($name) {
         // No definition for this level. Collapse multiple wildcards to a single
         // wildcard to see if there is a greedy match. For example,
         // breakpoint.breakpoint.*.* becomes
-        // breakpoint.breakpoint.*
+        // breakpoint.breakpoint.*.
         $one_star = preg_replace('/\.([:\.\*]*)$/', '.*', $replaced);
         if ($one_star != $replaced && isset($this->definitions[$one_star])) {
           return $one_star;
         }
         // Check for next level. For example, if breakpoint.breakpoint.* has
-        // been checked and no match found then check breakpoint.*.*
+        // been checked and no match found then check breakpoint.*.*.
         return $this->getFallbackName($replaced);
       }
     }
@@ -311,7 +311,7 @@ protected function replaceVariable($value, $data) {
     // Process each value part, one at a time.
     while ($name = array_shift($parts)) {
       if (!is_array($data) || !isset($data[$name])) {
-        // Key not found, return original value
+        // Key not found, return original value.
         return $value;
       }
       elseif (!$parts) {
diff --git a/core/lib/Drupal/Core/Cron.php b/core/lib/Drupal/Core/Cron.php
index 2750d9a..de7f7c9 100644
--- a/core/lib/Drupal/Core/Cron.php
+++ b/core/lib/Drupal/Core/Cron.php
@@ -123,7 +123,7 @@ public function run() {
       // Release cron lock.
       $this->lock->release('cron');
 
-      // Return TRUE so other functions can check if it did run successfully
+      // Return TRUE so other functions can check if it did run successfully.
       $return = TRUE;
     }
 
diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
index ef54471..cc62bae 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
@@ -89,7 +89,7 @@ public static function open(array &$connection_options = array()) {
     // so backslashes in the password need to be doubled up.
     // The bug was reported against pdo_pgsql 1.0.2, backslashes in passwords
     // will break on this doubling up when the bug is fixed, so check the version
-    //elseif (phpversion('pdo_pgsql') < 'version_this_was_fixed_in') {
+    // elseif (phpversion('pdo_pgsql') < 'version_this_was_fixed_in') {.
     else {
       $connection_options['password'] = str_replace('\\', '\\\\', $connection_options['password']);
     }
diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
index 937678e..bfaa13f 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
@@ -463,7 +463,7 @@ function renameTable($table, $new_name) {
     $indexes = $this->connection->query('SELECT indexname FROM pg_indexes WHERE schemaname = :schema AND tablename = :table', array(':schema' => $old_schema, ':table' => $old_table_name));
 
     foreach ($indexes as $index) {
-      // Get the index type by suffix, e.g. idx/key/pkey
+      // Get the index type by suffix, e.g. idx/key/pkey.
       $index_type = substr($index->indexname, strrpos($index->indexname, '_') + 1);
 
       // If the index is already rewritten by ensureIdentifiersLength() to not
diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php
index 9dd4fc2..8012281 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Upsert.php
@@ -69,7 +69,6 @@ public function execute() {
     $this->insertValues = array();
 
     // Transaction commits here where $transaction looses scope.
-
     return TRUE;
   }
 
diff --git a/core/lib/Drupal/Core/Database/Query/Insert.php b/core/lib/Drupal/Core/Database/Query/Insert.php
index f51b6ed..28581a7 100644
--- a/core/lib/Drupal/Core/Database/Query/Insert.php
+++ b/core/lib/Drupal/Core/Database/Query/Insert.php
@@ -100,7 +100,6 @@ public function execute() {
     $this->insertValues = array();
 
     // Transaction commits here where $transaction looses scope.
-
     return $last_insert_id;
   }
 
diff --git a/core/lib/Drupal/Core/Database/Query/Select.php b/core/lib/Drupal/Core/Database/Query/Select.php
index 07f4b5f..9545f40 100644
--- a/core/lib/Drupal/Core/Database/Query/Select.php
+++ b/core/lib/Drupal/Core/Database/Query/Select.php
@@ -770,13 +770,13 @@ public function __toString() {
     // Create a sanitized comment string to prepend to the query.
     $comments = $this->connection->makeComment($this->comments);
 
-    // SELECT
+    // SELECT.
     $query = $comments . 'SELECT ';
     if ($this->distinct) {
       $query .= 'DISTINCT ';
     }
 
-    // FIELDS and EXPRESSIONS
+    // FIELDS and EXPRESSIONS.
     $fields = array();
     foreach ($this->tables as $alias => $table) {
       if (!empty($table['all_fields'])) {
@@ -826,24 +826,24 @@ public function __toString() {
       }
     }
 
-    // WHERE
+    // WHERE.
     if (count($this->condition)) {
       // There is an implicit string cast on $this->condition.
       $query .= "\nWHERE " . $this->condition;
     }
 
-    // GROUP BY
+    // GROUP BY.
     if ($this->group) {
       $query .= "\nGROUP BY " . implode(', ', $this->group);
     }
 
-    // HAVING
+    // HAVING.
     if (count($this->having)) {
       // There is an implicit string cast on $this->having.
       $query .= "\nHAVING " . $this->having;
     }
 
-    // ORDER BY
+    // ORDER BY.
     if ($this->order) {
       $query .= "\nORDER BY ";
       $fields = array();
@@ -884,7 +884,6 @@ public function __clone() {
     // On cloning, also clone the dependent objects. However, we do not
     // want to clone the database connection object as that would duplicate the
     // connection itself.
-
     $this->condition = clone($this->condition);
     $this->having = clone($this->having);
     foreach ($this->union as $key => $aggregate) {
diff --git a/core/lib/Drupal/Core/Database/Schema.php b/core/lib/Drupal/Core/Database/Schema.php
index fcd824d..266f73c 100644
--- a/core/lib/Drupal/Core/Database/Schema.php
+++ b/core/lib/Drupal/Core/Database/Schema.php
@@ -141,7 +141,7 @@ function prefixNonTable($table) {
   protected function buildTableNameCondition($table_name, $operator = '=', $add_prefix = TRUE) {
     $info = $this->connection->getConnectionOptions();
 
-    // Retrieve the table name and schema
+    // Retrieve the table name and schema.
     $table_info = $this->getPrefixInfo($table_name, $add_prefix);
 
     $condition = new Condition('AND');
diff --git a/core/lib/Drupal/Core/Database/StatementInterface.php b/core/lib/Drupal/Core/Database/StatementInterface.php
index e0147f4..9c5bdf1 100644
--- a/core/lib/Drupal/Core/Database/StatementInterface.php
+++ b/core/lib/Drupal/Core/Database/StatementInterface.php
@@ -37,8 +37,7 @@
    * "the access type must be omitted" if it is protected; i.e., conflicting
    * statements). The access type has to be protected.
    */
-  //protected function __construct(Connection $dbh);
-
+  // Protected function __construct(Connection $dbh);.
   /**
    * Executes a prepared statement
    *
diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php
index 04b56aa..7f4e974 100644
--- a/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php
+++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php
@@ -105,7 +105,6 @@ public function process(ContainerBuilder $container) {
           }
         }
         // Determine the ID.
-
         if (!isset($interface)) {
           throw new LogicException(vsprintf("Service consumer '%s' class method %s::%s() has to type-hint an interface.", array(
             $consumer_id,
diff --git a/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php b/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php
index 958392c..39be23e 100644
--- a/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php
+++ b/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php
@@ -54,7 +54,7 @@ public function createService(Definition $definition, $id, $tryProxy = true)
 
     if ($definition->isDeprecated()) {
       // Suppress deprecation warnings when a service is marked as
-      // 'deprecated: %service_id%-no-warning'
+      // 'deprecated: %service_id%-no-warning'.
       if ($definition->getDeprecationMessage($id) != ($id . '-no-warning')) {
         @trigger_error($definition->getDeprecationMessage($id), E_USER_DEPRECATED);
       }
@@ -123,7 +123,7 @@ public function createService(Definition $definition, $id, $tryProxy = true)
     }
 
     if ($tryProxy || !$definition->isLazy()) {
-      // share only if proxying failed, or if not a proxy
+      // Share only if proxying failed, or if not a proxy.
       $this->shareService($definition, $service, $id);
     }
 
diff --git a/core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php b/core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php
index 55f8fce..055bd91 100644
--- a/core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php
+++ b/core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php
@@ -65,18 +65,16 @@ public function load($file)
         }
 
         // Not supported.
-        //$this->container->addResource(new FileResource($path));
-
-        // empty file
+        // $this->container->addResource(new FileResource($path));
+        // Empty file.
         if (null === $content) {
             return;
         }
 
         // imports
         // Not supported.
-        //$this->parseImports($content, $file);
-
-        // parameters
+        // $this->parseImports($content, $file);
+        // Parameters.
         if (isset($content['parameters'])) {
             if (!is_array($content['parameters'])) {
                 throw new InvalidArgumentException(sprintf('The "parameters" key should contain an array in %s. Check your YAML syntax.', $file));
@@ -89,9 +87,8 @@ public function load($file)
 
         // extensions
         // Not supported.
-        //$this->loadFromExtensions($content);
-
-        // services
+        // $this->loadFromExtensions($content);
+        // Services
         $this->parseDefinitions($content, $file);
     }
 
@@ -372,7 +369,7 @@ private function resolveServices($value)
             $value = array_map(array($this, 'resolveServices'), $value);
         } elseif (is_string($value) &&  0 === strpos($value, '@=')) {
             // Not supported.
-            //return new Expression(substr($value, 2));
+            // return new Expression(substr($value, 2));.
             throw new InvalidArgumentException(sprintf("'%s' is an Expression, but expressions are not supported.", $value));
         } elseif (is_string($value) &&  0 === strpos($value, '@')) {
             if (0 === strpos($value, '@@')) {
diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php
index b41a91d..b016c41 100644
--- a/core/lib/Drupal/Core/DrupalKernel.php
+++ b/core/lib/Drupal/Core/DrupalKernel.php
@@ -421,7 +421,7 @@ public function boot() {
         'cache_backend_configuration' => [],
       ];
       // @todo Use extension_loaded('apcu') for non-testbot
-      //  https://www.drupal.org/node/2447753.
+      //   https://www.drupal.org/node/2447753.
       if (function_exists('apcu_fetch')) {
         $configuration['default']['cache_backend_class'] = '\Drupal\Component\FileCache\ApcuFileCacheBackend';
       }
@@ -882,7 +882,6 @@ public static function bootEnvironment() {
     // Override PHP settings required for Drupal to work properly.
     // sites/default/default.settings.php contains more runtime settings.
     // The .htaccess file contains settings that cannot be changed at runtime.
-
     // Use session cookies, not transparent sessions that puts the session id in
     // the query string.
     ini_set('session.use_cookies', '1');
@@ -1122,7 +1121,7 @@ protected function compileContainer() {
     // the following directories:
     // - Element
     // - Entity
-    // - Plugin
+    // - Plugin.
     foreach (array('Core', 'Component') as $parent_directory) {
       $path = 'core/lib/Drupal/' . $parent_directory;
       $parent_namespace = 'Drupal\\' . $parent_directory;
diff --git a/core/lib/Drupal/Core/Entity/ContentEntityBase.php b/core/lib/Drupal/Core/Entity/ContentEntityBase.php
index b5fccbd..a714834 100644
--- a/core/lib/Drupal/Core/Entity/ContentEntityBase.php
+++ b/core/lib/Drupal/Core/Entity/ContentEntityBase.php
@@ -472,7 +472,6 @@ protected function getTranslatedField($name, $langcode) {
       }
       // Non-translatable fields are always stored with
       // LanguageInterface::LANGCODE_DEFAULT as key.
-
       $default = $langcode == LanguageInterface::LANGCODE_DEFAULT;
       if (!$default && !$definition->isTranslatable()) {
         if (!isset($this->fields[$name][LanguageInterface::LANGCODE_DEFAULT])) {
@@ -1211,7 +1210,7 @@ public function hasTranslationChanges() {
     $translation = $original->getTranslation($this->activeLangcode);
     foreach ($this->getFieldDefinitions() as $field_name => $definition) {
       // @todo Avoid special-casing the following fields. See
-      //    https://www.drupal.org/node/2329253.
+      //   https://www.drupal.org/node/2329253.
       if ($field_name == 'revision_translation_affected' || $field_name == 'revision_id') {
         continue;
       }
diff --git a/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php b/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php
index cfcb5fc..23e4a2b 100644
--- a/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php
+++ b/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php
@@ -76,7 +76,6 @@ public function access(EntityInterface $entity, $operation, AccountInterface $ac
     // EntityAccessControlHandler::checkAccess(). Entities that have checks that
     // need to be done before the hook is invoked should do so by overriding
     // this method.
-
     // We grant access to the entity if both of these conditions are met:
     // - No modules say to deny access.
     // - At least one module says to grant access.
@@ -231,7 +230,6 @@ public function createAccess($entity_bundle = NULL, AccountInterface $account =
     // EntityAccessControlHandler::checkCreateAccess(). Entities that have
     // checks that need to be done before the hook is invoked should do so by
     // overriding this method.
-
     // We grant access to the entity if both of these conditions are met:
     // - No modules say to deny access.
     // - At least one module says to grant access.
diff --git a/core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php b/core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
index 3ead817..4255d51 100644
--- a/core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
+++ b/core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
@@ -312,7 +312,6 @@ protected function getChangeList() {
 
     // @todo Support deleting entity definitions when we support base field
     //   purging. See https://www.drupal.org/node/2282119.
-
     $this->entityManager->useCaches(TRUE);
 
     return array_filter($change_list);
diff --git a/core/lib/Drupal/Core/Entity/EntityFieldManager.php b/core/lib/Drupal/Core/Entity/EntityFieldManager.php
index 5337288..54def3c 100644
--- a/core/lib/Drupal/Core/Entity/EntityFieldManager.php
+++ b/core/lib/Drupal/Core/Entity/EntityFieldManager.php
@@ -224,7 +224,7 @@ protected function buildBaseFieldDefinitions($entity_type_id) {
     $provider = $entity_type->getProvider();
     foreach ($base_field_definitions as $definition) {
       // @todo Remove this check once FieldDefinitionInterface exposes a proper
-      //  provider setter. See https://www.drupal.org/node/2225961.
+      //   provider setter. See https://www.drupal.org/node/2225961.
       if ($definition instanceof BaseFieldDefinition) {
         $definition->setProvider($provider);
       }
@@ -238,7 +238,7 @@ protected function buildBaseFieldDefinitions($entity_type_id) {
         // defining the field.
         foreach ($module_definitions as $field_name => $definition) {
           // @todo Remove this check once FieldDefinitionInterface exposes a
-          //  proper provider setter. See https://www.drupal.org/node/2225961.
+          //   proper provider setter. See https://www.drupal.org/node/2225961.
           if ($definition instanceof BaseFieldDefinition && $definition->getProvider() == NULL) {
             $definition->setProvider($module);
           }
@@ -345,7 +345,7 @@ protected function buildBundleFieldDefinitions($entity_type_id, $bundle, array $
     $provider = $entity_type->getProvider();
     foreach ($bundle_field_definitions as $definition) {
       // @todo Remove this check once FieldDefinitionInterface exposes a proper
-      //  provider setter. See https://www.drupal.org/node/2225961.
+      //   provider setter. See https://www.drupal.org/node/2225961.
       if ($definition instanceof BaseFieldDefinition) {
         $definition->setProvider($provider);
       }
@@ -359,7 +359,7 @@ protected function buildBundleFieldDefinitions($entity_type_id, $bundle, array $
         // defining the field.
         foreach ($module_definitions as $field_name => $definition) {
           // @todo Remove this check once FieldDefinitionInterface exposes a
-          //  proper provider setter. See https://www.drupal.org/node/2225961.
+          //   proper provider setter. See https://www.drupal.org/node/2225961.
           if ($definition instanceof BaseFieldDefinition) {
             $definition->setProvider($module);
           }
@@ -513,7 +513,7 @@ protected function buildFieldStorageDefinitions($entity_type_id) {
         // defining the field.
         foreach ($module_definitions as $field_name => $definition) {
           // @todo Remove this check once FieldDefinitionInterface exposes a
-          //  proper provider setter. See https://www.drupal.org/node/2225961.
+          //   proper provider setter. See https://www.drupal.org/node/2225961.
           if ($definition instanceof BaseFieldDefinition) {
             $definition->setProvider($module);
           }
diff --git a/core/lib/Drupal/Core/Entity/entity.api.php b/core/lib/Drupal/Core/Entity/entity.api.php
index ca1835e..dc7c317 100644
--- a/core/lib/Drupal/Core/Entity/entity.api.php
+++ b/core/lib/Drupal/Core/Entity/entity.api.php
@@ -1904,7 +1904,7 @@ function hook_entity_field_access_alter(array &$grants, array $context) {
     // take out node module's part in the access handling of this field. We also
     // don't want to switch node module's grant to
     // AccessResultInterface::isAllowed() , because the grants of other modules
-    // should still decide on their own if this field is accessible or not
+    // should still decide on their own if this field is accessible or not.
     $grants['node'] = AccessResult::neutral()->inheritCacheability($grants['node']);
   }
 }
diff --git a/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php b/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php
index 2f965e1..f8b88d5 100644
--- a/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php
+++ b/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php
@@ -170,7 +170,7 @@ public static function setLinkActiveClass($html_markup, $current_path, $is_front
       }
 
       // Get the HTML: this will be the opening part of a single tag, e.g.:
-      //   <a href="/" data-drupal-link-system-path="&lt;front&gt;">
+      //   <a href="/" data-drupal-link-system-path="&lt;front&gt;">.
       $tag = substr($html_markup, $pos_tag_start, $pos_tag_end - $pos_tag_start + 1);
 
       // Parse it into a DOMDocument so we can reliably read and modify
diff --git a/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php
index 0d876cc..1848525 100644
--- a/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php
@@ -138,13 +138,13 @@ protected function makeSubrequest(GetResponseForExceptionEvent $event, $url, $st
       // Add to query (GET) or request (POST) parameters:
       // - 'destination' (to ensure e.g. the login form in a 403 response
       //   redirects to the original URL)
-      // - '_exception_statuscode'
+      // - '_exception_statuscode'.
       $parameters = $sub_request->isMethod('GET') ? $sub_request->query : $sub_request->request;
       $parameters->add($this->redirectDestination->getAsArray() + ['_exception_statuscode' => $status_code]);
 
       $response = $this->httpKernel->handle($sub_request, HttpKernelInterface::SUB_REQUEST);
       // Only 2xx responses should have their status code overridden; any
-      // other status code should be passed on: redirects (3xx), error (5xx)…
+      // other status code should be passed on: redirects (3xx), error (5xx)….
       // @see https://www.drupal.org/node/2603788#comment-10504916
       if ($response->isSuccessful()) {
         $response->setStatusCode($status_code);
diff --git a/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php
index 4049f86..5ec9b07 100644
--- a/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php
@@ -91,7 +91,6 @@ protected function onHtml(GetResponseForExceptionEvent $event) {
 
       if ($this->getErrorLevel() != ERROR_REPORTING_DISPLAY_VERBOSE) {
         // Without verbose logging, use a simple message.
-
         // We call SafeMarkup::format directly here, rather than use t() since
         // we are in the middle of error handling, and we don't want t() to
         // cause further errors.
@@ -99,7 +98,6 @@ protected function onHtml(GetResponseForExceptionEvent $event) {
       }
       else {
         // With verbose logging, we will also include a backtrace.
-
         $backtrace_exception = $exception;
         while ($backtrace_exception->getPrevious()) {
           $backtrace_exception = $backtrace_exception->getPrevious();
@@ -145,7 +143,7 @@ protected function onJson(GetResponseForExceptionEvent $event) {
     $error = Error::decodeException($exception);
 
     // Display the message if the current error reporting level allows this type
-    // of message to be displayed,
+    // of message to be displayed,.
     $data = NULL;
     if (error_displayable($error) && $message = $exception->getMessage()) {
       $data = ['message' => sprintf('A fatal error occurred: %s', $message)];
diff --git a/core/lib/Drupal/Core/EventSubscriber/EntityRouteProviderSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/EntityRouteProviderSubscriber.php
index 36a539d..227f31c 100644
--- a/core/lib/Drupal/Core/EventSubscriber/EntityRouteProviderSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/EntityRouteProviderSubscriber.php
@@ -43,7 +43,6 @@ public function onDynamicRouteEvent(RouteBuildEvent $event) {
         foreach ($this->entityManager->getRouteProviders($entity_type->id()) as $route_provider) {
           // Allow to both return an array of routes or a route collection,
           // like route_callbacks in the routing.yml file.
-
           $routes = $route_provider->getRoutes($entity_type);
           if ($routes instanceof RouteCollection) {
             $routes = $routes->all();
diff --git a/core/lib/Drupal/Core/Extension/ExtensionDiscovery.php b/core/lib/Drupal/Core/Extension/ExtensionDiscovery.php
index cdee878..e541a3f 100644
--- a/core/lib/Drupal/Core/Extension/ExtensionDiscovery.php
+++ b/core/lib/Drupal/Core/Extension/ExtensionDiscovery.php
@@ -360,7 +360,7 @@ protected function sort(array $all_files, array $weights) {
     // 1 1 core/profiles/testing/modules/compatible_test/compatible_test.module
     // 2   sites/all/modules/common/common.module
     // 3   modules/devel/devel.module
-    // 4   sites/default/modules/custom/custom.module
+    // 4   sites/default/modules/custom/custom.module.
     array_multisort($origins, SORT_ASC, $profiles, SORT_ASC, $all_files);
 
     return $all_files;
diff --git a/core/lib/Drupal/Core/Extension/ModuleHandler.php b/core/lib/Drupal/Core/Extension/ModuleHandler.php
index 8ea10ad..034bfb0 100644
--- a/core/lib/Drupal/Core/Extension/ModuleHandler.php
+++ b/core/lib/Drupal/Core/Extension/ModuleHandler.php
@@ -260,7 +260,7 @@ public function loadAllIncludes($type, $name = NULL) {
    */
   public function loadInclude($module, $type, $name = NULL) {
     if ($type == 'install') {
-      // Make sure the installation API is available
+      // Make sure the installation API is available.
       include_once $this->root . '/core/includes/install.inc';
     }
 
diff --git a/core/lib/Drupal/Core/Extension/module.api.php b/core/lib/Drupal/Core/Extension/module.api.php
index 9abea30..9b6065d 100644
--- a/core/lib/Drupal/Core/Extension/module.api.php
+++ b/core/lib/Drupal/Core/Extension/module.api.php
@@ -618,8 +618,7 @@ function hook_install_tasks_alter(&$tasks, $install_state) {
  */
 function hook_update_N(&$sandbox) {
   // For non-batch updates, the signature can simply be:
-  // function hook_update_N() {
-
+  // function hook_update_N() {.
   // Example function body for adding a field to a database table, which does
   // not require a batch operation:
   $spec = array(
@@ -725,7 +724,6 @@ function hook_post_update_NAME(&$sandbox) {
   foreach ($blocks as $block) {
     // This block has had conditions removed due to an inability to resolve
     // contexts in block_update_8001() so disable it.
-
     // Disable currently enabled blocks.
     if ($block_update_8001[$block->id()]['status']) {
       $block->setStatus(FALSE);
@@ -927,7 +925,7 @@ function hook_updater_info_alter(&$updaters) {
 function hook_requirements($phase) {
   $requirements = array();
 
-  // Report Drupal version
+  // Report Drupal version.
   if ($phase == 'runtime') {
     $requirements['drupal'] = array(
       'title' => t('Drupal'),
@@ -936,7 +934,7 @@ function hook_requirements($phase) {
     );
   }
 
-  // Test PHP version
+  // Test PHP version.
   $requirements['php'] = array(
     'title' => t('PHP'),
     'value' => ($phase == 'runtime') ? \Drupal::l(phpversion(), new Url('system.php')) : phpversion(),
@@ -946,7 +944,7 @@ function hook_requirements($phase) {
     $requirements['php']['severity'] = REQUIREMENT_ERROR;
   }
 
-  // Report cron status
+  // Report cron status.
   if ($phase == 'runtime') {
     $cron_last = \Drupal::state()->get('system.cron_last');
 
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/StringFormatter.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/StringFormatter.php
index a1f618b..187ab73 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/StringFormatter.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/StringFormatter.php
@@ -116,7 +116,7 @@ public function viewElements(FieldItemListInterface $items, $langcode) {
     $elements = array();
     $url = NULL;
     if ($this->getSetting('link_to_entity')) {
-      // For the default revision this falls back to 'canonical'
+      // For the default revision this falls back to 'canonical'.
       $url = $items->getEntity()->urlInfo('revision');
     }
 
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 a8849fd..b54df17 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
@@ -140,11 +140,11 @@ public static function generateSampleValue(FieldDefinitionInterface $field_defin
     $max = is_numeric($settings['max']) ?: pow(10, ($precision - $scale)) - 1;
     $min = is_numeric($settings['min']) ?: -pow(10, ($precision - $scale)) + 1;
 
-    // Get the number of decimal digits for the $max
+    // Get the number of decimal digits for the $max.
     $decimal_digits = self::getDecimalDigits($max);
     // Do the same for the min and keep the higher number of decimal digits.
     $decimal_digits = max(self::getDecimalDigits($min), $decimal_digits);
-    // If $min = 1.234 and $max = 1.33 then $decimal_digits = 3
+    // If $min = 1.234 and $max = 1.33 then $decimal_digits = 3.
     $scale = rand($decimal_digits, $scale);
 
     // @see "Example #1 Calculate a random floating-point number" in
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/OptionsWidgetBase.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/OptionsWidgetBase.php
index add9cd7..db7ef13 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/OptionsWidgetBase.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/OptionsWidgetBase.php
@@ -54,7 +54,6 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
     $element['#key_column'] = $this->column;
 
     // The rest of the $element is built by child method implementations.
-
     return $element;
   }
 
@@ -75,7 +74,6 @@ public static function validateElement(array $element, FormStateInterface $form_
     // Drupal\Core\Field\WidgetBase::submit() expects values as
     // an array of values keyed by delta first, then by column, while our
     // widgets return the opposite.
-
     if (is_array($element['#value'])) {
       $values = array_values($element['#value']);
     }
diff --git a/core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php b/core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php
index 5e05ec0..7176de9 100644
--- a/core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php
+++ b/core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php
@@ -904,7 +904,7 @@ public function guess($path) {
     // For my.awesome.image.jpeg, we try:
     //   - jpeg
     //   - image.jpeg, and
-    //   - awesome.image.jpeg
+    //   - awesome.image.jpeg.
     while ($additional_part = array_pop($file_parts)) {
       $extension = strtolower($additional_part . ($extension ? '.' . $extension : ''));
       if (isset($this->mapping['extensions'][$extension])) {
diff --git a/core/lib/Drupal/Core/FileTransfer/FTPExtension.php b/core/lib/Drupal/Core/FileTransfer/FTPExtension.php
index 8ac5891..10bcfb0 100644
--- a/core/lib/Drupal/Core/FileTransfer/FTPExtension.php
+++ b/core/lib/Drupal/Core/FileTransfer/FTPExtension.php
@@ -108,7 +108,7 @@ function chmodJailed($path, $mode, $recursive) {
     if ($this->isDirectory($path) && $recursive) {
       $filelist = @ftp_nlist($this->connection, $path);
       if (!$filelist) {
-        //empty directory - returns false
+        // Empty directory - returns false.
         return;
       }
       foreach ($filelist as $file) {
diff --git a/core/lib/Drupal/Core/FileTransfer/Local.php b/core/lib/Drupal/Core/FileTransfer/Local.php
index e30be49..7db9bf6 100644
--- a/core/lib/Drupal/Core/FileTransfer/Local.php
+++ b/core/lib/Drupal/Core/FileTransfer/Local.php
@@ -11,7 +11,7 @@ class Local extends FileTransfer implements ChmodInterface {
    * {@inheritdoc}
    */
   public function connect() {
-    // No-op
+    // No-op.
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Form/FormBuilder.php b/core/lib/Drupal/Core/Form/FormBuilder.php
index 0da7c03..f33a6ac 100644
--- a/core/lib/Drupal/Core/Form/FormBuilder.php
+++ b/core/lib/Drupal/Core/Form/FormBuilder.php
@@ -334,7 +334,7 @@ public function buildForm($form_id, FormStateInterface &$form_state) {
     // If the form returns a response, skip subsequent page construction by
     // throwing an exception.
     // @see Drupal\Core\EventSubscriber\EnforcedFormResponseSubscriber
-    //
+    // .
     // @todo Exceptions should not be used for code flow control. However, the
     //   Form API does not integrate with the HTTP Kernel based architecture of
     //   Drupal 8. In order to resolve this issue properly it is necessary to
@@ -513,7 +513,7 @@ public function retrieveForm($form_id, FormStateInterface &$form_state) {
     // If the form returns a response, skip subsequent page construction by
     // throwing an exception.
     // @see Drupal\Core\EventSubscriber\EnforcedFormResponseSubscriber
-    //
+    // .
     // @todo Exceptions should not be used for code flow control. However, the
     //   Form API currently allows any form builder functions to return a
     //   response.
@@ -1132,7 +1132,7 @@ protected function valueCallableIsSafe(callable $value_callable) {
     // ['\Classname', 'methodname']
     // ['Classname', 'methodname']
     // '\Classname::methodname'
-    // 'Classname::methodname'
+    // 'Classname::methodname'.
     if (is_callable($value_callable, FALSE, $callable_name)) {
       // The third parameter of is_callable() is set to a string form, but we
       // still have to normalize further by stripping a leading '\'.
diff --git a/core/lib/Drupal/Core/Form/form.api.php b/core/lib/Drupal/Core/Form/form.api.php
index 41d1441..4ab8ecf 100644
--- a/core/lib/Drupal/Core/Form/form.api.php
+++ b/core/lib/Drupal/Core/Form/form.api.php
@@ -245,7 +245,6 @@ function hook_form_FORM_ID_alter(&$form, \Drupal\Core\Form\FormStateInterface $f
   // Modification for the form with the given form ID goes here. For example, if
   // FORM_ID is "user_register_form" this code would run only on the user
   // registration form.
-
   // Add a checkbox to registration form about agreeing to terms of use.
   $form['terms_of_use'] = array(
     '#type' => 'checkbox',
@@ -295,7 +294,6 @@ function hook_form_BASE_FORM_ID_alter(&$form, \Drupal\Core\Form\FormStateInterfa
   // Modification for the form with the given BASE_FORM_ID goes here. For
   // example, if BASE_FORM_ID is "node_form", this code would run on every
   // node form, regardless of node type.
-
   // Add a checkbox to the node form about agreeing to terms of use.
   $form['terms_of_use'] = array(
     '#type' => 'checkbox',
diff --git a/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php b/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php
index 9080466..04a9c92 100644
--- a/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php
+++ b/core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php
@@ -120,7 +120,7 @@ protected function getEditableConfigNames() {
   public function buildForm(array $form, FormStateInterface $form_state) {
     $form['#title'] = $this->t('Configure site');
 
-    // Warn about settings.php permissions risk
+    // Warn about settings.php permissions risk.
     $settings_dir = $this->sitePath;
     $settings_file = $settings_dir . '/settings.php';
     // Check that $_POST is empty so we only show this message when the form is
@@ -202,7 +202,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
     $form['regional_settings']['date_default_timezone'] = array(
       '#type' => 'select',
       '#title' => $this->t('Default time zone'),
-      // Use system timezone if set, but avoid throwing a warning in PHP >=5.4
+      // Use system timezone if set, but avoid throwing a warning in PHP >=5.4.
       '#default_value' => @date_default_timezone_get(),
       '#options' => system_time_zones(),
       '#description' => $this->t('By default, dates in this site will be displayed in the chosen time zone.'),
diff --git a/core/lib/Drupal/Core/Language/Language.php b/core/lib/Drupal/Core/Language/Language.php
index abaad81..05024f2 100644
--- a/core/lib/Drupal/Core/Language/Language.php
+++ b/core/lib/Drupal/Core/Language/Language.php
@@ -25,7 +25,6 @@ class Language implements LanguageInterface {
   );
 
   // Properties within the Language are set up as the default language.
-
   /**
    * The human readable English name.
    *
diff --git a/core/lib/Drupal/Core/Lock/LockBackendAbstract.php b/core/lib/Drupal/Core/Lock/LockBackendAbstract.php
index 1ce9ff1..1dcdf05 100644
--- a/core/lib/Drupal/Core/Lock/LockBackendAbstract.php
+++ b/core/lib/Drupal/Core/Lock/LockBackendAbstract.php
@@ -36,7 +36,6 @@ public function wait($name, $delay = 30) {
     // concerns, begin waiting for 25ms, then add 25ms to the wait period each
     // time until it reaches 500ms. After this point polling will continue every
     // 500ms until $delay is reached.
-
     // $delay is passed in seconds, but we will be using usleep(), which takes
     // microseconds as a parameter. Multiply it by 1 million so that all
     // further numbers are equivalent.
diff --git a/core/lib/Drupal/Core/Menu/LocalTaskDefault.php b/core/lib/Drupal/Core/Menu/LocalTaskDefault.php
index 38534b1..d00ae7f 100644
--- a/core/lib/Drupal/Core/Menu/LocalTaskDefault.php
+++ b/core/lib/Drupal/Core/Menu/LocalTaskDefault.php
@@ -51,7 +51,6 @@ public function getRouteParameters(RouteMatchInterface $route_match) {
     // slugs in the path patterns. For example, if the route's path pattern is
     // /filter/tips/{filter_format} and the path is /filter/tips/plain_text then
     // $raw_variables->get('filter_format') == 'plain_text'.
-
     $raw_variables = $route_match->getRawParameters();
 
     foreach ($variables as $name) {
diff --git a/core/lib/Drupal/Core/Path/AliasWhitelist.php b/core/lib/Drupal/Core/Path/AliasWhitelist.php
index 9286c95..048f310 100644
--- a/core/lib/Drupal/Core/Path/AliasWhitelist.php
+++ b/core/lib/Drupal/Core/Path/AliasWhitelist.php
@@ -82,7 +82,7 @@ protected function loadMenuPathRoots() {
    */
   public function get($offset) {
     $this->lazyLoadCache();
-    // this may be called with paths that are not represented by menu router
+    // This may be called with paths that are not represented by menu router
     // items such as paths that will be rewritten by hook_url_outbound_alter().
     // Therefore internally TRUE is used to indicate whitelisted paths. FALSE is
     // used to indicate paths that have already been checked but are not
diff --git a/core/lib/Drupal/Core/Plugin/Context/ContextHandler.php b/core/lib/Drupal/Core/Plugin/Context/ContextHandler.php
index 50d8db6..8787ca5 100644
--- a/core/lib/Drupal/Core/Plugin/Context/ContextHandler.php
+++ b/core/lib/Drupal/Core/Plugin/Context/ContextHandler.php
@@ -70,7 +70,6 @@ public function applyContextMapping(ContextAwarePluginInterface $plugin, $contex
     /** @var $contexts \Drupal\Core\Plugin\Context\ContextInterface[] */
     $mappings += $plugin->getContextMapping();
     // Loop through each of the expected contexts.
-
     $missing_value = [];
 
     foreach ($plugin->getContextDefinitions() as $plugin_context_id => $plugin_context_definition) {
diff --git a/core/lib/Drupal/Core/Render/Element/Html.php b/core/lib/Drupal/Core/Render/Element/Html.php
index 0a83d56..7d503e6 100644
--- a/core/lib/Drupal/Core/Render/Element/Html.php
+++ b/core/lib/Drupal/Core/Render/Element/Html.php
@@ -15,7 +15,7 @@ class Html extends RenderElement {
   public function getInfo() {
     return array(
       '#theme' => 'html',
-      // HTML5 Shiv
+      // HTML5 Shiv.
       '#attached' => array(
         'library' => array('core/html5shiv'),
       ),
diff --git a/core/lib/Drupal/Core/Render/Element/HtmlTag.php b/core/lib/Drupal/Core/Render/Element/HtmlTag.php
index 1d71350..bddaa05 100644
--- a/core/lib/Drupal/Core/Render/Element/HtmlTag.php
+++ b/core/lib/Drupal/Core/Render/Element/HtmlTag.php
@@ -162,7 +162,6 @@ public static function preRenderConditionalComments($element) {
     // browsers, use either the "downlevel-hidden" or "downlevel-revealed"
     // technique. See http://wikipedia.org/wiki/Conditional_comment
     // for details.
-
     // Ensure what we are dealing with is safe.
     // This would be done later anyway in drupal_render().
     $prefix = isset($element['#prefix']) ? $element['#prefix'] : '';
diff --git a/core/lib/Drupal/Core/Render/Element/ImageButton.php b/core/lib/Drupal/Core/Render/Element/ImageButton.php
index a7d8be3..2ad0452 100644
--- a/core/lib/Drupal/Core/Render/Element/ImageButton.php
+++ b/core/lib/Drupal/Core/Render/Element/ImageButton.php
@@ -45,7 +45,7 @@ public static function valueCallback(&$element, $input, FormStateInterface $form
         // in the same spot for its name, with '_x'.
         $input = $form_state->getUserInput();
         foreach (explode('[', $element['#name']) as $element_name) {
-          // chop off the ] that may exist.
+          // Chop off the ] that may exist.
           if (substr($element_name, -1) == ']') {
             $element_name = substr($element_name, 0, -1);
           }
diff --git a/core/lib/Drupal/Core/Render/RenderCache.php b/core/lib/Drupal/Core/Render/RenderCache.php
index 12d52e9..47b8cc9 100644
--- a/core/lib/Drupal/Core/Render/RenderCache.php
+++ b/core/lib/Drupal/Core/Render/RenderCache.php
@@ -62,7 +62,7 @@ public function get(array $elements) {
     // Form submissions rely on the form being built during the POST request,
     // and render caching of forms prevents this from happening.
     // @todo remove the isMethodSafe() check when
-    //       https://www.drupal.org/node/2367555 lands.
+    //   https://www.drupal.org/node/2367555 lands.
     if (!$this->requestStack->getCurrentRequest()->isMethodSafe() || !$cid = $this->createCacheID($elements)) {
       return FALSE;
     }
@@ -89,7 +89,7 @@ public function set(array &$elements, array $pre_bubbling_elements) {
     // Form submissions rely on the form being built during the POST request,
     // and render caching of forms prevents this from happening.
     // @todo remove the isMethodSafe() check when
-    //       https://www.drupal.org/node/2367555 lands.
+    //   https://www.drupal.org/node/2367555 lands.
     if (!$this->requestStack->getCurrentRequest()->isMethodSafe() || !$cid = $this->createCacheID($elements)) {
       return FALSE;
     }
@@ -206,7 +206,6 @@ public function set(array &$elements, array $pre_bubbling_elements) {
       // towards that state by progressively merging the 'contexts' value
       // across requests. That's the strategy employed below and tested in
       // \Drupal\Tests\Core\Render\RendererBubblingTest::testConditionalCacheContextBubblingSelfHealing().
-
       // Get the cacheability of this element according to the current (stored)
       // redirecting cache item, if any.
       $redirect_cacheability = new CacheableMetadata();
diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php
index 3c13dfd..88b92eb 100644
--- a/core/lib/Drupal/Core/Render/Renderer.php
+++ b/core/lib/Drupal/Core/Render/Renderer.php
@@ -156,7 +156,7 @@ public function renderPlain(&$elements) {
    * {@inheritdoc}
    */
   public function renderPlaceholder($placeholder, array $elements) {
-    // Get the render array for the given placeholder
+    // Get the render array for the given placeholder.
     $placeholder_elements = $elements['#attached']['placeholders'][$placeholder];
 
     // Prevent the render array from being auto-placeholdered again.
diff --git a/core/lib/Drupal/Core/Render/theme.api.php b/core/lib/Drupal/Core/Render/theme.api.php
index 19a7038..81055ef 100644
--- a/core/lib/Drupal/Core/Render/theme.api.php
+++ b/core/lib/Drupal/Core/Render/theme.api.php
@@ -558,7 +558,6 @@ function hook_preprocess(&$variables, $hook) {
  static $hooks;
 
   // Add contextual links to the variables, if the user has permission.
-
   if (!\Drupal::currentUser()->hasPermission('access contextual links')) {
     return;
   }
diff --git a/core/lib/Drupal/Core/Routing/UrlGenerator.php b/core/lib/Drupal/Core/Routing/UrlGenerator.php
index af0ad30..88a3bae 100644
--- a/core/lib/Drupal/Core/Routing/UrlGenerator.php
+++ b/core/lib/Drupal/Core/Routing/UrlGenerator.php
@@ -55,7 +55,7 @@ class UrlGenerator implements UrlGeneratorInterface {
    * @see \Symfony\Component\Routing\Generator\UrlGenerator
    */
   protected $decodedChars = [
-    // the slash can be used to designate a hierarchical structure and we want allow using it with this meaning
+    // The slash can be used to designate a hierarchical structure and we want allow using it with this meaning
     // some webservers don't allow the slash in encoded form in the path for security reasons anyway
     // see http://stackoverflow.com/questions/4069002/http-400-if-2f-part-of-get-url-in-jboss
     '%2F', // Map from these encoded characters.
@@ -167,7 +167,7 @@ protected function doGenerate(array $variables, array $defaults, array $tokens,
     $variables = array_flip($variables);
     $mergedParams = array_replace($defaults, $this->context->getParameters(), $parameters);
 
-    // all params must be given
+    // All params must be given.
     if ($diff = array_diff_key($variables, $mergedParams)) {
       throw new MissingMandatoryParametersException(sprintf('Some mandatory parameters are missing ("%s") to generate a URL for route "%s".', implode('", "', array_keys($diff)), $name));
     }
@@ -184,11 +184,11 @@ protected function doGenerate(array $variables, array $defaults, array $tokens,
     //
     // For a simple fixed path, there is just one token.
     // If the path is /admin/config
-    // [ [ 0 => 'text', 1 => '/admin/config' ] ]
+    // [ [ 0 => 'text', 1 => '/admin/config' ] ].
     foreach ($tokens as $token) {
       if ('variable' === $token[0]) {
         if (!$optional || !array_key_exists($token[3], $defaults) || (isset($mergedParams[$token[3]]) && (string) $mergedParams[$token[3]] !== (string) $defaults[$token[3]])) {
-          // check requirement
+          // Check requirement.
           if (!preg_match('#^'.$token[2].'$#', $mergedParams[$token[3]])) {
             $message = sprintf('Parameter "%s" for route "%s" must match "%s" ("%s" given) to generate a corresponding URL.', $token[3], $name, $token[2], $mergedParams[$token[3]]);
             throw new InvalidParameterException($message);
@@ -199,7 +199,7 @@ protected function doGenerate(array $variables, array $defaults, array $tokens,
         }
       }
       else {
-        // Static text
+        // Static text.
         $url = $token[1] . $url;
         $optional = FALSE;
       }
@@ -214,11 +214,11 @@ protected function doGenerate(array $variables, array $defaults, array $tokens,
 
     // Drupal paths rarely include dots, so skip this processing if possible.
     if (strpos($url, '/.') !== FALSE) {
-      // the path segments "." and ".." are interpreted as relative reference when
+      // The path segments "." and ".." are interpreted as relative reference when
       // resolving a URI; see http://tools.ietf.org/html/rfc3986#section-3.3
       // so we need to encode them as they are not used for this purpose here
       // otherwise we would generate a URI that, when followed by a user agent
-      // (e.g. browser), does not match this route
+      // (e.g. browser), does not match this route.
       $url = strtr($url, array('/../' => '/%2E%2E/', '/./' => '/%2E/'));
       if ('/..' === substr($url, -3)) {
         $url = substr($url, 0, -2) . '%2E%2E';
diff --git a/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php b/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
index 025830c..d02acba 100644
--- a/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
+++ b/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
@@ -75,7 +75,7 @@ public function stream_open($uri, $mode, $options, &$opened_path) {
    * @see http://php.net/manual/streamwrapper.stream-lock.php
    */
   public function stream_lock($operation) {
-    // Disallow exclusive lock or non-blocking lock requests
+    // Disallow exclusive lock or non-blocking lock requests.
     if (in_array($operation, array(LOCK_EX, LOCK_EX|LOCK_NB))) {
       trigger_error('stream_lock() exclusive lock operations not supported for read-only stream wrappers', E_USER_WARNING);
       return FALSE;
diff --git a/core/lib/Drupal/Core/StreamWrapper/LocalStream.php b/core/lib/Drupal/Core/StreamWrapper/LocalStream.php
index 7199551..98daeb1 100644
--- a/core/lib/Drupal/Core/StreamWrapper/LocalStream.php
+++ b/core/lib/Drupal/Core/StreamWrapper/LocalStream.php
@@ -242,7 +242,7 @@ public function stream_eof() {
    * {@inheritdoc}
    */
   public function stream_seek($offset, $whence = SEEK_SET) {
-    // fseek returns 0 on success and -1 on a failure.
+    // Fseek returns 0 on success and -1 on a failure.
     // stream_seek   1 on success and  0 on a failure.
     return !fseek($this->handle, $offset, $whence);
   }
diff --git a/core/lib/Drupal/Core/Template/TwigExtension.php b/core/lib/Drupal/Core/Template/TwigExtension.php
index 49ec546..f7f0f48 100644
--- a/core/lib/Drupal/Core/Template/TwigExtension.php
+++ b/core/lib/Drupal/Core/Template/TwigExtension.php
@@ -121,7 +121,7 @@ public function getFunctions() {
       // This function will receive a renderable array, if an array is detected.
       new \Twig_SimpleFunction('render_var', array($this, 'renderVar')),
       // The url and path function are defined in close parallel to those found
-      // in \Symfony\Bridge\Twig\Extension\RoutingExtension
+      // in \Symfony\Bridge\Twig\Extension\RoutingExtension.
       new \Twig_SimpleFunction('url', array($this, 'getUrl'), array('is_safe_callback' => array($this, 'isUrlGenerationSafe'))),
       new \Twig_SimpleFunction('path', array($this, 'getPath'), array('is_safe_callback' => array($this, 'isUrlGenerationSafe'))),
       new \Twig_SimpleFunction('link', array($this, 'getLink')),
@@ -453,7 +453,6 @@ public function escapeFilter(\Twig_Environment $env, $arg, $strategy = 'html', $
 
     // This is a normal render array, which is safe by definition, with
     // special simple cases already handled.
-
     // Early return if this element was pre-rendered (no need to re-render).
     if (isset($arg['#printed']) && $arg['#printed'] == TRUE && isset($arg['#markup']) && strlen($arg['#markup']) > 0) {
       return $arg['#markup'];
diff --git a/core/lib/Drupal/Core/Theme/Registry.php b/core/lib/Drupal/Core/Theme/Registry.php
index 8122e89..9b4288d 100644
--- a/core/lib/Drupal/Core/Theme/Registry.php
+++ b/core/lib/Drupal/Core/Theme/Registry.php
@@ -432,7 +432,6 @@ protected function processExtension(array &$cache, $name, $type, $theme, $path)
         // $result[$hook] will only contain key/value pairs for information being
         // overridden.  Pull the rest of the information from what was defined by
         // an earlier hook.
-
         // Fill in the type and path of the module, theme, or engine that
         // implements this theme function.
         $result[$hook]['type'] = $type;
diff --git a/core/lib/Drupal/Core/Theme/ThemeInitialization.php b/core/lib/Drupal/Core/Theme/ThemeInitialization.php
index bf58584..b4b998d 100644
--- a/core/lib/Drupal/Core/Theme/ThemeInitialization.php
+++ b/core/lib/Drupal/Core/Theme/ThemeInitialization.php
@@ -140,14 +140,14 @@ public function loadActiveTheme(ActiveTheme $active_theme) {
       }
     }
     else {
-      // include non-engine theme files
+      // Include non-engine theme files.
       foreach ($active_theme->getBaseThemes() as $base) {
         // Include the theme file or the engine.
         if ($base->getOwner()) {
           include_once $this->root . '/' . $base->getOwner();
         }
       }
-      // and our theme gets one too.
+      // And our theme gets one too.
       if ($active_theme->getOwner()) {
         include_once $this->root . '/' . $active_theme->getOwner();
       }
@@ -219,10 +219,10 @@ public function getActiveTheme(Extension $theme, array $base_themes = []) {
       }
     }
 
-    // Do basically the same as the above for libraries
+    // Do basically the same as the above for libraries.
     $values['libraries'] = array();
 
-    // Grab libraries from base theme
+    // Grab libraries from base theme.
     foreach ($base_themes as $base) {
       if (!empty($base->libraries)) {
         foreach ($base->libraries as $library) {
diff --git a/core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php b/core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php
index b765b05..628fdc1 100644
--- a/core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php
+++ b/core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php
@@ -167,7 +167,7 @@ protected function validateNode(TypedDataInterface $data, $constraints = NULL, $
   protected function validateConstraints($value, $cache_key, $constraints) {
     foreach ($constraints as $constraint) {
       // Prevent duplicate validation of constraints, in the case
-      // that constraints belong to multiple validated groups
+      // that constraints belong to multiple validated groups.
       if (isset($cache_key)) {
         $constraint_hash = spl_object_hash($constraint);
 
diff --git a/core/lib/Drupal/Core/Update/UpdateRegistry.php b/core/lib/Drupal/Core/Update/UpdateRegistry.php
index 239d7ac..5100a74 100644
--- a/core/lib/Drupal/Core/Update/UpdateRegistry.php
+++ b/core/lib/Drupal/Core/Update/UpdateRegistry.php
@@ -122,7 +122,6 @@ public function getPendingUpdateFunctions() {
     // We need a) the list of active modules (we get that from the config
     // bootstrap factory) and b) the path to the modules, we use the extension
     // discovery for that.
-
     $this->scanExtensionsAndLoadUpdateFiles();
 
     // First figure out which hook_{$this->updateType}_NAME got executed
diff --git a/core/lib/Drupal/Core/Utility/Token.php b/core/lib/Drupal/Core/Utility/Token.php
index 8f45bd6..4370303 100644
--- a/core/lib/Drupal/Core/Utility/Token.php
+++ b/core/lib/Drupal/Core/Utility/Token.php
@@ -250,7 +250,7 @@ public function scan($text) {
 
     // Iterate through the matches, building an associative array containing
     // $tokens grouped by $types, pointing to the version of the token found in
-    // the source text. For example, $results['node']['title'] = '[node:title]';
+    // the source text. For example, $results['node']['title'] = '[node:title]';.
     $results = array();
     for ($i = 0; $i < count($tokens); $i++) {
       $results[$types[$i]][$tokens[$i]] = $matches[0][$i];
diff --git a/core/misc/autocomplete.js b/core/misc/autocomplete.js
index 032a15c..14b84e5 100644
--- a/core/misc/autocomplete.js
+++ b/core/misc/autocomplete.js
@@ -247,7 +247,6 @@
     splitValues: autocompleteSplitValues,
     extractLastTerm: extractLastTerm,
     // jQuery UI autocomplete options.
-
     /**
      * JQuery UI option object.
      *
diff --git a/core/misc/collapse.js b/core/misc/collapse.js
index 767325e..ce91a0b 100644
--- a/core/misc/collapse.js
+++ b/core/misc/collapse.js
@@ -24,7 +24,7 @@
     if (this.$node.find('.error' + anchor).length) {
       this.$node.attr('open', true);
     }
-    // Initialize and setup the summary,
+    // Initialize and setup the summary,.
     this.setupSummary();
     // Initialize and setup the legend.
     this.setupLegend();
diff --git a/core/misc/tableselect.js b/core/misc/tableselect.js
index 053af05..9dbd80a 100644
--- a/core/misc/tableselect.js
+++ b/core/misc/tableselect.js
@@ -76,7 +76,6 @@
           }
           // Either add or remove the selected class based on the state of the
           // check all checkbox.
-
           /**
            * @checkbox {HTMLElement}
            */
@@ -91,7 +90,6 @@
     checkboxes = $table.find('td input[type="checkbox"]:enabled').on('click', function (e) {
       // Either add or remove the selected class based on the state of the
       // check all checkbox.
-
       /**
        * @this {HTMLElement}
        */
diff --git a/core/modules/action/tests/src/Unit/Plugin/migrate/source/ActionTest.php b/core/modules/action/tests/src/Unit/Plugin/migrate/source/ActionTest.php
index 3ef553e..74133ab 100644
--- a/core/modules/action/tests/src/Unit/Plugin/migrate/source/ActionTest.php
+++ b/core/modules/action/tests/src/Unit/Plugin/migrate/source/ActionTest.php
@@ -25,7 +25,6 @@ class ActionTest extends MigrateSqlSourceTestCase {
   );
 
   // We need to set up the database contents; it's easier to do that below.
-
   protected $expectedResults = array(
     array(
       'aid' => 'Redirect to node list page',
diff --git a/core/modules/ban/src/Tests/IpAddressBlockingTest.php b/core/modules/ban/src/Tests/IpAddressBlockingTest.php
index a537d74..8ce083f 100644
--- a/core/modules/ban/src/Tests/IpAddressBlockingTest.php
+++ b/core/modules/ban/src/Tests/IpAddressBlockingTest.php
@@ -72,6 +72,6 @@ function testIPAddressValidation() {
     // $edit = array();
     // $edit['ip'] = \Drupal::request()->getClientIP();
     // $this->drupalPostForm('admin/config/people/ban', $edit, t('Save'));
-    // $this->assertText(t('You may not ban your own IP address.'));
+    // $this->assertText(t('You may not ban your own IP address.'));.
   }
 }
diff --git a/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php b/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php
index 4595844..54a08e2 100644
--- a/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php
+++ b/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php
@@ -49,7 +49,7 @@ public static function cases(ContainerInterface $container = NULL, AccountInterf
 
     // 1. Real-world example of HTML placeholder.
     $status_messages = new BigPipePlaceholderTestCase(
-      [], //['#type' => 'status_messages'],
+      [], // ['#type' => 'status_messages'],.
       '<drupal-render-placeholder callback="Drupal\Core\Render\Element\StatusMessages::renderMessages" arguments="0" token="a8c34b5e"></drupal-render-placeholder>',
       [
         '#lazy_builder' => [
diff --git a/core/modules/block/block.install b/core/modules/block/block.install
index 106815c..03e6500 100644
--- a/core/modules/block/block.install
+++ b/core/modules/block/block.install
@@ -28,12 +28,10 @@ function block_install() {
 function block_update_8001() {
   // This update function updates blocks for the change from
   // https://www.drupal.org/node/2354889.
-
   // Core visibility context plugins are updated automatically; blocks with
   // unknown plugins are disabled and their previous visibility settings are
   // saved in key value storage; see change record
   // https://www.drupal.org/node/2527840 for more explanation.
-
   // These are all the contexts that Drupal core provides.
   $context_service_id_map = [
     'node.node' => '@node.node_route_context:node',
diff --git a/core/modules/block/block.module b/core/modules/block/block.module
index 0b6ca26..5cbd4b1 100644
--- a/core/modules/block/block.module
+++ b/core/modules/block/block.module
@@ -176,7 +176,6 @@ function block_theme_suggestions_block(array $variables) {
   // contains a hyphen, it will end up as an underscore after this conversion,
   // and your function names won't be recognized. So, we need to convert
   // hyphens to underscores in block deltas for the theme suggestions.
-
   // We can safely explode on : because we know the Block plugin type manager
   // enforces that delimiter for all derivatives.
   $parts = explode(':', $variables['elements']['#plugin_id']);
diff --git a/core/modules/block/block.post_update.php b/core/modules/block/block.post_update.php
index f208f65..2a27f2f 100644
--- a/core/modules/block/block.post_update.php
+++ b/core/modules/block/block.post_update.php
@@ -41,7 +41,6 @@ function block_post_update_disable_blocks_with_missing_contexts() {
   foreach ($blocks as $block) {
     // This block has had conditions removed due to an inability to resolve
     // contexts in block_update_8001() so disable it.
-
     // Disable currently enabled blocks.
     if ($block_update_8001[$block->id()]['status']) {
       $block->setStatus(FALSE);
diff --git a/core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php b/core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php
index 64b2109..1ca9bb3 100644
--- a/core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php
+++ b/core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php
@@ -290,7 +290,7 @@ protected function assertBlockRenderedWithExpectedCacheability(array $expected_k
     $required_cache_contexts = ['languages:' . LanguageInterface::TYPE_INTERFACE, 'theme', 'user.permissions'];
 
     // Check that the expected cacheability metadata is present in:
-    // - the built render array;
+    // - the built render array;.
     $this->pass('Built render array');
     $build = $this->getBlockRenderArray();
     $this->assertIdentical($expected_keys, $build['#cache']['keys']);
@@ -298,7 +298,7 @@ protected function assertBlockRenderedWithExpectedCacheability(array $expected_k
     $this->assertIdentical($expected_tags, $build['#cache']['tags']);
     $this->assertIdentical($expected_max_age, $build['#cache']['max-age']);
     $this->assertFalse(isset($build['#create_placeholder']));
-    // - the rendered render array;
+    // - the rendered render array;.
     $this->pass('Rendered render array');
     $this->renderer->renderRoot($build);
     // - the render cache item.
diff --git a/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php b/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php
index 1ceadd1..0b5ec18 100644
--- a/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php
+++ b/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php
@@ -89,7 +89,7 @@ public function testBlockMigration() {
     $blocks = Block::loadMultiple();
     $this->assertIdentical(9, count($blocks));
 
-    // User blocks
+    // User blocks.
     $visibility = [];
     $visibility['request_path']['id'] = 'request_path';
     $visibility['request_path']['negate'] = TRUE;
@@ -117,18 +117,18 @@ public function testBlockMigration() {
     $visibility['user_role']['negate'] = FALSE;
     $this->assertEntity('user_3', $visibility, 'sidebar_second', 'bartik', -6, '', '0');
 
-    // Check system block
+    // Check system block.
     $visibility = [];
     $visibility['request_path']['id'] = 'request_path';
     $visibility['request_path']['negate'] = TRUE;
     $visibility['request_path']['pages'] = '/node/1';
     $this->assertEntity('system', $visibility, 'footer', 'bartik', -5, '', '0');
 
-    // Check menu blocks
+    // Check menu blocks.
     $visibility = [];
     $this->assertEntity('menu', $visibility, 'header', 'bartik', -5, '', '0');
 
-    // Check custom blocks
+    // Check custom blocks.
     $visibility['request_path']['id'] = 'request_path';
     $visibility['request_path']['negate'] = FALSE;
     $visibility['request_path']['pages'] = '<front>';
diff --git a/core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php b/core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php
index 7701eca..484cffb 100644
--- a/core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php
+++ b/core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php
@@ -68,7 +68,7 @@ public function setUpDisplayVariant($configuration = array(), $definition = arra
   public function providerBuild() {
     $blocks_config = array(
       'block1' => array(
-        // region, is main content block, is messages block, is title block
+        // region, is main content block, is messages block, is title block.
         'top', FALSE, FALSE, FALSE,
       ),
       // Test multiple blocks in the same region.
diff --git a/core/modules/block_content/src/Tests/BlockContentCreationTest.php b/core/modules/block_content/src/Tests/BlockContentCreationTest.php
index 0cca85e..85a4e10 100644
--- a/core/modules/block_content/src/Tests/BlockContentCreationTest.php
+++ b/core/modules/block_content/src/Tests/BlockContentCreationTest.php
@@ -106,7 +106,7 @@ public function testBlockContentCreationMultipleViewModes() {
       '%name' => $edit['info[0][value]']
     )), 'Basic block created.');
 
-    // Save our block permanently
+    // Save our block permanently.
     $this->drupalPostForm(NULL, NULL, t('Save block'));
 
     // Set test_view_mode as a custom display to be available on the list.
diff --git a/core/modules/block_content/src/Tests/BlockContentValidationTest.php b/core/modules/block_content/src/Tests/BlockContentValidationTest.php
index a0db394..669d077 100644
--- a/core/modules/block_content/src/Tests/BlockContentValidationTest.php
+++ b/core/modules/block_content/src/Tests/BlockContentValidationTest.php
@@ -29,7 +29,7 @@ public function testValidation() {
     $violations = $block->validate();
     // Make sure we have 1 violation.
     $this->assertEqual(count($violations), 1);
-    // Make sure the violation is on the info property
+    // Make sure the violation is on the info property.
     $this->assertEqual($violations[0]->getPropertyPath(), 'info');
     // Make sure the message is correct.
     $this->assertEqual($violations[0]->getMessage(), format_string('A custom block with block description %value already exists.', [
diff --git a/core/modules/book/src/BookManager.php b/core/modules/book/src/BookManager.php
index d95e6fa..17cb773 100644
--- a/core/modules/book/src/BookManager.php
+++ b/core/modules/book/src/BookManager.php
@@ -841,7 +841,7 @@ protected function moveChildren(array $link, array $original) {
     if ($shift > 0) {
       // The order of expressions must be reversed so the new values don't
       // overwrite the old ones before they can be used because "Single-table
-      // UPDATE assignments are generally evaluated from left to right"
+      // UPDATE assignments are generally evaluated from left to right".
       // @see http://dev.mysql.com/doc/refman/5.0/en/update.html
       $expressions = array_reverse($expressions);
     }
@@ -1112,7 +1112,6 @@ public function bookSubtreeData($link) {
         // Compute the real cid for book subtree data.
         $tree_cid = 'book-links:subtree-data:' . hash('sha256', serialize($data));
         // Cache the data, if it is not already in the cache.
-
         if (!\Drupal::cache('data')->get($tree_cid)) {
           \Drupal::cache('data')->set($tree_cid, $data, Cache::PERMANENT, array('bid:' . $link['bid']));
         }
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php
index 3728790..d70cde0 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php
@@ -241,7 +241,7 @@ public function getButtons() {
         'image_alternative' => $button('blockquote'),
         'image_alternative_rtl' => $button('blockquote', 'rtl'),
       ),
-      // "horizontalrule" plugin
+      // "horizontalrule" plugin.
       'HorizontalRule' => array(
         'label' => t('Horizontal rule'),
         'image_alternative' => $button('horizontal rule'),
diff --git a/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php b/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php
index 77115e6..8a2919e 100644
--- a/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php
+++ b/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php
@@ -80,7 +80,7 @@ function testExistingFormat() {
     $expected_default_settings = array(
       'toolbar' => array(
         'rows' => array(
-          // Button groups
+          // Button groups.
           array(
             array(
               'name' => 'Formatting',
diff --git a/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php b/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php
index f50dc8b..934e113 100644
--- a/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php
+++ b/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php
@@ -162,7 +162,7 @@ protected function testLoadingWithoutInternalButtons() {
     // Change the CKEditor text editor configuration to only have link buttons.
     // This means:
     // - 0 buttons are from \Drupal\ckeditor\Plugin\CKEditorPlugin\Internal
-    // - 2 buttons are from \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalLink
+    // - 2 buttons are from \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalLink.
     $filtered_html_editor = Editor::load('filtered_html');
     $settings = $filtered_html_editor->getSettings();
     $settings['toolbar']['rows'] = [
diff --git a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php
index 92c448b..28e0a8e 100644
--- a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php
+++ b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php
@@ -31,7 +31,6 @@ protected function setUp() {
     parent::setUp();
 
     // Install the Filter module.
-
     // Create text format, associate CKEditor.
     $filtered_html_format = FilterFormat::create(array(
       'format' => 'filtered_html',
diff --git a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
index 15e56b0..4225c10 100644
--- a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
+++ b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
@@ -39,7 +39,6 @@ protected function setUp() {
     parent::setUp();
 
     // Install the Filter module.
-
     // Create text format, associate CKEditor.
     $filtered_html_format = FilterFormat::create(array(
       'format' => 'filtered_html',
diff --git a/core/modules/color/color.module b/core/modules/color/color.module
index 055d750..87c3252 100644
--- a/core/modules/color/color.module
+++ b/core/modules/color/color.module
@@ -543,7 +543,6 @@ function _color_rewrite_stylesheet($theme, &$info, &$paths, $palette, $style) {
     }
     else {
       // Determine the most suitable base color for the next color.
-
       // 'a' declarations. Use link.
       if (preg_match('@[^a-z0-9_-](a)[^a-z0-9_-][^/{]*{[^{]+$@i', $chunk)) {
         $base = 'link';
@@ -654,7 +653,7 @@ function _color_render_images($theme, &$info, &$paths, $palette) {
     imagedestroy($slice);
     $paths['files'][] = $image;
 
-    // Set standard file permissions for webserver-generated files
+    // Set standard file permissions for webserver-generated files.
     drupal_chmod($image);
 
     // Build before/after map of image paths.
@@ -680,8 +679,7 @@ function _color_render_images($theme, &$info, &$paths, $palette) {
 function _color_shift($given, $ref1, $ref2, $target) {
   // We assume that ref2 is a blend of ref1 and target and find
   // delta based on the length of the difference vectors.
-
-  // delta = 1 - |ref2 - ref1| / |white - ref1|
+  // Delta = 1 - |ref2 - ref1| / |white - ref1|.
   $target = _color_unpack($target, TRUE);
   $ref1 = _color_unpack($ref1, TRUE);
   $ref2 = _color_unpack($ref2, TRUE);
diff --git a/core/modules/color/src/Tests/ColorSafePreviewTest.php b/core/modules/color/src/Tests/ColorSafePreviewTest.php
index d068380..85be419 100644
--- a/core/modules/color/src/Tests/ColorSafePreviewTest.php
+++ b/core/modules/color/src/Tests/ColorSafePreviewTest.php
@@ -45,7 +45,7 @@ function testColorPreview() {
     $this->drupalLogin($this->bigUser);
 
     // Markup is being printed from a HTML file located in:
-    // core/modules/color/tests/modules/color_test/themes/color_test_theme/color/preview.html
+    // core/modules/color/tests/modules/color_test/themes/color_test_theme/color/preview.html.
     $url = Url::fromRoute('system.theme_settings_theme', ['theme' => 'color_test_theme']);
     $this->drupalGet($url);
     $this->assertText('TEST COLOR PREVIEW');
diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module
index 40b4e40..73d872f 100644
--- a/core/modules/comment/comment.module
+++ b/core/modules/comment/comment.module
@@ -200,7 +200,6 @@ function comment_node_links_alter(array &$links, NodeInterface $node, array &$co
   // can do so by implementing a new field formatter.
   // @todo Make this configurable from the formatter. See
   //   https://www.drupal.org/node/1901110.
-
   $comment_links = \Drupal::service('comment.link_builder')->buildCommentedEntityLinks($node, $context);
   $links += $comment_links;
 }
diff --git a/core/modules/comment/comment.tokens.inc b/core/modules/comment/comment.tokens.inc
index 73f48b7..dcff9bc 100644
--- a/core/modules/comment/comment.tokens.inc
+++ b/core/modules/comment/comment.tokens.inc
@@ -29,7 +29,7 @@ function comment_token_info() {
     'description' => t("The number of comments posted on an entity since the reader last viewed it."),
   );
 
-  // Core comment tokens
+  // Core comment tokens.
   $comment['cid'] = array(
     'name' => t("Comment ID"),
     'description' => t("The unique ID of the comment."),
@@ -67,7 +67,7 @@ function comment_token_info() {
     'description' => t("The URL of the comment's edit page."),
   );
 
-  // Chained tokens for comments
+  // Chained tokens for comments.
   $comment['created'] = array(
     'name' => t("Date created"),
     'description' => t("The date the comment was posted."),
diff --git a/core/modules/comment/src/CommentStorage.php b/core/modules/comment/src/CommentStorage.php
index cc4fdcf..3abedd5 100644
--- a/core/modules/comment/src/CommentStorage.php
+++ b/core/modules/comment/src/CommentStorage.php
@@ -144,7 +144,6 @@ public function getNewCommentPageNumber($total_comments, $new_comments, Fieldabl
     }
     else {
       // Threaded comments.
-
       // 1. Find all the threads with a new comment.
       $unread_threads_query = $this->database->select('comment_field_data', 'comment')
         ->fields('comment', array('thread'))
diff --git a/core/modules/comment/src/Controller/CommentController.php b/core/modules/comment/src/Controller/CommentController.php
index 0b682e8..d891bcd 100644
--- a/core/modules/comment/src/Controller/CommentController.php
+++ b/core/modules/comment/src/Controller/CommentController.php
@@ -290,7 +290,7 @@ public function replyFormAccess(EntityInterface $entity, $field_name, $pid = NUL
       // Check if the user has the proper permissions.
       $access = $access->andIf(AccessResult::allowedIfHasPermission($account, 'access comments'));
 
-      /// Load the parent comment.
+      // Load the parent comment.
       $comment = $this->entityManager()->getStorage('comment')->load($pid);
       // Check if the parent comment is published and belongs to the entity.
       $access = $access->andIf(AccessResult::allowedIf($comment && $comment->isPublished() && $comment->getCommentedEntityId() == $entity->id()));
diff --git a/core/modules/comment/src/Entity/Comment.php b/core/modules/comment/src/Entity/Comment.php
index 7a659f8..12bf627 100644
--- a/core/modules/comment/src/Entity/Comment.php
+++ b/core/modules/comment/src/Entity/Comment.php
@@ -100,7 +100,6 @@ public function preSave(EntityStorageInterface $storage) {
         else {
           // This is a comment with a parent comment, so increase the part of
           // the thread value at the proper depth.
-
           // Get the parent comment:
           $parent = $this->getParentComment();
           // Strip the "/" from the end of the parent thread.
diff --git a/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php b/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php
index 61a5d17..3c76ee2 100644
--- a/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php
+++ b/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php
@@ -22,7 +22,7 @@ public function query() {
     // last_comment_name only contains data if the user is anonymous. So we
     // have to join in a specially related user table.
     $this->ensureMyTable();
-    // join 'users' to this table via vid
+    // Join 'users' to this table via vid.
     $definition = array(
       'table' => 'users_field_data',
       'field' => 'uid',
diff --git a/core/modules/comment/src/Plugin/views/sort/Thread.php b/core/modules/comment/src/Plugin/views/sort/Thread.php
index 1984934..44fba29 100644
--- a/core/modules/comment/src/Plugin/views/sort/Thread.php
+++ b/core/modules/comment/src/Plugin/views/sort/Thread.php
@@ -16,14 +16,14 @@ class Thread extends SortPluginBase {
   public function query() {
     $this->ensureMyTable();
 
-    //Read comment_render() in comment.module for an explanation of the
-    //thinking behind this sort.
+    // Read comment_render() in comment.module for an explanation of the
+    // thinking behind this sort.
     if ($this->options['order'] == 'DESC') {
       $this->query->addOrderBy($this->tableAlias, $this->realField, $this->options['order']);
     }
     else {
       $alias = $this->tableAlias . '_' . $this->realField . 'asc';
-      //@todo is this secure?
+      // @todo is this secure?
       $this->query->addOrderBy(NULL, "SUBSTRING({$this->tableAlias}.{$this->realField}, 1, (LENGTH({$this->tableAlias}.{$this->realField}) - 1))", $this->options['order'], $alias);
     }
   }
diff --git a/core/modules/comment/src/Tests/CommentAdminTest.php b/core/modules/comment/src/Tests/CommentAdminTest.php
index f6dc5c6..e58243e 100644
--- a/core/modules/comment/src/Tests/CommentAdminTest.php
+++ b/core/modules/comment/src/Tests/CommentAdminTest.php
@@ -31,7 +31,7 @@ function testApprovalAdminInterface() {
     $this->drupalLogin($this->adminUser);
     $this->setCommentAnonymous('0'); // Ensure that doesn't require contact info.
 
-    // Test that the comments page loads correctly when there are no comments
+    // Test that the comments page loads correctly when there are no comments.
     $this->drupalGet('admin/content/comment');
     $this->assertText(t('No comments available.'));
 
diff --git a/core/modules/comment/src/Tests/CommentNonNodeTest.php b/core/modules/comment/src/Tests/CommentNonNodeTest.php
index 1b37c1f..fd4e16c 100644
--- a/core/modules/comment/src/Tests/CommentNonNodeTest.php
+++ b/core/modules/comment/src/Tests/CommentNonNodeTest.php
@@ -152,7 +152,7 @@ function postComment(EntityInterface $entity, $comment, $subject = '', $contact
         break;
     }
     $match = array();
-    // Get comment ID
+    // Get comment ID.
     preg_match('/#comment-([0-9]+)/', $this->getURL(), $match);
 
     // Get comment.
diff --git a/core/modules/comment/src/Tests/CommentPagerTest.php b/core/modules/comment/src/Tests/CommentPagerTest.php
index 760e25f..f177983 100644
--- a/core/modules/comment/src/Tests/CommentPagerTest.php
+++ b/core/modules/comment/src/Tests/CommentPagerTest.php
@@ -134,8 +134,7 @@ function testCommentOrderingThreading() {
     //   - 3
     //     - 6
     // - 2
-    //   - 5
-
+    //   - 5.
     $this->setCommentSettings('default_mode', CommentManagerInterface::COMMENT_MODE_FLAT, 'Comment paging changed.');
 
     $expected_order = array(
@@ -229,8 +228,7 @@ function testCommentNewPageIndicator() {
     // - 1
     //   - 3
     // - 2
-    //   - 5
-
+    //   - 5.
     $this->setCommentSettings('default_mode', CommentManagerInterface::COMMENT_MODE_FLAT, 'Comment paging changed.');
 
     $expected_pages = array(
@@ -239,7 +237,7 @@ function testCommentNewPageIndicator() {
       3 => 3, // Page of comment 3
       4 => 2, // Page of comment 2
       5 => 1, // Page of comment 1
-      6 => 0, // Page of comment 0
+      6 => 0, // Page of comment 0.
     );
 
     $node = Node::load($node->id());
@@ -257,7 +255,7 @@ function testCommentNewPageIndicator() {
       3 => 1, // Page of comment 4
       4 => 1, // Page of comment 4
       5 => 1, // Page of comment 4
-      6 => 0, // Page of comment 0
+      6 => 0, // Page of comment 0.
     );
 
     \Drupal::entityManager()->getStorage('node')->resetCache(array($node->id()));
diff --git a/core/modules/comment/src/Tests/CommentTestBase.php b/core/modules/comment/src/Tests/CommentTestBase.php
index f4beadc..bcb1e99 100644
--- a/core/modules/comment/src/Tests/CommentTestBase.php
+++ b/core/modules/comment/src/Tests/CommentTestBase.php
@@ -155,7 +155,7 @@ public function postComment($entity, $comment, $subject = '', $contact = NULL, $
         break;
     }
     $match = array();
-    // Get comment ID
+    // Get comment ID.
     preg_match('/#comment-([0-9]+)/', $this->getURL(), $match);
 
     // Get comment.
diff --git a/core/modules/comment/src/Tests/CommentThreadingTest.php b/core/modules/comment/src/Tests/CommentThreadingTest.php
index c8ea93e..9bafc3a 100644
--- a/core/modules/comment/src/Tests/CommentThreadingTest.php
+++ b/core/modules/comment/src/Tests/CommentThreadingTest.php
@@ -134,7 +134,7 @@ protected function assertParentLink($cid, $pid) {
     //   <p class="parent">
     //     <a href="...comment-1"></a>
     //   </p>
-    //  </article>
+    //  </article>.
     $pattern = "//a[@id='comment-$cid']/following-sibling::article//p[contains(@class, 'parent')]//a[contains(@href, 'comment-$pid')]";
 
     $this->assertFieldByXpath($pattern, NULL, format_string(
@@ -157,8 +157,7 @@ protected function assertNoParentLink($cid) {
     // <a id="comment-2"></a>
     // <article>
     //   <p class="parent"></p>
-    //  </article>
-
+    //  </article>.
     $pattern = "//a[@id='comment-$cid']/following-sibling::article//p[contains(@class, 'parent')]";
     $this->assertNoFieldByXpath($pattern, NULL, format_string(
       'Comment %cid does not have a link to a parent.',
diff --git a/core/modules/comment/src/Tests/Views/DefaultViewRecentCommentsTest.php b/core/modules/comment/src/Tests/Views/DefaultViewRecentCommentsTest.php
index ff151c6..bce1a51 100644
--- a/core/modules/comment/src/Tests/Views/DefaultViewRecentCommentsTest.php
+++ b/core/modules/comment/src/Tests/Views/DefaultViewRecentCommentsTest.php
@@ -62,7 +62,7 @@ class DefaultViewRecentCommentsTest extends ViewTestBase {
   protected function setUp() {
     parent::setUp();
 
-    // Create a new content type
+    // Create a new content type.
     $content_type = $this->drupalCreateContentType();
 
     // Add a node of the new content type.
diff --git a/core/modules/comment/src/Tests/Views/WizardTest.php b/core/modules/comment/src/Tests/Views/WizardTest.php
index 885ce2c..efb7b29 100644
--- a/core/modules/comment/src/Tests/Views/WizardTest.php
+++ b/core/modules/comment/src/Tests/Views/WizardTest.php
@@ -52,7 +52,6 @@ public function testCommentWizard() {
 
     // If we update the type first we should get a selection of comment valid
     // row plugins as the select field.
-
     $this->drupalGet('admin/structure/views/add');
     $this->drupalPostForm('admin/structure/views/add', $view, t('Update "of type" choice'));
 
diff --git a/core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldInstanceTest.php b/core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldInstanceTest.php
index c7d8959..1f35ef5 100644
--- a/core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldInstanceTest.php
+++ b/core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldInstanceTest.php
@@ -67,7 +67,7 @@ protected function assertEntity($id, $field_name, $bundle, $default_mode, $per_p
     // This assertion fails because 1 !== TRUE. It's extremely strange that
     // the form_location setting is returning a boolean, but this appears to
     // be a problem with the entity, not with the migration.
-    // $this->asserIdentical($form_location, $entity->getSetting('form_location'));
+    // $this->asserIdentical($form_location, $entity->getSetting('form_location'));.
     $this->assertEqual($preview, $entity->getSetting('preview'));
   }
 
diff --git a/core/modules/comment/tests/src/Unit/Migrate/d6/CommentTestBase.php b/core/modules/comment/tests/src/Unit/Migrate/d6/CommentTestBase.php
index 79bae3e..70dd5a7 100644
--- a/core/modules/comment/tests/src/Unit/Migrate/d6/CommentTestBase.php
+++ b/core/modules/comment/tests/src/Unit/Migrate/d6/CommentTestBase.php
@@ -25,7 +25,6 @@
   );
 
   // We need to set up the database contents; it's easier to do that below.
-
   protected $expectedResults = array(
     array(
       'cid' => 1,
diff --git a/core/modules/config/src/Tests/ConfigEntityTest.php b/core/modules/config/src/Tests/ConfigEntityTest.php
index 5a61382..c7d4e12 100644
--- a/core/modules/config/src/Tests/ConfigEntityTest.php
+++ b/core/modules/config/src/Tests/ConfigEntityTest.php
@@ -139,7 +139,6 @@ function testCRUD() {
 
     // Verify that a configuration entity can be saved with an ID of the
     // maximum allowed length, but not longer.
-
     // Test with a short ID.
     $id_length_config_test = entity_create('config_test', array(
       'id' => $this->randomMachineName(8),
diff --git a/core/modules/config/src/Tests/ConfigImportAllTest.php b/core/modules/config/src/Tests/ConfigImportAllTest.php
index a7623a9..214f81f 100644
--- a/core/modules/config/src/Tests/ConfigImportAllTest.php
+++ b/core/modules/config/src/Tests/ConfigImportAllTest.php
@@ -74,7 +74,6 @@ public function testInstallUninstall() {
     // Delete every field on the site so all modules can be uninstalled. For
     // example, if a comment field exists then module becomes required and can
     // not be uninstalled.
-
     $field_storages = \Drupal::entityManager()->getStorage('field_storage_config')->loadMultiple();
     \Drupal::entityManager()->getStorage('field_storage_config')->delete($field_storages);
     // Purge the data.
diff --git a/core/modules/config/src/Tests/ConfigImportUITest.php b/core/modules/config/src/Tests/ConfigImportUITest.php
index afa9b99..a4162ef 100644
--- a/core/modules/config/src/Tests/ConfigImportUITest.php
+++ b/core/modules/config/src/Tests/ConfigImportUITest.php
@@ -295,7 +295,6 @@ function testImportDiff() {
     // The following assertions do not use $this::assertEscaped() because
     // \Drupal\Component\Diff\DiffFormatter adds markup that signifies what has
     // changed.
-
     // Changed values are escaped.
     $this->assertText(Html::escape("foo: '<p><em>foobar</em></p>'"));
     $this->assertText(Html::escape("foo: '<p>foobar</p>'"));
@@ -310,7 +309,7 @@ function testImportDiff() {
     $result = $this->xpath('//table[contains(@class, :class)]', array(':class' => 'diff'));
     $this->assertEqual(count($result), 1, "Diff UI is displaying colors.");
 
-    // Reset data back to original, and remove a key
+    // Reset data back to original, and remove a key.
     $sync_data = $original_data;
     unset($sync_data[$remove_key]);
     $sync->write($config_name, $sync_data);
@@ -323,7 +322,7 @@ function testImportDiff() {
     // Removed key is escaped.
     $this->assertText(Html::escape("404: '<em>herp</em>'"));
 
-    // Reset data back to original and add a key
+    // Reset data back to original and add a key.
     $sync_data = $original_data;
     $sync_data[$add_key] = $add_data;
     $sync->write($config_name, $sync_data);
diff --git a/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php b/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php
index c260e63..54adffa 100644
--- a/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php
+++ b/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php
@@ -489,8 +489,7 @@ public function testTranslateOperationInListUi() {
     $this->doDateFormatListTest();
     $this->doFieldListTest();
 
-    // Views is tested in Drupal\config_translation\Tests\ConfigTranslationViewListUiTest
-
+    // Views is tested in Drupal\config_translation\Tests\ConfigTranslationViewListUiTest.
     // Test the maintenance settings page.
     $this->doSettingsPageTest('admin/config/development/maintenance');
     // Test the site information settings page.
diff --git a/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php b/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php
index 908b925..7604cc5 100644
--- a/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php
+++ b/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php
@@ -646,7 +646,7 @@ public function testPluralConfigStringsSourceElements() {
     );
 
     foreach ($languages as $langcode => $data) {
-      // Import a .po file to add a new language with a given number of plural forms
+      // Import a .po file to add a new language with a given number of plural forms.
       $name = tempnam('temporary://', $langcode . '_') . '.po';
       file_put_contents($name, $this->getPoFile($data['plurals']));
       $this->drupalPostForm('admin/config/regional/translate/import', array(
@@ -839,7 +839,7 @@ public function testLocaleDBStorage() {
     $translation = $this->getTranslation('user.settings', 'anonymous', 'fr');
     $this->assertEqual('Anonyme', $translation->getString());
 
-    // revert custom translations to base translation.
+    // Revert custom translations to base translation.
     $edit = array(
       'translation[config_names][user.settings][anonymous]' => 'Anonymous',
     );
@@ -856,7 +856,7 @@ public function testLocaleDBStorage() {
   public function testSingleLanguageUI() {
     $this->drupalLogin($this->adminUser);
 
-    // Delete French language
+    // Delete French language.
     $this->drupalPostForm('admin/config/regional/language/delete/fr', array(), t('Delete'));
     $this->assertRaw(t('The %language (%langcode) language has been removed.', array('%language' => 'French', '%langcode' => 'fr')));
 
@@ -867,7 +867,7 @@ public function testSingleLanguageUI() {
     $this->drupalPostForm('admin/config/regional/language', $edit, t('Save configuration'));
     $this->assertRaw(t('Configuration saved.'));
 
-    // Delete English language
+    // Delete English language.
     $this->drupalPostForm('admin/config/regional/language/delete/en', array(), t('Delete'));
     $this->assertRaw(t('The %language (%langcode) language has been removed.', array('%language' => 'English', '%langcode' => 'en')));
 
diff --git a/core/modules/contact/tests/src/Unit/MailHandlerTest.php b/core/modules/contact/tests/src/Unit/MailHandlerTest.php
index 8504a6a..db6707d 100644
--- a/core/modules/contact/tests/src/Unit/MailHandlerTest.php
+++ b/core/modules/contact/tests/src/Unit/MailHandlerTest.php
@@ -235,7 +235,7 @@ public function getSendMailMessages() {
     $results[] = $result + $default_result;
     $data[] = array($message, $sender, $results);
 
-    //For authenticated user.
+    // For authenticated user.
     $results = array();
     $message = $this->getAuthenticatedMockMessage();
     $sender = $this->getMockSender(FALSE, 'user@drupal.org');
diff --git a/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeWidgetBase.php b/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeWidgetBase.php
index df23426..2b1096e 100644
--- a/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeWidgetBase.php
+++ b/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeWidgetBase.php
@@ -22,7 +22,6 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
     // identifying this item in error messages. We do not want to display this
     // title because the actual title display is handled at a higher level by
     // the Field module.
-
     $element['#theme_wrappers'][] = 'datetime_wrapper';
     $element['#attributes']['class'][] = 'container-inline';
 
diff --git a/core/modules/datetime/src/Plugin/views/filter/Date.php b/core/modules/datetime/src/Plugin/views/filter/Date.php
index e53cb1c..5c48ce2 100644
--- a/core/modules/datetime/src/Plugin/views/filter/Date.php
+++ b/core/modules/datetime/src/Plugin/views/filter/Date.php
@@ -95,8 +95,6 @@ protected function opBetween($field) {
     $b = intval(strtotime($this->value['max'], $origin));
 
     // Formatting will vary on date storage.
-
-
     // Convert to ISO format and format for query. UTC timezone is used since
     // dates are stored in UTC.
     $a = $this->query->getDateFormat("'" . $this->dateFormatter->format($a, 'custom', DATETIME_DATETIME_STORAGE_FORMAT, DATETIME_STORAGE_TIMEZONE) . "'", $this->dateFormat, TRUE);
diff --git a/core/modules/datetime/src/Tests/DateTimeFieldTest.php b/core/modules/datetime/src/Tests/DateTimeFieldTest.php
index 1fc1d60..6ecb84b 100644
--- a/core/modules/datetime/src/Tests/DateTimeFieldTest.php
+++ b/core/modules/datetime/src/Tests/DateTimeFieldTest.php
@@ -401,11 +401,11 @@ function testDatelistWidget() {
     // Display creation form.
     $this->drupalGet('entity_test/add');
 
-    // Assert that Hour and Minute Elements do not appear on Date Only
+    // Assert that Hour and Minute Elements do not appear on Date Only.
     $this->assertNoFieldByXPath("//*[@id=\"edit-$field_name-0-value-hour\"]", NULL, 'Hour element not found on Date Only.');
     $this->assertNoFieldByXPath("//*[@id=\"edit-$field_name-0-value-minute\"]", NULL, 'Minute element not found on Date Only.');
 
-    // Go to the form display page to assert that increment option does not appear on Date Only
+    // Go to the form display page to assert that increment option does not appear on Date Only.
     $fieldEditUrl = 'entity_test/structure/entity_test/form-display';
     $this->drupalGet($fieldEditUrl);
 
@@ -431,7 +431,7 @@ function testDatelistWidget() {
       ->save();
     \Drupal::entityManager()->clearCachedFieldDefinitions();
 
-    // Go to the form display page to assert that increment option does appear on Date Time
+    // Go to the form display page to assert that increment option does appear on Date Time.
     $fieldEditUrl = 'entity_test/structure/entity_test/form-display';
     $this->drupalGet($fieldEditUrl);
 
diff --git a/core/modules/dblog/src/Tests/DbLogTest.php b/core/modules/dblog/src/Tests/DbLogTest.php
index e8cf1cd..0d07290 100644
--- a/core/modules/dblog/src/Tests/DbLogTest.php
+++ b/core/modules/dblog/src/Tests/DbLogTest.php
@@ -151,7 +151,7 @@ private function generateLogEntries($count, $options = array()) {
     // Make it just a little bit harder to pass the link part of the test.
     $link = urldecode('/content/xo%E9%85%B1%E5%87%89%E6%8B%8C%E7%B4%A0%E9%B8%A1%E7%85%A7%E7%83%A7%E9%B8%A1%E9%BB%84%E7%8E%AB%E7%91%B0-%E7%A7%91%E5%B7%9E%E7%9A%84%E5%B0%8F%E4%B9%9D%E5%AF%A8%E6%B2%9F%E7%BB%9D%E7%BE%8E%E9%AB%98%E5%B1%B1%E6%B9%96%E6%B3%8A%E9%85%B1%E5%87%89%E6%8B%8C%E7%B4%A0%E9%B8%A1%E7%85%A7%E7%83%A7%E9%B8%A1%E9%BB%84%E7%8E%AB%E7%91%B0-%E7%A7%91%E5%B7%9E%E7%9A%84%E5%B0%8F%E4%B9%9D%E5%AF%A8%E6%B2%9F%E7%BB%9D%E7%BE%8E%E9%AB%98%E5%B1%B1%E6%B9%96%E6%B3%8A%E9%85%B1%E5%87%89%E6%8B%8C%E7%B4%A0%E9%B8%A1%E7%85%A7%E7%83%A7%E9%B8%A1%E9%BB%84%E7%8E%AB%E7%91%B0-%E7%A7%91%E5%B7%9E%E7%9A%84%E5%B0%8F%E4%B9%9D%E5%AF%A8%E6%B2%9F%E7%BB%9D%E7%BE%8E%E9%AB%98%E5%B1%B1%E6%B9%96%E6%B3%8A%E9%85%B1%E5%87%89%E6%8B%8C%E7%B4%A0%E9%B8%A1%E7%85%A7%E7%83%A7%E9%B8%A1%E9%BB%84%E7%8E%AB%E7%91%B0-%E7%A7%91%E5%B7%9E%E7%9A%84%E5%B0%8F%E4%B9%9D%E5%AF%A8%E6%B2%9F%E7%BB%9D%E7%BE%8E%E9%AB%98%E5%B1%B1%E6%B9%96%E6%B3%8A%E9%85%B1%E5%87%89%E6%8B%8C%E7%B4%A0%E9%B8%A1%E7%85%A7%E7%83%A7%E9%B8%A1%E9%BB%84%E7%8E%AB%E7%91%B0-%E7%A7%91%E5%B7%9E%E7%9A%84%E5%B0%8F%E4%B9%9D%E5%AF%A8%E6%B2%9F%E7%BB%9D%E7%BE%8E%E9%AB%98%E5%B1%B1%E6%B9%96%E6%B3%8A%E9%85%B1%E5%87%89%E6%8B%8C%E7%B4%A0%E9%B8%A1%E7%85%A7%E7%83%A7%E9%B8%A1%E9%BB%84%E7%8E%AB%E7%91%B0-%E7%A7%91%E5%B7%9E%E7%9A%84%E5%B0%8F%E4%B9%9D%E5%AF%A8%E6%B2%9F%E7%BB%9D%E7%BE%8E%E9%AB%98%E5%B1%B1%E6%B9%96%E6%B3%8A%E9%85%B1%E5%87%89%E6%8B%8C%E7%B4%A0%E9%B8%A1%E7%85%A7%E7%83%A7%E9%B8%A1%E9%BB%84%E7%8E%AB%E7%91%B0-%E7%A7%91%E5%B7%9E%E7%9A%84%E5%B0%8F%E4%B9%9D%E5%AF%A8%E6%B2%9F%E7%BB%9D%E7%BE%8E%E9%AB%98%E5%B1%B1%E6%B9%96%E6%B3%8A%E9%85%B1%E5%87%89%E6%8B%8C%E7%B4%A0%E9%B8%A1%E7%85%A7%E7%83%A7%E9%B8%A1%E9%BB%84%E7%8E%AB%E7%91%B0-%E7%A7%91%E5%B7%9E%E7%9A%84%E5%B0%8F%E4%B9%9D%E5%AF%A8%E6%B2%9F%E7%BB%9D%E7%BE%8E%E9%AB%98%E5%B1%B1%E6%B9%96%E6%B3%8A%E9%85%B1%E5%87%89%E6%8B%8C%E7%B4%A0%E9%B8%A1%E7%85%A7%E7%83%A7%E9%B8%A1%E9%BB%84%E7%8E%AB%E7%91%B0-%E7%A7%91%E5%B7%9E%E7%9A%84%E5%B0%8F%E4%B9%9D%E5%AF%A8%E6%B2%9F%E7%BB%9D%E7%BE%8E%E9%AB%98%E5%B1%B1%E6%B9%96%E6%B3%8A%E9%85%B1%E5%87%89%E6%8B%8C%E7%B4%A0%E9%B8%A1%E7%85%A7%E7%83%A7%E9%B8%A1%E9%BB%84%E7%8E%AB%E7%91%B0-%E7%A7%91%E5%B7%9E%E7%9A%84%E5%B0%8F%E4%B9%9D%E5%AF%A8%E6%B2%9F%E7%BB%9D%E7%BE%8E%E9%AB%98%E5%B1%B1%E6%B9%96%E6%B3%8A%E9%85%B1%E5%87%89%E6%8B%8C%E7%B4%A0%E9%B8%A1%E7%85%A7%E7%83%A7%E9%B8%A1%E9%BB%84%E7%8E%AB%E7%91%B0-%E7%A7%91%E5%B7%9E%E7%9A%84%E5%B0%8F%E4%B9%9D%E5%AF%A8%E6%B2%9F%E7%BB%9D%E7%BE%8E%E9%AB%98%E5%B1%B1%E6%B9%96%E6%B3%8A%E9%85%B1%E5%87%89%E6%8B%8C%E7%B4%A0%E9%B8%A1%E7%85%A7%E7%83%A7%E9%B8%A1%E9%BB%84%E7%8E%AB%E7%91%B0-%E7%A7%91%E5%B7%9E%E7%9A%84%E5%B0%8F%E4%B9%9D%E5%AF%A8%E6%B2%9F%E7%BB%9D%E7%BE%8E%E9%AB%98%E5%B1%B1%E6%B9%96%E6%B3%8A%E9%85%B1%E5%87%89%E6%8B%8C%E7%B4%A0%E9%B8%A1%E7%85%A7%E7%83%A7%E9%B8%A1%E9%BB%84%E7%8E%AB%E7%91%B0-%E7%A7%91%E5%B7%9E%E7%9A%84%E5%B0%8F%E4%B9%9D%E5%AF%A8%E6%B2%9F%E7%BB%9D%E7%BE%8E%E9%AB%98%E5%B1%B1%E6%B9%96%E6%B3%8A-lake-isabelle');
 
-    // Prepare the fields to be logged
+    // Prepare the fields to be logged.
     $log = $options + array(
       'channel'     => 'custom',
       'message'     => 'Dblog test log message',
diff --git a/core/modules/editor/js/editor.admin.js b/core/modules/editor/js/editor.admin.js
index 1fdb353..119a5b7 100644
--- a/core/modules/editor/js/editor.admin.js
+++ b/core/modules/editor/js/editor.admin.js
@@ -392,15 +392,15 @@
         }
 
         // Check if a property value of a tag in the universe is forbidden.
-        // For all filter rules…
+        // For all filter rules….
         for (var n = 0; n < filterStatus.rules.length; n++) {
           filterRule = filterStatus.rules[n];
-          // … if there are tags with restricted property values …
+          // … if there are tags with restricted property values ….
           if (filterRule.restrictedTags.tags.length && !emptyProperties(filterRule.restrictedTags.forbidden)) {
-            // … for all those tags …
+            // … for all those tags ….
             for (var j = 0; j < filterRule.restrictedTags.tags.length; j++) {
               var tag = filterRule.restrictedTags.tags[j];
-              // … then iterate over all properties …
+              // … then iterate over all properties ….
               for (var k = 0; k < properties.length; k++) {
                 var property = properties[k];
                 // … and return true if just one of the forbidden property
@@ -447,15 +447,15 @@
         }
 
         // Check if a property value of a tag in the universe is allowed.
-        // For all filter rules…
+        // For all filter rules….
         for (var i = 0; !_.isEmpty(universe) && i < filterStatus.rules.length; i++) {
           filterRule = filterStatus.rules[i];
-          // … if there are tags with restricted property values …
+          // … if there are tags with restricted property values ….
           if (filterRule.restrictedTags.tags.length && !emptyProperties(filterRule.restrictedTags.allowed)) {
-            // … for all those tags …
+            // … for all those tags ….
             for (var j = 0; !_.isEmpty(universe) && j < filterRule.restrictedTags.tags.length; j++) {
               tag = filterRule.restrictedTags.tags[j];
-              // … then iterate over all properties …
+              // … then iterate over all properties ….
               for (var k = 0; k < properties.length; k++) {
                 var property = properties[k];
                 // … and try to delete this tag from the universe if just one
diff --git a/core/modules/editor/src/Tests/EditorSecurityTest.php b/core/modules/editor/src/Tests/EditorSecurityTest.php
index 0d6840b..eb558ac 100644
--- a/core/modules/editor/src/Tests/EditorSecurityTest.php
+++ b/core/modules/editor/src/Tests/EditorSecurityTest.php
@@ -171,7 +171,7 @@ protected function setUp() {
     //   - "trusted": restricted_plus_dangerous_tag_with_editor
     //   - "privileged": restricted_without_editor, restricted_with_editor,
     //     restricted_plus_dangerous_tag_with_editor,
-    //     unrestricted_without_editor and unrestricted_with_editor
+    //     unrestricted_without_editor and unrestricted_with_editor.
     $this->untrustedUser = $this->drupalCreateUser(array(
       'create article content',
       'edit any article content',
@@ -383,7 +383,7 @@ function testSwitchingSecurity() {
 
     // Log in as the privileged user, and for every sample, do the following:
     //  - switch to every other text format/editor
-    //  - assert the XSS-filtered values that we get from the server
+    //  - assert the XSS-filtered values that we get from the server.
     $this->drupalLogin($this->privilegedUser);
     foreach ($expected as $case) {
       $this->drupalGet('node/' . $case['node_id'] . '/edit');
diff --git a/core/modules/editor/tests/src/Kernel/EditorManagerTest.php b/core/modules/editor/tests/src/Kernel/EditorManagerTest.php
index b6077a5..449bac5 100644
--- a/core/modules/editor/tests/src/Kernel/EditorManagerTest.php
+++ b/core/modules/editor/tests/src/Kernel/EditorManagerTest.php
@@ -31,7 +31,6 @@ protected function setUp() {
     parent::setUp();
 
     // Install the Filter module.
-
     // Add text formats.
     $filtered_html_format = FilterFormat::create(array(
       'format' => 'filtered_html',
diff --git a/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php b/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
index 5e47c36..e8a551a 100644
--- a/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
+++ b/core/modules/editor/tests/src/Kernel/QuickEditIntegrationTest.php
@@ -67,7 +67,6 @@ protected function setUp() {
     parent::setUp();
 
     // Install the Filter module.
-
     // Create a field.
     $this->fieldName = 'field_textarea';
     $this->createFieldWithStorage(
@@ -152,7 +151,7 @@ public function testEditorSelection() {
     $entity->save();
     $this->assertEqual('editor', $this->getSelectedEditor($entity->id(), $this->fieldName), "With cardinality 1, and the full_html text format, the 'editor' editor is selected.");
 
-    // Editor selection with text processing, cardinality >1
+    // Editor selection with text processing, cardinality >1.
     $this->fields->field_textarea_field_storage->setCardinality(2);
     $this->fields->field_textarea_field_storage->save();
     $this->assertEqual('form', $this->getSelectedEditor($entity->id(), $this->fieldName), "With cardinality >1, and both items using the full_html text format, the 'form' editor is selected.");
diff --git a/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php b/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php
index d19758e..74ee840 100644
--- a/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php
+++ b/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php
@@ -56,7 +56,6 @@ public function providerTestFilterXss() {
     $data[] = array('<p>Hello, world!</p><unknown>Pink Fairy Armadillo</unknown><a href="javascript:alert(1)">test</a>', '<p>Hello, world!</p><unknown>Pink Fairy Armadillo</unknown><a href="alert(1)">test</a>');
 
     // All cases listed on https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
-
     // No Filter Evasion.
     // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#No_Filter_Evasion
     $data[] = array('<SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT>', '');
@@ -178,7 +177,6 @@ public function providerTestFilterXss() {
     // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#Escaping_JavaScript_escapes
     // This one is irrelevant for Drupal; we *never* output any JavaScript code
     // that depends on the URL's query string.
-
     // End title tag.
     // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#End_title_tag
     $data[] = array('</TITLE><SCRIPT>alert("XSS");</SCRIPT>', '</TITLE>alert("XSS");');
@@ -390,7 +388,6 @@ public function providerTestFilterXss() {
     // US-ASCII encoding.
     // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#US-ASCII_encoding
     // This one is irrelevant for Drupal; Drupal *always* outputs UTF-8.
-
     // META.
     // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#META
     $data[] = array('<META HTTP-EQUIV="refresh" CONTENT="0;url=javascript:alert(\'XSS\');">', '<META http-equiv="refresh" content="alert(&#039;XSS&#039;);">');
@@ -399,7 +396,7 @@ public function providerTestFilterXss() {
     // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#META_using_data
     $data[] = array('<META HTTP-EQUIV="refresh" CONTENT="0;url=data:text/html base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4K">', '<META http-equiv="refresh" content="text/html base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4K">');
 
-    // META with additional URL parameter
+    // META with additional URL parameter.
     // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#META
     $data[] = array('<META HTTP-EQUIV="refresh" CONTENT="0; URL=http://;URL=javascript:alert(\'XSS\');">', '<META http-equiv="refresh" content="//;URL=javascript:alert(&#039;XSS&#039;);">');
 
@@ -469,7 +466,6 @@ public function providerTestFilterXss() {
     // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#Locally_hosted_XML_with_embedded_JavaScript_that_is_generated_using_an_XML_data_island
     // This one is irrelevant for Drupal; Drupal disallows XML uploads by
     // default.
-
     // HTML+TIME in XML.
     // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#HTML.2BTIME_in_XML
     $data[] = array('<?xml:namespace prefix="t" ns="urn:schemas-microsoft-com:time"><?import namespace="t" implementation="#default#time2"><t:set attributeName="innerHTML" to="XSS<SCRIPT DEFER>alert("XSS")</SCRIPT>">', '&lt;?xml:namespace prefix="t" ns="urn:schemas-microsoft-com:time"&gt;&lt;?import namespace="t" implementation="#default#time2"&gt;<t set attributename="innerHTML">alert("XSS")"&gt;');
@@ -482,7 +478,6 @@ public function providerTestFilterXss() {
     // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#IMG_Embedded_commands
     // This one is irrelevant for Drupal; this is actually a CSRF, for which
     // Drupal has CSRF protection. See https://www.drupal.org/node/178896.
-
     // Cookie manipulation.
     // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#Cookie_manipulation
     $data[] = array('<META HTTP-EQUIV="Set-Cookie" Content="USERID=<SCRIPT>alert(\'XSS\')</SCRIPT>">', '<META http-equiv="Set-Cookie">alert(\'XSS\')"&gt;');
@@ -490,7 +485,6 @@ public function providerTestFilterXss() {
     // UTF-7 encoding.
     // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#UTF-7_encoding
     // This one is irrelevant for Drupal; Drupal *always* outputs UTF-8.
-
     // XSS using HTML quote encapsulation.
     // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#XSS_using_HTML_quote_encapsulation
     $data[] = array('<SCRIPT a=">" SRC="http://ha.ckers.org/xss.js"></SCRIPT>', '" SRC="http://ha.ckers.org/xss.js"&gt;');
@@ -506,7 +500,6 @@ public function providerTestFilterXss() {
     // This one is irrelevant for Drupal; Drupal doesn't forbid linking to some
     // sites, it only forbids linking to any protocols other than those that are
     // whitelisted.
-
     // Test XSS filtering on data-attributes.
     // @see \Drupal\editor\EditorXssFilter::filterXssDataAttributes()
 
diff --git a/core/modules/field/field.module b/core/modules/field/field.module
index 51b82e9..740861c 100644
--- a/core/modules/field/field.module
+++ b/core/modules/field/field.module
@@ -228,7 +228,6 @@ function field_entity_bundle_delete($entity_type_id, $bundle) {
   // \Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::onDependencyRemoval()
   // because we need to take into account bundles that are not provided by a
   // config entity type so they are not part of the config dependencies.
-
   // Gather a list of all entity reference fields.
   $map = \Drupal::entityManager()->getFieldMapByFieldType('entity_reference');
   $ids = [];
diff --git a/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php b/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
index d781084..47665b8 100644
--- a/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
+++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
@@ -533,7 +533,7 @@ protected function getAllOptionsList(\SimpleXMLElement $element) {
       $options[] = (string) $option['value'];
     }
 
-    // Loops trough all the option groups
+    // Loops trough all the option groups.
     foreach ($element->optgroup as $optgroup) {
       $options = array_merge($this->getAllOptionsList($optgroup), $options);
     }
diff --git a/core/modules/field/src/Tests/EntityReference/EntityReferenceAutoCreateTest.php b/core/modules/field/src/Tests/EntityReference/EntityReferenceAutoCreateTest.php
index 0f35fde..8dcdc3e 100644
--- a/core/modules/field/src/Tests/EntityReference/EntityReferenceAutoCreateTest.php
+++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceAutoCreateTest.php
@@ -210,19 +210,18 @@ public function testMultipleTargetBundles() {
 
     // @todo Re-enable this test when WebTestBase::curlHeaderCallback() provides
     //   a way to catch and assert user-triggered errors.
-
     // Test the case when the field config settings are inconsistent.
-    //unset($handler_settings['auto_create_bundle']);
-    //$field_config->setSetting('handler_settings', $handler_settings);
-    //$field_config->save();
+    // unset($handler_settings['auto_create_bundle']);
+    // $field_config->setSetting('handler_settings', $handler_settings);
+    // $field_config->save();
     //
-    //$this->drupalGet('node/add/' . $this->referencingType);
-    //$error_message = sprintf(
+    // $this->drupalGet('node/add/' . $this->referencingType);
+    // $error_message = sprintf(
     //  "Create referenced entities if they don't already exist option is enabled but a specific destination bundle is not set. You should re-visit and fix the settings of the '%s' (%s) field.",
     //  $field_config->getLabel(),
     //  $field_config->getName()
-    //);
-    //$this->assertErrorLogged($error_message);
+    // );
+    // $this->assertErrorLogged($error_message);
   }
 
 }
diff --git a/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php b/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php
index bfc135e..7faa335 100644
--- a/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php
+++ b/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php
@@ -86,7 +86,7 @@ public function testImportDeleteUninstall() {
     unset($core_extension['module']['telephone']);
     $sync->write('core.extension', $core_extension);
 
-    // Stage the field deletion
+    // Stage the field deletion.
     $sync->delete('field.storage.entity_test.field_tel');
     $sync->delete('field.field.entity_test.entity_test.field_tel');
     $this->drupalGet('admin/config/development/configuration');
diff --git a/core/modules/field/src/Tests/FormTest.php b/core/modules/field/src/Tests/FormTest.php
index 51c80b3..616a21d 100644
--- a/core/modules/field/src/Tests/FormTest.php
+++ b/core/modules/field/src/Tests/FormTest.php
@@ -120,8 +120,7 @@ function testFieldFormSingle() {
     $this->drupalPostForm(NULL, $edit, t('Save'));
     $this->assertRaw(t('%name does not accept the value -1.', array('%name' => $this->field['label'])), 'Field validation fails with invalid input.');
     // TODO : check that the correct field is flagged for error.
-
-    // Create an entity
+    // Create an entity.
     $value = mt_rand(1, 127);
     $edit = array(
       "{$field_name}[0][value]" => $value,
@@ -209,7 +208,7 @@ function testFieldFormSingleRequired() {
     $this->drupalPostForm('entity_test/add', $edit, t('Save'));
     $this->assertRaw(t('@name field is required.', array('@name' => $this->field['label'])), 'Required field with no value fails validation');
 
-    // Create an entity
+    // Create an entity.
     $value = mt_rand(1, 127);
     $edit = array(
       "{$field_name}[0][value]" => $value,
@@ -230,14 +229,13 @@ function testFieldFormSingleRequired() {
     $this->assertRaw(t('@name field is required.', array('@name' => $this->field['label'])), 'Required field with no value fails validation');
   }
 
-//  function testFieldFormMultiple() {
+// Function testFieldFormMultiple() {
 //    $this->field = $this->field_multiple;
 //    $field_name = $this->field['field_name'];
 //    $this->instance['field_name'] = $field_name;
 //    FieldStorageConfig::create($this->field)->save();
 //    FieldConfig::create($this->instance)->save();
 //  }
-
   function testFieldFormUnlimited() {
     $field_storage = $this->fieldStorageUnlimited;
     $field_name = $field_storage['field_name'];
@@ -263,7 +261,6 @@ function testFieldFormUnlimited() {
     $this->assertFieldByName("{$field_name}[1][value]", '', 'New widget is displayed');
     $this->assertNoField("{$field_name}[2][value]", 'No extraneous widget is displayed');
     // TODO : check that non-field inputs are preserved ('title'), etc.
-
     // Yet another time so that we can play with more values -> 3 widgets.
     $this->drupalPostForm(NULL, array(), t('Add another item'));
 
@@ -289,7 +286,7 @@ function testFieldFormUnlimited() {
       $pattern[$weight] = "<input [^>]*value=\"$value\" [^>]*";
     }
 
-    // Press 'add more' button -> 4 widgets
+    // Press 'add more' button -> 4 widgets.
     $this->drupalPostForm(NULL, $edit, t('Add another item'));
     for ($delta = 0; $delta <= $delta_range; $delta++) {
       $this->assertFieldByName("{$field_name}[$delta][value]", $values[$delta], "Widget $delta is displayed and has the right value");
@@ -317,8 +314,7 @@ function testFieldFormUnlimited() {
     // value in the middle.
     // Submit: check that the entity is updated with correct values
     // Re-submit: check that the field can be emptied.
-
-    // Test with several multiple fields in a form
+    // Test with several multiple fields in a form.
   }
 
   /**
@@ -602,7 +598,6 @@ function testHiddenField() {
     $this->field->save();
     // We explicitly do not assign a widget in a form display, so the field
     // stays hidden in forms.
-
     // Display the entity creation form.
     $this->drupalGet($entity_type . '/add');
 
diff --git a/core/modules/field/src/Tests/NestedFormTest.php b/core/modules/field/src/Tests/NestedFormTest.php
index 94ec485..a26a1f8 100644
--- a/core/modules/field/src/Tests/NestedFormTest.php
+++ b/core/modules/field/src/Tests/NestedFormTest.php
@@ -53,7 +53,7 @@ protected function setUp() {
    * Tests Field API form integration within a subform.
    */
   function testNestedFieldForm() {
-    // Add two fields on the 'entity_test'
+    // Add two fields on the 'entity_test'.
     FieldStorageConfig::create($this->fieldStorageSingle)->save();
     FieldStorageConfig::create($this->fieldStorageUnlimited)->save();
     $this->field['field_name'] = 'field_single';
diff --git a/core/modules/field/src/Tests/Number/NumberFieldTest.php b/core/modules/field/src/Tests/Number/NumberFieldTest.php
index 342f6dd..86d1130 100644
--- a/core/modules/field/src/Tests/Number/NumberFieldTest.php
+++ b/core/modules/field/src/Tests/Number/NumberFieldTest.php
@@ -184,7 +184,7 @@ function testNumberIntegerField() {
     $this->assertFieldByName("{$field_name}[0][value]", '', 'Widget is displayed');
     $this->assertRaw('placeholder="4"');
 
-    // Submit a valid integer
+    // Submit a valid integer.
     $value = rand($minimum, $maximum);
     $edit = array(
       "{$field_name}[0][value]" => $value,
@@ -194,7 +194,7 @@ function testNumberIntegerField() {
     $id = $match[1];
     $this->assertText(t('entity_test @id has been created.', array('@id' => $id)), 'Entity was created');
 
-    // Try to set a value below the minimum value
+    // Try to set a value below the minimum value.
     $this->drupalGet('entity_test/add');
     $edit = array(
       "{$field_name}[0][value]" => $minimum - 1,
@@ -202,7 +202,7 @@ function testNumberIntegerField() {
     $this->drupalPostForm(NULL, $edit, t('Save'));
     $this->assertRaw(t('%name must be higher than or equal to %minimum.', array('%name' => $field_name, '%minimum' => $minimum)), 'Correctly failed to save integer value less than minimum allowed value.');
 
-    // Try to set a decimal value
+    // Try to set a decimal value.
     $this->drupalGet('entity_test/add');
     $edit = array(
       "{$field_name}[0][value]" => 1.5,
@@ -210,7 +210,7 @@ function testNumberIntegerField() {
     $this->drupalPostForm(NULL, $edit, t('Save'));
     $this->assertRaw(t('%name is not a valid number.', array('%name' => $field_name)), 'Correctly failed to save decimal value to integer field.');
 
-    // Try to set a value above the maximum value
+    // Try to set a value above the maximum value.
     $this->drupalGet('entity_test/add');
     $edit = array(
       "{$field_name}[0][value]" => $maximum + 1,
diff --git a/core/modules/field/src/Tests/String/StringFieldTest.php b/core/modules/field/src/Tests/String/StringFieldTest.php
index 9284426..64671a9 100644
--- a/core/modules/field/src/Tests/String/StringFieldTest.php
+++ b/core/modules/field/src/Tests/String/StringFieldTest.php
@@ -36,7 +36,6 @@ protected function setUp() {
   }
 
   // Test fields.
-
   /**
    * Test widgets.
    */
diff --git a/core/modules/field/src/Tests/Views/HandlerFieldFieldTest.php b/core/modules/field/src/Tests/Views/HandlerFieldFieldTest.php
index 303eb2f..457aa9e 100644
--- a/core/modules/field/src/Tests/Views/HandlerFieldFieldTest.php
+++ b/core/modules/field/src/Tests/Views/HandlerFieldFieldTest.php
@@ -209,7 +209,7 @@ public function _testMultipleFieldRender() {
     $view->style_plugin->getField(4, $this->fieldStorages[4]->getName());
     $view->destroy();
 
-    // Test delta limit + offset
+    // Test delta limit + offset.
     $this->prepareView($view);
     $view->displayHandlers->get('default')->options['fields'][$field_name]['group_rows'] = TRUE;
     $view->displayHandlers->get('default')->options['fields'][$field_name]['delta_limit'] = 3;
diff --git a/core/modules/field/tests/modules/field_test/field_test.module b/core/modules/field/tests/modules/field_test/field_test.module
index 9c994d6..3818ff8 100644
--- a/core/modules/field/tests/modules/field_test/field_test.module
+++ b/core/modules/field/tests/modules/field_test/field_test.module
@@ -142,7 +142,7 @@ function field_test_query_efq_metadata_test_alter(&$query) {
  * Implements hook_entity_extra_field_info_alter().
  */
 function field_test_entity_extra_field_info_alter(&$info) {
-  // Remove all extra fields from the 'no_fields' content type;
+  // Remove all extra fields from the 'no_fields' content type;.
   unset($info['node']['no_fields']);
 }
 
diff --git a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
index 7380491..4f98871 100644
--- a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
+++ b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
@@ -171,7 +171,7 @@ public function testContentEntityReferenceItem() {
       $this->pass('Assigning an invalid item throws an exception.');
     }
 
-    // Delete terms so we have nothing to reference and try again
+    // Delete terms so we have nothing to reference and try again.
     $term->delete();
     $term2->delete();
     $entity = EntityTest::create(array('name' => $this->randomMachineName()));
@@ -240,7 +240,7 @@ public function testConfigEntityReferenceItem() {
     $this->assertEqual($entity->field_test_taxonomy_vocabulary->entity->id(), $vocabulary2->id());
     $this->assertEqual($entity->field_test_taxonomy_vocabulary->entity->label(), $vocabulary2->label());
 
-    // Delete terms so we have nothing to reference and try again
+    // Delete terms so we have nothing to reference and try again.
     $this->vocabulary->delete();
     $vocabulary2->delete();
     $entity = EntityTest::create(array('name' => $this->randomMachineName()));
diff --git a/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php b/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php
index ba96bc9..818c425 100644
--- a/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php
@@ -127,7 +127,7 @@ function testEntityDisplayBuild() {
     }
 
     // TODO:
-    // - check display order with several fields
+    // - check display order with several fields.
   }
 
   /**
@@ -258,11 +258,11 @@ function testEntityFormDisplayBuildForm() {
     $this->assertEqual($form[$this->fieldTestData->field_name]['widget']['#title'], $this->fieldTestData->field->getLabel(), "First field's form title is {$this->fieldTestData->field->getLabel()}");
     $this->assertEqual($form[$this->fieldTestData->field_name_2]['widget']['#title'], $this->fieldTestData->field_2->getLabel(), "Second field's form title is {$this->fieldTestData->field_2->getLabel()}");
     for ($delta = 0; $delta < $this->fieldTestData->field_storage->getCardinality(); $delta++) {
-      // field_test_widget uses 'textfield'
+      // field_test_widget uses 'textfield'.
       $this->assertEqual($form[$this->fieldTestData->field_name]['widget'][$delta]['value']['#type'], 'textfield', "First field's form delta $delta widget is textfield");
     }
     for ($delta = 0; $delta < $this->fieldTestData->field_storage_2->getCardinality(); $delta++) {
-      // field_test_widget uses 'textfield'
+      // field_test_widget uses 'textfield'.
       $this->assertEqual($form[$this->fieldTestData->field_name_2]['widget'][$delta]['value']['#type'], 'textfield', "Second field's form delta $delta widget is textfield");
     }
 
@@ -280,7 +280,7 @@ function testEntityFormDisplayBuildForm() {
     $this->assertFalse(isset($form[$this->fieldTestData->field_name]), 'The first field does not exist in the form');
     $this->assertEqual($form[$this->fieldTestData->field_name_2]['widget']['#title'], $this->fieldTestData->field_2->getLabel(), "Second field's form title is {$this->fieldTestData->field_2->getLabel()}");
     for ($delta = 0; $delta < $this->fieldTestData->field_storage_2->getCardinality(); $delta++) {
-      // field_test_widget uses 'textfield'
+      // field_test_widget uses 'textfield'.
       $this->assertEqual($form[$this->fieldTestData->field_name_2]['widget'][$delta]['value']['#type'], 'textfield', "Second field's form delta $delta widget is textfield");
     }
   }
diff --git a/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php b/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
index b641952..82aa95e 100644
--- a/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
@@ -234,25 +234,25 @@ function testFieldAttachDelete() {
       ->create(array('type' => $this->fieldTestData->field->getTargetBundle()));
     $vids = array();
 
-    // Create revision 0
+    // Create revision 0.
     $values = $this->_generateTestFieldValues($cardinality);
     $entity->{$this->fieldTestData->field_name} = $values;
     $entity->save();
     $vids[] = $entity->getRevisionId();
 
-    // Create revision 1
+    // Create revision 1.
     $entity->setNewRevision();
     $entity->save();
     $vids[] = $entity->getRevisionId();
 
-    // Create revision 2
+    // Create revision 2.
     $entity->setNewRevision();
     $entity->save();
     $vids[] = $entity->getRevisionId();
     $controller = $this->container->get('entity.manager')->getStorage($entity->getEntityTypeId());
     $controller->resetCache();
 
-    // Confirm each revision loads
+    // Confirm each revision loads.
     foreach ($vids as $vid) {
       $revision = $controller->loadRevision($vid);
       $this->assertEqual(count($revision->{$this->fieldTestData->field_name}), $cardinality, "The test entity revision $vid has $cardinality values.");
@@ -267,12 +267,12 @@ function testFieldAttachDelete() {
       $this->assertEqual(count($revision->{$this->fieldTestData->field_name}), $cardinality, "The test entity revision $vid has $cardinality values.");
     }
 
-    // Confirm the current revision still loads
+    // Confirm the current revision still loads.
     $controller->resetCache();
     $current = $controller->load($entity->id());
     $this->assertEqual(count($current->{$this->fieldTestData->field_name}), $cardinality, "The test entity current revision has $cardinality values.");
 
-    // Delete all field data, confirm nothing loads
+    // Delete all field data, confirm nothing loads.
     $entity->delete();
     $controller->resetCache();
     foreach (array(0, 1, 2) as $vid) {
@@ -325,7 +325,7 @@ function testEntityDeleteBundle() {
     $this->fieldTestData->field_definition['bundle'] = $new_bundle;
     FieldConfig::create($this->fieldTestData->field_definition)->save();
 
-    // Create a second field for the test bundle
+    // Create a second field for the test bundle.
     $field_name = Unicode::strtolower($this->randomMachineName() . '_field_name');
     $field_storage = array(
       'field_name' => $field_name,
@@ -344,7 +344,7 @@ function testEntityDeleteBundle() {
     );
     FieldConfig::create($field)->save();
 
-    // Save an entity with data for both fields
+    // Save an entity with data for both fields.
     $entity = $this->container->get('entity_type.manager')
       ->getStorage($entity_type)
       ->create(array('type' => $this->fieldTestData->field->getTargetBundle()));
@@ -353,14 +353,14 @@ function testEntityDeleteBundle() {
     $entity->{$field_name} = $this->_generateTestFieldValues(1);
     $entity = $this->entitySaveReload($entity);
 
-    // Verify the fields are present on load
+    // Verify the fields are present on load.
     $this->assertEqual(count($entity->{$this->fieldTestData->field_name}), 4, 'First field got loaded');
     $this->assertEqual(count($entity->{$field_name}), 1, 'Second field got loaded');
 
     // Delete the bundle.
     entity_test_delete_bundle($this->fieldTestData->field->getTargetBundle(), $entity_type);
 
-    // Verify no data gets loaded
+    // Verify no data gets loaded.
     $controller = $this->container->get('entity.manager')->getStorage($entity->getEntityTypeId());
     $controller->resetCache();
     $entity= $controller->load($entity->id());
diff --git a/core/modules/field/tests/src/Kernel/FieldCrudTest.php b/core/modules/field/tests/src/Kernel/FieldCrudTest.php
index 6f6a285..74deae6 100644
--- a/core/modules/field/tests/src/Kernel/FieldCrudTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldCrudTest.php
@@ -58,8 +58,7 @@ function setUp() {
   // - a full fledged $field structure, check that all the values are there
   // - a minimal $field structure, check all default values are set
   // defer actual $field comparison to a helper function, used for the two cases above,
-  // and for testUpdateField
-
+  // and for testUpdateField.
   /**
    * Test the creation of a field.
    */
@@ -213,7 +212,6 @@ function testDeleteField() {
     // TODO: Test deletion of the data stored in the field also.
     // Need to check that data for a 'deleted' field / storage doesn't get loaded
     // Need to check data marked deleted is cleaned on cron (not implemented yet...)
-
     // Create two fields for the same field storage so we can test that only one
     // is deleted.
     FieldConfig::create($this->fieldDefinition)->save();
diff --git a/core/modules/field/tests/src/Kernel/FieldImportDeleteTest.php b/core/modules/field/tests/src/Kernel/FieldImportDeleteTest.php
index 220aa46..699cd18 100644
--- a/core/modules/field/tests/src/Kernel/FieldImportDeleteTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldImportDeleteTest.php
@@ -35,8 +35,7 @@ public function testImportDelete() {
     // - field.storage.entity_test.field_test_import_2
     // - field.field.entity_test.entity_test.field_test_import
     // - field.field.entity_test.entity_test.field_test_import_2
-    // - field.field.entity_test.test_bundle.field_test_import_2
-
+    // - field.field.entity_test.test_bundle.field_test_import_2.
     $field_name = 'field_test_import';
     $field_storage_id = "entity_test.$field_name";
     $field_name_2 = 'field_test_import_2';
diff --git a/core/modules/field/tests/src/Kernel/FieldImportDeleteUninstallTest.php b/core/modules/field/tests/src/Kernel/FieldImportDeleteUninstallTest.php
index 1f63e14..480eaf7 100644
--- a/core/modules/field/tests/src/Kernel/FieldImportDeleteUninstallTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldImportDeleteUninstallTest.php
@@ -88,7 +88,7 @@ public function testImportDeleteUninstall() {
     unset($core_extension['module']['telephone']);
     $sync->write('core.extension', $core_extension);
 
-    // Stage the field deletion
+    // Stage the field deletion.
     $sync->delete('field.storage.entity_test.field_test');
     $sync->delete('field.field.entity_test.entity_test.field_test');
 
diff --git a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
index da1948c..abe80ce 100644
--- a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
@@ -26,8 +26,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
   // TODO : test creation with
   // - a full fledged $field structure, check that all the values are there
   // - a minimal $field structure, check all default values are set
-  // defer actual $field comparison to a helper function, used for the two cases above
-
+  // defer actual $field comparison to a helper function, used for the two cases above.
   /**
    * Test the creation of a field storage.
    */
@@ -286,7 +285,6 @@ function testIndexes() {
    */
   function testDelete() {
     // TODO: Also test deletion of the data stored in the field ?
-
     // Create two fields (so we can test that only one is deleted).
     $field_storage_definition = array(
       'field_name' => 'field_1',
@@ -350,13 +348,13 @@ function testDelete() {
     $field = FieldConfig::load('entity_test.' . $field_definition['bundle'] . '.' . $field_definition['field_name'] );
     $this->assertTrue(!empty($field) && !$field->isDeleted(), 'A new field for a previously used field name is created.');
 
-    // Save an entity with data for the field
+    // Save an entity with data for the field.
     $entity = EntityTest::create();
     $values[0]['value'] = mt_rand(1, 127);
     $entity->{$field_storage->getName()}->value = $values[0]['value'];
     $entity = $this->entitySaveReload($entity);
 
-    // Verify the field is present on load
+    // Verify the field is present on load.
     $this->assertIdentical(count($entity->{$field_storage->getName()}), count($values), "Data in previously deleted field saves and loads correctly");
     foreach ($values as $delta => $value) {
       $this->assertEqual($entity->{$field_storage->getName()}[$delta]->value, $values[$delta]['value'], "Data in previously deleted field saves and loads correctly");
diff --git a/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php b/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php
index dbaf441..39b0ce8 100644
--- a/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php
+++ b/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php
@@ -129,7 +129,7 @@ protected function setUp() {
                 array (
                   'label' => 'hidden',
                   'type' => 'text_summary_or_trimmed',
-                  // settings is always expected to be an array. Making it NULL
+                  // Settings is always expected to be an array. Making it NULL
                   // causes a fatal.
                   'settings' => NULL,
                   'module' => 'text',
diff --git a/core/modules/field/tests/src/Kernel/Number/NumberItemTest.php b/core/modules/field/tests/src/Kernel/Number/NumberItemTest.php
index 7b66aa3..6171337 100644
--- a/core/modules/field/tests/src/Kernel/Number/NumberItemTest.php
+++ b/core/modules/field/tests/src/Kernel/Number/NumberItemTest.php
@@ -93,7 +93,7 @@ public function testNumberItem() {
     $this->assertEqual($entity->field_float->value, $new_float);
     $this->assertEqual($entity->field_decimal->value, $new_decimal);
 
-    /// Test sample item generation.
+    // Test sample item generation.
     $entity = EntityTest::create();
     $entity->field_integer->generateSampleItems();
     $entity->field_float->generateSampleItems();
diff --git a/core/modules/field/tests/src/Kernel/Timestamp/TimestampFormatterTest.php b/core/modules/field/tests/src/Kernel/Timestamp/TimestampFormatterTest.php
index ee97cab..13f5fae 100644
--- a/core/modules/field/tests/src/Kernel/Timestamp/TimestampFormatterTest.php
+++ b/core/modules/field/tests/src/Kernel/Timestamp/TimestampFormatterTest.php
@@ -154,7 +154,7 @@ public function testTimestampAgoFormatter() {
       $granularity = $settings['granularity'];
       $request_time = \Drupal::requestStack()->getCurrentRequest()->server->get('REQUEST_TIME');
 
-      // Test a timestamp in the past
+      // Test a timestamp in the past.
       $value = $request_time - 87654321;
       $expected = SafeMarkup::format($past_format, ['@interval' => \Drupal::service('date.formatter')->formatTimeDiffSince($value, ['granularity' => $granularity])]);
 
@@ -169,7 +169,7 @@ public function testTimestampAgoFormatter() {
       $this->renderEntityFields($entity, $this->display);
       $this->assertRaw($expected);
 
-      // Test a timestamp in the future
+      // Test a timestamp in the future.
       $value = $request_time + 87654321;
       $expected = SafeMarkup::format($future_format, ['@interval' => \Drupal::service('date.formatter')->formatTimeDiffUntil($value, ['granularity' => $granularity])]);
 
diff --git a/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php b/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php
index 59469ac..9495347 100644
--- a/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php
+++ b/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php
@@ -86,7 +86,7 @@ function testDeleteField() {
 
     // Check that the field was deleted.
     $this->assertNull(FieldConfig::loadByName('node', $type_name1, $field_name), 'Field was deleted.');
-    // Check that the field storage was not deleted
+    // Check that the field storage was not deleted.
     $this->assertNotNull(FieldStorageConfig::loadByName('node', $field_name), 'Field storage was not deleted.');
 
     // Check the config dependencies of the first field.
diff --git a/core/modules/field_ui/src/Tests/ManageDisplayTest.php b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
index 35ceb3c..4db42ef 100644
--- a/core/modules/field_ui/src/Tests/ManageDisplayTest.php
+++ b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
@@ -160,7 +160,7 @@ function testFormatterUI() {
     $this->drupalPostAjaxForm(NULL, $edit, array('op' => t('Refresh')));
     $this->assertFieldByName('field_test_settings_edit');
 
-    // Make sure we can save the third party settings when there are no settings available
+    // Make sure we can save the third party settings when there are no settings available.
     $this->drupalPostAjaxForm(NULL, array(), "field_test_settings_edit");
     $this->drupalPostAjaxForm(NULL, $edit, "field_test_plugin_settings_update");
 
@@ -527,7 +527,7 @@ protected function getAllOptionsList(\SimpleXMLElement $element) {
       $options[] = (string) $option['value'];
     }
 
-    // Loops trough all the option groups
+    // Loops trough all the option groups.
     foreach ($element->optgroup as $optgroup) {
       $options = array_merge($this->getAllOptionsList($optgroup), $options);
     }
diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
index 6644a79..9962427 100644
--- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php
+++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
@@ -401,7 +401,7 @@ function testDefaultValue() {
     $field = FieldConfig::loadByName('node', $this->contentType, $field_name);
     $this->assertEqual($field->getDefaultValueLiteral(), array(array('value' => 1)), 'The default value was correctly saved.');
 
-    // Check that the default value shows up in the form
+    // Check that the default value shows up in the form.
     $this->drupalGet($admin_path);
     $this->assertFieldById($element_id, '1', 'The default value widget was displayed with the correct value.');
 
@@ -459,7 +459,7 @@ function testDeleteField() {
 
     // Check that the field was deleted.
     $this->assertNull(FieldConfig::loadByName('node', $this->contentType, $this->fieldName), 'Field was deleted.');
-    // Check that the field storage was not deleted
+    // Check that the field storage was not deleted.
     $this->assertNotNull(FieldStorageConfig::loadByName('node', $this->fieldName), 'Field storage was not deleted.');
 
     // Delete the second field.
@@ -639,7 +639,7 @@ function testDeleteTaxonomyField() {
    * Tests that help descriptions render valid HTML.
    */
   function testHelpDescriptions() {
-    // Create an image field
+    // Create an image field.
     FieldStorageConfig::create(array(
       'field_name' => 'field_image',
       'entity_type' => 'node',
diff --git a/core/modules/file/file.module b/core/modules/file/file.module
index 310eb26..4cd5547 100644
--- a/core/modules/file/file.module
+++ b/core/modules/file/file.module
@@ -756,7 +756,7 @@ function file_save_upload($form_field_name, $validators = array(), $destination
           break;
         }
 
-        // Unknown error
+        // Unknown error.
       default:
         drupal_set_message(t('The file %file could not be saved. An unknown error has occurred.', array('%file' => $file_info->getFilename())), 'error');
         $files[$i] = FALSE;
@@ -862,7 +862,7 @@ function file_save_upload($form_field_name, $validators = array(), $destination
         ),
       );
       // @todo Add support for render arrays in drupal_set_message()? See
-      //  https://www.drupal.org/node/2505497.
+      //   https://www.drupal.org/node/2505497.
       drupal_set_message(\Drupal::service('renderer')->renderPlain($message), 'error');
       $files[$i] = FALSE;
       continue;
@@ -964,7 +964,7 @@ function file_tokens($type, $tokens, array $data, array $options, BubbleableMeta
           $replacements[$original] = $file->id();
           break;
 
-        // Essential file data
+        // Essential file data.
         case 'name':
           $replacements[$original] = $file->getFilename();
           break;
@@ -1425,7 +1425,7 @@ function file_icon_map($mime_type) {
     case 'application/x-pef-executable':
       return 'application-x-executable';
 
-    // Acrobat types
+    // Acrobat types.
     case 'application/pdf':
     case 'application/x-pdf':
     case 'applications/vnd.pdf':
diff --git a/core/modules/file/src/FileViewsData.php b/core/modules/file/src/FileViewsData.php
index cf24062..d35f7ee 100644
--- a/core/modules/file/src/FileViewsData.php
+++ b/core/modules/file/src/FileViewsData.php
@@ -111,7 +111,6 @@ public function getViewsData() {
     // relationships are type-restricted in the joins declared above, and
     // file->entity relationships are type-restricted in the relationship
     // declarations below.
-
     // Describes relationships between files and nodes.
     $data['file_usage']['file_to_node'] = array(
       'title' => $this->t('Content'),
diff --git a/core/modules/file/src/Plugin/migrate/destination/EntityFile.php b/core/modules/file/src/Plugin/migrate/destination/EntityFile.php
index 981706f..a623dee 100644
--- a/core/modules/file/src/Plugin/migrate/destination/EntityFile.php
+++ b/core/modules/file/src/Plugin/migrate/destination/EntityFile.php
@@ -252,14 +252,14 @@ protected function isLocalUri($uri) {
    *   The urlencoded filename.
    */
   protected function urlencode($filename) {
-    // Only apply to a full URL
+    // Only apply to a full URL.
     if ($this->configuration['urlencode'] && strpos($filename, '://')) {
       $components = explode('/', $filename);
       foreach ($components as $key => $component) {
         $components[$key] = rawurlencode($component);
       }
       $filename = implode('/', $components);
-      // Actually, we don't want certain characters encoded
+      // Actually, we don't want certain characters encoded.
       $filename = str_replace('%3A', ':', $filename);
       $filename = str_replace('%3F', '?', $filename);
       $filename = str_replace('%26', '&', $filename);
diff --git a/core/modules/file/src/Plugin/migrate/source/d7/File.php b/core/modules/file/src/Plugin/migrate/source/d7/File.php
index aa920bd..cb93ede 100644
--- a/core/modules/file/src/Plugin/migrate/source/d7/File.php
+++ b/core/modules/file/src/Plugin/migrate/source/d7/File.php
@@ -53,7 +53,7 @@ public function query() {
       }
       $schemes = array_map([$this->getDatabase(), 'escapeLike'], $schemes);
 
-      // uri LIKE 'public://%' OR uri LIKE 'private://%'
+      // Uri LIKE 'public://%' OR uri LIKE 'private://%'.
       $conditions = new Condition('OR');
       foreach ($schemes as $scheme) {
         $conditions->condition('uri', $scheme . '%', 'LIKE');
diff --git a/core/modules/file/src/Tests/DownloadTest.php b/core/modules/file/src/Tests/DownloadTest.php
index 745743c..a9a6d05 100644
--- a/core/modules/file/src/Tests/DownloadTest.php
+++ b/core/modules/file/src/Tests/DownloadTest.php
@@ -49,7 +49,6 @@ public function testPrivateFileTransferWithoutPageCache() {
    */
   protected function doPrivateFileTransferTest() {
     // Set file downloads to private so handler functions get called.
-
     // Create a file.
     $contents = $this->randomMachineName(8);
     $file = $this->createFile(NULL, $contents, 'private');
diff --git a/core/modules/file/src/Tests/FileFieldValidateTest.php b/core/modules/file/src/Tests/FileFieldValidateTest.php
index 9d43060..cc6f352 100644
--- a/core/modules/file/src/Tests/FileFieldValidateTest.php
+++ b/core/modules/file/src/Tests/FileFieldValidateTest.php
@@ -72,7 +72,7 @@ function testFileMaxSize() {
     $this->createFileField($field_name, 'node', $type_name, array(), array('required' => '1'));
 
     $small_file = $this->getTestFile('text', 131072); // 128KB.
-    $large_file = $this->getTestFile('text', 1310720); // 1.2MB
+    $large_file = $this->getTestFile('text', 1310720); // 1.2MB.
 
     // Test uploading both a large and small file with different increments.
     $sizes = array(
diff --git a/core/modules/file/src/Tests/FileFieldWidgetTest.php b/core/modules/file/src/Tests/FileFieldWidgetTest.php
index a6ca642..463eefb 100644
--- a/core/modules/file/src/Tests/FileFieldWidgetTest.php
+++ b/core/modules/file/src/Tests/FileFieldWidgetTest.php
@@ -476,7 +476,7 @@ public function testWidgetElement() {
     // If the field has at least a item, the table should be visible.
     $this->assertIdentical(count($elements), 1);
 
-    // Test for AJAX error when using progress bar on file field widget
+    // Test for AJAX error when using progress bar on file field widget.
     $key = $this->randomMachineName();
     $this->drupalPost('file/progress/' . $key, 'application/json', []);
     $this->assertNoResponse(500, t('No AJAX error when using progress bar on file field widget'));
diff --git a/core/modules/file/tests/file_test/file_test.module b/core/modules/file/tests/file_test/file_test.module
index 7b25af4..2733792 100644
--- a/core/modules/file/tests/file_test/file_test.module
+++ b/core/modules/file/tests/file_test/file_test.module
@@ -20,7 +20,7 @@
  * @see file_test_reset()
  */
 function file_test_reset() {
-  // Keep track of calls to these hooks
+  // Keep track of calls to these hooks.
   $results = array(
     'load' => array(),
     'validate' => array(),
diff --git a/core/modules/file/tests/src/Kernel/DeleteTest.php b/core/modules/file/tests/src/Kernel/DeleteTest.php
index a6577d8..7369201 100644
--- a/core/modules/file/tests/src/Kernel/DeleteTest.php
+++ b/core/modules/file/tests/src/Kernel/DeleteTest.php
@@ -63,7 +63,7 @@ function testInUse() {
       ->execute();
     \Drupal::service('cron')->run();
 
-    // file_cron() loads
+    // file_cron() loads.
     $this->assertFileHooksCalled(array('delete'));
     $this->assertFalse(file_exists($file->getFileUri()), 'File has been deleted after its last usage was removed.');
     $this->assertFalse(File::load($file->id()), 'File was removed from the database.');
diff --git a/core/modules/file/tests/src/Kernel/FileItemTest.php b/core/modules/file/tests/src/Kernel/FileItemTest.php
index 8827fb0..f34ad8c 100644
--- a/core/modules/file/tests/src/Kernel/FileItemTest.php
+++ b/core/modules/file/tests/src/Kernel/FileItemTest.php
@@ -75,7 +75,7 @@ public function testFileItem() {
     $handler_id = $field_definition->getSetting('handler');
     $this->assertEqual($handler_id, 'default:file');
 
-    // Create a test entity with the
+    // Create a test entity with the.
     $entity = EntityTest::create();
     $entity->file_test->target_id = $this->file->id();
     $entity->file_test->display = 1;
diff --git a/core/modules/file/tests/src/Kernel/SpaceUsedTest.php b/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
index 95efbaf..45b3ef2 100644
--- a/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
+++ b/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
@@ -59,7 +59,7 @@ function testFileSpaceUsed() {
     $this->assertEqual($file->spaceUsed(3), 300);
     $this->assertEqual($file->spaceUsed(), 370);
 
-    // Test the status fields
+    // Test the status fields.
     $this->assertEqual($file->spaceUsed(NULL, 0), 4);
     $this->assertEqual($file->spaceUsed(NULL, FILE_STATUS_PERMANENT), 370);
 
diff --git a/core/modules/filter/filter.filter_html.admin.js b/core/modules/filter/filter.filter_html.admin.js
index 7ddca90..027dcf4 100644
--- a/core/modules/filter/filter.filter_html.admin.js
+++ b/core/modules/filter/filter.filter_html.admin.js
@@ -185,7 +185,7 @@
       // - any tags in editorRequiredTags but not in userAllowedTags (i.e. tags
       //   that are additionally going to be allowed)
       // - any tags in editorRequiredTags that already exists in userAllowedTags
-      //   but does not allow all attributes or attribute values
+      //   but does not allow all attributes or attribute values.
       var autoAllowedTags = {};
       for (tag in editorRequiredTags) {
         // If userAllowedTags does not contain a rule for this editor-required
diff --git a/core/modules/filter/filter.module b/core/modules/filter/filter.module
index d42c81a..148e646 100644
--- a/core/modules/filter/filter.module
+++ b/core/modules/filter/filter.module
@@ -486,18 +486,18 @@ function _filter_url($text, $filter) {
 
   // Allow URL paths to contain balanced parens
   // 1. Used in Wikipedia URLs like /Primer_(film)
-  // 2. Used in IIS sessions like /S(dfd346)/
+  // 2. Used in IIS sessions like /S(dfd346)/.
   $valid_url_balanced_parens = '\('. $valid_url_path_characters . '+\)';
 
   // Valid end-of-path characters (so /foo. does not gobble the period).
-  // 1. Allow =&# for empty URL parameters and other URL-join artifacts
+  // 1. Allow =&# for empty URL parameters and other URL-join artifacts.
   $valid_url_ending_characters = '[\p{L}\p{M}\p{N}:_+~#=/]|(?:' . $valid_url_balanced_parens . ')';
 
   $valid_url_query_chars = '[a-zA-Z0-9!?\*\'@\(\);:&=\+\$\/%#\[\]\-_\.,~|]';
   $valid_url_query_ending_chars = '[a-zA-Z0-9_&=#\/]';
 
-  //full path
-  //and allow @ in a url, but only in the middle. Catch things like http://example.com/@user/
+  // Full path
+  // and allow @ in a url, but only in the middle. Catch things like http://example.com/@user/
   $valid_url_path = '(?:(?:'.$valid_url_path_characters . '*(?:'.$valid_url_balanced_parens .$valid_url_path_characters . '*)*'. $valid_url_ending_characters . ')|(?:@' . $valid_url_path_characters . '+\/))';
 
   // Prepare domain name pattern.
@@ -576,7 +576,7 @@ function _filter_url($text, $filter) {
     }
 
     $text = implode($chunks);
-    // Revert to the original comment contents
+    // Revert to the original comment contents.
     _filter_url_escape_comments('', FALSE);
     $text = preg_replace_callback('`<!--(.*?)-->`', '_filter_url_escape_comments', $text);
   }
@@ -691,14 +691,14 @@ function _filter_url_trim($text, $length = NULL) {
  * Based on: http://photomatt.net/scripts/autop
  */
 function _filter_autop($text) {
-  // All block level tags
+  // All block level tags.
   $block = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|map|area|blockquote|address|math|input|p|h[1-6]|fieldset|legend|hr|article|aside|details|figcaption|figure|footer|header|hgroup|menu|nav|section|summary)';
 
   // Split at opening and closing PRE, SCRIPT, STYLE, OBJECT, IFRAME tags
   // and comments. We don't apply any processing to the contents of these tags
   // to avoid messing up code. We look for matched pairs and allow basic
   // nesting. For example:
-  // "processed <pre> ignored <script> ignored </script> ignored </pre> processed"
+  // "processed <pre> ignored <script> ignored </script> ignored </pre> processed".
   $chunks = preg_split('@(<!--.*?-->|</?(?:pre|script|style|object|iframe|!--)[^>]*>)@i', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
   // Note: PHP ensures the array consists of alternating delimiters and literals
   // and begins and ends with a literal (inserting NULL as required).
@@ -729,20 +729,20 @@ function _filter_autop($text) {
       }
     }
     elseif (!$ignore) {
-      $chunk = preg_replace('|\n*$|', '', $chunk) . "\n\n"; // just to make things a little easier, pad the end
+      $chunk = preg_replace('|\n*$|', '', $chunk) . "\n\n"; // Just to make things a little easier, pad the end.
       $chunk = preg_replace('|<br />\s*<br />|', "\n\n", $chunk);
       $chunk = preg_replace('!(<' . $block . '[^>]*>)!', "\n$1", $chunk); // Space things out a little
       $chunk = preg_replace('!(</' . $block . '>)!', "$1\n\n", $chunk); // Space things out a little
-      $chunk = preg_replace("/\n\n+/", "\n\n", $chunk); // take care of duplicates
+      $chunk = preg_replace("/\n\n+/", "\n\n", $chunk); // take care of duplicates.
       $chunk = preg_replace('/^\n|\n\s*\n$/', '', $chunk);
-      $chunk = '<p>' . preg_replace('/\n\s*\n\n?(.)/', "</p>\n<p>$1", $chunk) . "</p>\n"; // make paragraphs, including one at the end
-      $chunk = preg_replace("|<p>(<li.+?)</p>|", "$1", $chunk); // problem with nested lists
+      $chunk = '<p>' . preg_replace('/\n\s*\n\n?(.)/', "</p>\n<p>$1", $chunk) . "</p>\n"; // Make paragraphs, including one at the end
+      $chunk = preg_replace("|<p>(<li.+?)</p>|", "$1", $chunk); // problem with nested lists.
       $chunk = preg_replace('|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $chunk);
       $chunk = str_replace('</blockquote></p>', '</p></blockquote>', $chunk);
-      $chunk = preg_replace('|<p>\s*</p>\n?|', '', $chunk); // under certain strange conditions it could create a P of entirely whitespace
+      $chunk = preg_replace('|<p>\s*</p>\n?|', '', $chunk); // Under certain strange conditions it could create a P of entirely whitespace.
       $chunk = preg_replace('!<p>\s*(</?' . $block . '[^>]*>)!', "$1", $chunk);
       $chunk = preg_replace('!(</?' . $block . '[^>]*>)\s*</p>!', "$1", $chunk);
-      $chunk = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $chunk); // make line breaks
+      $chunk = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $chunk); // Make line breaks.
       $chunk = preg_replace('!(</?' . $block . '[^>]*>)\s*<br />!', "$1", $chunk);
       $chunk = preg_replace('!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)>)!', '$1', $chunk);
       $chunk = preg_replace('/&([^#])(?![A-Za-z0-9]{1,8};)/', '&amp;$1', $chunk);
diff --git a/core/modules/filter/src/FilterFormatFormBase.php b/core/modules/filter/src/FilterFormatFormBase.php
index c1924ed..a994846 100644
--- a/core/modules/filter/src/FilterFormatFormBase.php
+++ b/core/modules/filter/src/FilterFormatFormBase.php
@@ -111,7 +111,7 @@ public function form(array $form, FormStateInterface $form_state) {
     // Filter order (tabledrag).
     $form['filters']['order'] = array(
       '#type' => 'table',
-      // For filter.admin.js
+      // For filter.admin.js.
       '#attributes' => array('id' => 'filter-order'),
       '#title' => $this->t('Filter processing order'),
       '#tabledrag' => array(
diff --git a/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php b/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
index 4b3684b..44dc16d 100644
--- a/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
@@ -19,7 +19,6 @@ protected function setUp() {
 
     // Drupal\filter\FilterPermissions::permissions() builds a URL to output
     // a link in the description.
-
     $this->installEntitySchema('user');
 
     // Install filter_test module, which ships with custom default format.
diff --git a/core/modules/filter/tests/src/Kernel/FilterUnitTest.php b/core/modules/filter/tests/src/Kernel/FilterUnitTest.php
index c4744bb..e45ea76 100644
--- a/core/modules/filter/tests/src/Kernel/FilterUnitTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterUnitTest.php
@@ -555,7 +555,6 @@ function testUrlFilter() {
     // @todo Possible categories:
     // - absolute, mail, partial
     // - characters/encoding, surrounding markup, security
-
     // Create a email that is too long.
     $long_email = str_repeat('a', 254) . '@example.com';
     $too_long_email = str_repeat('b', 255) . '@example.com';
diff --git a/core/modules/forum/src/Tests/ForumTest.php b/core/modules/forum/src/Tests/ForumTest.php
index 04e5ff4..5aae4e7 100644
--- a/core/modules/forum/src/Tests/ForumTest.php
+++ b/core/modules/forum/src/Tests/ForumTest.php
@@ -118,9 +118,9 @@ protected function setUp() {
    * Tests forum functionality through the admin and user interfaces.
    */
   function testForum() {
-    //Check that the basic forum install creates a default forum topic
+    // Check that the basic forum install creates a default forum topic.
     $this->drupalGet('/forum');
-    // Look for the "General discussion" default forum
+    // Look for the "General discussion" default forum.
     $this->assertRaw(t('<a href="'. Url::fromRoute('forum.page', ['taxonomy_term' => 1])->toString() .'">General discussion</a>'), "Found the default forum at the /forum listing");
 
     // Check the presence of expected cache tags.
diff --git a/core/modules/history/history.views.inc b/core/modules/history/history.views.inc
index 4b98136..d4a8387 100644
--- a/core/modules/history/history.views.inc
+++ b/core/modules/history/history.views.inc
@@ -9,8 +9,7 @@
  * Implements hook_views_data().
  */
 function history_views_data() {
-  // History table
-
+  // History table.
   // We're actually defining a specific instance of the table, so let's
   // alias it so that we can later add the real table for other purposes if we
   // need it.
diff --git a/core/modules/history/src/Plugin/views/filter/HistoryUserTimestamp.php b/core/modules/history/src/Plugin/views/filter/HistoryUserTimestamp.php
index 92e1acd..392a105 100644
--- a/core/modules/history/src/Plugin/views/filter/HistoryUserTimestamp.php
+++ b/core/modules/history/src/Plugin/views/filter/HistoryUserTimestamp.php
@@ -67,7 +67,6 @@ public function query() {
 
     // Hey, Drupal kills old history, so nodes that haven't been updated
     // since HISTORY_READ_LIMIT are bzzzzzzzt outta here!
-
     $limit = REQUEST_TIME - HISTORY_READ_LIMIT;
 
     $this->ensureMyTable();
diff --git a/core/modules/image/image.module b/core/modules/image/image.module
index 7f8314a..623f6b6 100644
--- a/core/modules/image/image.module
+++ b/core/modules/image/image.module
@@ -173,7 +173,7 @@ function image_file_download($uri) {
   if (strpos($path, 'styles/') === 0) {
     $args = explode('/', $path);
 
-    // Discard "styles", style name, and scheme from the path
+    // Discard "styles", style name, and scheme from the path.
     $args = array_slice($args, 3);
 
     // Then the remaining parts are the path to the image.
diff --git a/core/modules/image/src/Tests/ImageAdminStylesTest.php b/core/modules/image/src/Tests/ImageAdminStylesTest.php
index 4b7ff43..6cc8838 100644
--- a/core/modules/image/src/Tests/ImageAdminStylesTest.php
+++ b/core/modules/image/src/Tests/ImageAdminStylesTest.php
@@ -97,7 +97,6 @@ function testStyle() {
     );
 
     // Add style form.
-
     $edit = array(
       'name' => $style_name,
       'label' => $style_label,
@@ -112,7 +111,6 @@ function testStyle() {
     $this->assertLinkByHref($style_path . '/delete');
 
     // Add effect form.
-
     // Add each sample effect to the style.
     foreach ($effect_edits as $effect => $edit) {
       $edit_data = array();
@@ -161,7 +159,6 @@ function testStyle() {
     }
 
     // Image style overview form (ordering and renaming).
-
     // Confirm the order of effects is maintained according to the order we
     // added the fields.
     $effect_edits_order = array_keys($effect_edits);
@@ -224,7 +221,6 @@ function testStyle() {
     $this->assertTrue($order_correct, 'The order of the effects is correctly set by default.');
 
     // Image effect deletion form.
-
     // Create an image to make sure it gets flushed after deleting an effect.
     $image_path = $this->createSampleImage($style);
     $this->assertEqual($this->getImageCount($style), 1, format_string('Image style %style image %file successfully generated.', array('%style' => $style->label(), '%file' => $image_path)));
@@ -261,7 +257,6 @@ function testStyle() {
     $this->assertEqual(count($style->getEffects()), 6, 'Rotate effect with transparent background was added.');
 
     // Style deletion form.
-
     // Delete the style.
     $this->drupalPostForm($style_path . '/delete', array(), t('Delete'));
 
@@ -272,7 +267,6 @@ function testStyle() {
     $this->assertFalse(ImageStyle::load($style_name), format_string('Image style %style successfully deleted.', array('%style' => $style->label())));
 
     // Test empty text when there are no image styles.
-
     // Delete all image styles.
     foreach (ImageStyle::loadMultiple() as $image_style) {
       $image_style->delete();
diff --git a/core/modules/image/src/Tests/ImageFieldDisplayTest.php b/core/modules/image/src/Tests/ImageFieldDisplayTest.php
index 666a791..cf3a65b 100644
--- a/core/modules/image/src/Tests/ImageFieldDisplayTest.php
+++ b/core/modules/image/src/Tests/ImageFieldDisplayTest.php
@@ -68,7 +68,7 @@ function _testImageFieldFormatters($scheme) {
     $this->drupalPostAjaxForm(NULL, array(), "{$field_name}_settings_edit");
     $this->assertNoLinkByHref(\Drupal::url('entity.image_style.collection'), 'Link to image styles configuration is absent when permissions are insufficient');
 
-    // Restore 'administer image styles' permission to testing admin user
+    // Restore 'administer image styles' permission to testing admin user.
     user_role_change_permissions(reset($admin_user_roles), array('administer image styles' => TRUE));
 
     // Create a new node with an image attached.
@@ -239,7 +239,6 @@ function testImageFieldSettings() {
 
     // We have to create the article first and then edit it because the alt
     // and title fields do not display until the image has been attached.
-
     // Create alt text for the image.
     $alt = $this->randomMachineName();
 
@@ -372,7 +371,6 @@ function testImageFieldDefaultImage() {
 
     // Create a node with an image attached and ensure that the default image
     // is not displayed.
-
     // Create alt text for the image.
     $alt = $this->randomMachineName();
 
diff --git a/core/modules/image/src/Tests/ImageFieldWidgetTest.php b/core/modules/image/src/Tests/ImageFieldWidgetTest.php
index ea2332d..49b04af 100644
--- a/core/modules/image/src/Tests/ImageFieldWidgetTest.php
+++ b/core/modules/image/src/Tests/ImageFieldWidgetTest.php
@@ -13,7 +13,7 @@ class ImageFieldWidgetTest extends ImageFieldTestBase {
    * Tests file widget element.
    */
   public function testWidgetElement() {
-     // Check for image widget in add/node/article page
+     // Check for image widget in add/node/article page.
     $field_name = strtolower($this->randomMachineName());
     $min_resolution = 50;
     $max_resolution = 100;
diff --git a/core/modules/language/src/LanguageNegotiator.php b/core/modules/language/src/LanguageNegotiator.php
index 3257567..8e4aad7 100644
--- a/core/modules/language/src/LanguageNegotiator.php
+++ b/core/modules/language/src/LanguageNegotiator.php
@@ -326,13 +326,11 @@ function updateConfiguration(array $types) {
         // settings are always considered non-configurable. In turn if default
         // settings are missing, the language type is always considered
         // configurable.
-
         // If the language type is locked we can just store its default language
         // negotiation settings if it has some, since it is not configurable.
         if ($has_default_settings) {
           $method_weights = array();
           // Default settings are in $info['fixed'].
-
           foreach ($info['fixed'] as $weight => $method_id) {
             if (isset($method_definitions[$method_id])) {
               $method_weights[$method_id] = $weight;
diff --git a/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php b/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php
index 53d80c8..c9faa31d 100644
--- a/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php
+++ b/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php
@@ -104,7 +104,6 @@ public function processOutbound($path, &$options = [], Request $request = NULL,
     // If appropriate, process outbound to add a query parameter to the url and
     // remove the language option, so that url negotiator does not rewrite the
     // url.
-
     // First, check if processing conditions are met.
     if (!($request && !empty($options['route']) && $this->hasLowerLanguageNegotiationWeight() && $this->meetsContentEntityRoutesCondition($options['route'], $request))) {
       return $path;
diff --git a/core/modules/language/src/Tests/LanguageConfigurationTest.php b/core/modules/language/src/Tests/LanguageConfigurationTest.php
index c83cc61..9702770 100644
--- a/core/modules/language/src/Tests/LanguageConfigurationTest.php
+++ b/core/modules/language/src/Tests/LanguageConfigurationTest.php
@@ -103,7 +103,7 @@ function testLanguageConfiguration() {
     $this->drupalPostForm(NULL, $edit, t('Save configuration'));
     $this->assertText(t('The prefix may only be left blank for the selected detection fallback language.'));
 
-    //  Check that prefix cannot be changed to contain a slash.
+    // Check that prefix cannot be changed to contain a slash.
     $edit = array(
       'prefix[en]' => 'foo/bar',
     );
diff --git a/core/modules/language/src/Tests/LanguageListTest.php b/core/modules/language/src/Tests/LanguageListTest.php
index 25de99c..81096df 100644
--- a/core/modules/language/src/Tests/LanguageListTest.php
+++ b/core/modules/language/src/Tests/LanguageListTest.php
@@ -136,7 +136,6 @@ function testLanguageList() {
     $this->drupalGet('admin/config/regional/language/delete/fr');
     $this->assertResponse(404, 'Language no longer found.');
     // Make sure the "language_count" state has not changed.
-
     // Ensure we can delete the English language. Right now English is the only
     // language so we must add a new language and make it the default before
     // deleting English.
diff --git a/core/modules/language/src/Tests/LanguageSwitchingTest.php b/core/modules/language/src/Tests/LanguageSwitchingTest.php
index c076e6f..539ceb4 100644
--- a/core/modules/language/src/Tests/LanguageSwitchingTest.php
+++ b/core/modules/language/src/Tests/LanguageSwitchingTest.php
@@ -201,7 +201,7 @@ function testLanguageBlockWithDomain() {
     /** @var \Drupal\Core\Routing\UrlGenerator $generator */
     $generator = $this->container->get('url_generator');
 
-    // Verify the English URL is correct
+    // Verify the English URL is correct.
     list($english_link) = $this->xpath('//div[@id=:id]/ul/li/a[@hreflang=:hreflang]', array(
       ':id' => 'block-test-language-block',
       ':hreflang' => 'en',
@@ -209,7 +209,7 @@ function testLanguageBlockWithDomain() {
     $english_url = $generator->generateFromRoute('entity.user.canonical', array('user' => 2), array('language' => $languages['en']));
     $this->assertEqual($english_url, (string) $english_link['href']);
 
-    // Verify the Italian URL is correct
+    // Verify the Italian URL is correct.
     list($italian_link) = $this->xpath('//div[@id=:id]/ul/li/a[@hreflang=:hreflang]', array(
       ':id' => 'block-test-language-block',
       ':hreflang' => 'it',
diff --git a/core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php b/core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php
index 92b2a04..809387d 100644
--- a/core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php
+++ b/core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php
@@ -64,7 +64,7 @@ public function testConditions() {
     // Check for the proper summary.
     $this->assertEqual($condition->summary(), 'The language is Italian.');
 
-    // Negate the condition
+    // Negate the condition.
     $condition->setConfig('negate', TRUE);
     $this->assertTrue($condition->execute(), 'Language condition passes as expected.');
     // Check for the proper summary.
@@ -87,7 +87,7 @@ public function testConditions() {
     // Check for the proper summary.
     $this->assertEqual($condition->summary(), 'The language is Italian.');
 
-    // Negate the condition
+    // Negate the condition.
     $condition->setConfig('negate', TRUE);
     $this->assertFalse($condition->execute(), 'Language condition fails as expected.');
     // Check for the proper summary.
diff --git a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
index fd670fd..8e8da91 100644
--- a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
+++ b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
@@ -106,7 +106,7 @@ protected static function getUserEnteredStringAsUri($string) {
     $entity_id = EntityAutocomplete::extractEntityIdFromAutocompleteInput($string);
     if ($entity_id !== NULL) {
       // @todo Support entity types other than 'node'. Will be fixed in
-      //    https://www.drupal.org/node/2423093.
+      //   https://www.drupal.org/node/2423093.
       $uri = 'entity:node/' . $entity_id;
     }
     // Detect a schemeless string, map to 'internal:' URI.
@@ -182,7 +182,7 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
     if ($this->supportsInternalLinks()) {
       $element['uri']['#type'] = 'entity_autocomplete';
       // @todo The user should be able to select an entity type. Will be fixed
-      //    in https://www.drupal.org/node/2423093.
+      //   in https://www.drupal.org/node/2423093.
       $element['uri']['#target_type'] = 'node';
       // Disable autocompletion when the first character is '/', '#' or '?'.
       $element['uri']['#attributes']['data-autocomplete-first-character-blacklist'] = '/#?';
diff --git a/core/modules/link/src/Tests/LinkFieldTest.php b/core/modules/link/src/Tests/LinkFieldTest.php
index 639f519..3e52783 100644
--- a/core/modules/link/src/Tests/LinkFieldTest.php
+++ b/core/modules/link/src/Tests/LinkFieldTest.php
@@ -144,9 +144,9 @@ function testURLValidation() {
     $validation_error_2 = 'Manually entered paths should start with /, ? or #.';
     $validation_error_3 = "The path '@link_path' is inaccessible.";
     $invalid_external_entries = array(
-      // Invalid protocol
+      // Invalid protocol.
       'invalid://not-a-valid-protocol' => $validation_error_1,
-      // Missing host name
+      // Missing host name.
       'http://' => $validation_error_1,
     );
     $invalid_internal_entries = array(
diff --git a/core/modules/link/src/Tests/Views/LinkViewsTokensTest.php b/core/modules/link/src/Tests/Views/LinkViewsTokensTest.php
index b80624f..3230fa0 100644
--- a/core/modules/link/src/Tests/Views/LinkViewsTokensTest.php
+++ b/core/modules/link/src/Tests/Views/LinkViewsTokensTest.php
@@ -80,13 +80,13 @@ public function testLinkViewsTokens() {
     $this->drupalGet('test_link_tokens');
 
     foreach ($uris as $uri => $title) {
-      // Formatted link: {{ field_link }}<br />
+      // Formatted link: {{ field_link }}<br />.
       $this->assertRaw("Formated: <a href=\"$uri\" class=\"test-link-class\">$title</a>");
 
-      // Raw uri: {{ field_link__uri }}<br />
+      // Raw uri: {{ field_link__uri }}<br />.
       $this->assertRaw("Raw uri: $uri");
 
-      // Raw title: {{ field_link__title }}<br />
+      // Raw title: {{ field_link__title }}<br />.
       $this->assertRaw("Raw title: $title");
 
       // Raw options: {{ field_link__options }}<br />
diff --git a/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php b/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php
index 69776fd..594d09c 100644
--- a/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php
+++ b/core/modules/link/tests/src/Unit/Plugin/Validation/Constraint/LinkNotExistingInternalConstraintValidatorTest.php
@@ -44,7 +44,7 @@ public function testValidate($value, $valid) {
   public function providerValidate() {
     $data = [];
 
-    // External URL
+    // External URL.
     $data[] = [Url::fromUri('https://www.drupal.org'), TRUE];
 
     // Existing routed URL.
diff --git a/core/modules/locale/locale.bulk.inc b/core/modules/locale/locale.bulk.inc
index 72e8cfe..804bccf 100644
--- a/core/modules/locale/locale.bulk.inc
+++ b/core/modules/locale/locale.bulk.inc
@@ -458,7 +458,7 @@ function locale_translate_file_attach_properties($file, array $options = array()
   }
 
   // Extract project, version and language code from the file name. Supported:
-  // {project}-{version}.{langcode}.po, {prefix}.{langcode}.po or {langcode}.po
+  // {project}-{version}.{langcode}.po, {prefix}.{langcode}.po or {langcode}.po.
   preg_match('!
     (                       # project OR project and version OR empty (group 1)
       ([a-z_]+)             # project name (group 2)
diff --git a/core/modules/locale/locale.compare.inc b/core/modules/locale/locale.compare.inc
index e24490c..a47c865 100644
--- a/core/modules/locale/locale.compare.inc
+++ b/core/modules/locale/locale.compare.inc
@@ -56,7 +56,7 @@ function locale_translation_build_projects() {
     // to fall back to the latest stable release for that branch.
     if (isset($data['info']['version']) && strpos($data['info']['version'], '-dev')) {
       if (preg_match("/^(\d+\.x-\d+\.).*$/", $data['info']['version'], $matches)) {
-        // Example matches: 8.x-1.x-dev, 8.x-1.0-alpha1+5-dev => 8.x-1.x
+        // Example matches: 8.x-1.x-dev, 8.x-1.0-alpha1+5-dev => 8.x-1.x.
         $data['info']['version'] = $matches[1] . 'x';
       }
       elseif (preg_match("/^(\d+\.\d+\.).*$/", $data['info']['version'], $matches)) {
diff --git a/core/modules/locale/locale.install b/core/modules/locale/locale.install
index 0755104..9f9183d 100644
--- a/core/modules/locale/locale.install
+++ b/core/modules/locale/locale.install
@@ -111,7 +111,7 @@ function locale_schema() {
       'customized' => array(
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0, // LOCALE_NOT_CUSTOMIZED
+        'default' => 0, // LOCALE_NOT_CUSTOMIZED.
         'description' => 'Boolean indicating whether the translation is custom to this site.',
       ),
     ),
diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module
index aecad6c..c08ce80 100644
--- a/core/modules/locale/locale.module
+++ b/core/modules/locale/locale.module
@@ -920,7 +920,6 @@ function locale_translation_status_save($project, $langcode, $type, $data) {
   // Follow-up issue: https://www.drupal.org/node/1842362.
   // Split status storage per module/language and expire individually. This will
   // improve performance for large sites.
-
   // Load the translation status or build it if not already available.
   module_load_include('translation.inc', 'locale');
   $status = locale_translation_get_status();
@@ -1366,7 +1365,6 @@ function _locale_rebuild_js($langcode = NULL) {
       $logger->warning('JavaScript translation file %file.js was lost.', array('%file' => $locale_javascripts[$language->getId()]));
       // Proceed to the 'created' case as the JavaScript translation file has
       // been created again.
-
     case 'created':
       $logger->notice('Created JavaScript translation file for the language %language.', array('%language' => $language->getName()));
       return TRUE;
diff --git a/core/modules/locale/locale.translation.inc b/core/modules/locale/locale.translation.inc
index 0383aaf..29fb0e9 100644
--- a/core/modules/locale/locale.translation.inc
+++ b/core/modules/locale/locale.translation.inc
@@ -229,7 +229,6 @@ function locale_translation_source_build($project, $langcode, $filename = NULL)
   // Follow-up issue: https://www.drupal.org/node/1842380.
   // Convert $source object to a TranslatableProject class and use a typed class
   // for $source-file.
-
   // Create a source object with data of the project object.
   $source = clone $project;
   $source->project = $project->name;
diff --git a/core/modules/locale/src/Tests/LocalePluralFormatTest.php b/core/modules/locale/src/Tests/LocalePluralFormatTest.php
index 0f6c9c1..b216688 100644
--- a/core/modules/locale/src/Tests/LocalePluralFormatTest.php
+++ b/core/modules/locale/src/Tests/LocalePluralFormatTest.php
@@ -201,7 +201,7 @@ public function testPluralEditDateFormatter() {
     );
     $this->drupalPostForm($path, $edit, t('Save translations'));
 
-    // User interface input for translating seconds should not be duplicated
+    // User interface input for translating seconds should not be duplicated.
     $this->assertUniqueText('@count seconds', 'Interface translation input for @count seconds only appears once.');
 
     // Member for time should be translated. Change the created time to ensure
diff --git a/core/modules/locale/src/Tests/LocaleTranslationUiTest.php b/core/modules/locale/src/Tests/LocaleTranslationUiTest.php
index 1f790b6..32977d0 100644
--- a/core/modules/locale/src/Tests/LocaleTranslationUiTest.php
+++ b/core/modules/locale/src/Tests/LocaleTranslationUiTest.php
@@ -229,7 +229,6 @@ public function testJavaScriptTranslation() {
     $this->container->get('language_manager')->reset();
 
     // Build the JavaScript translation file.
-
     // Retrieve the source string of the first string available in the
     // {locales_source} table and translate it.
     $query = db_select('locales_source', 's');
@@ -307,7 +306,6 @@ public function testStringValidation() {
     );
     $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
     // Find the edit path.
-
     $textarea = current($this->xpath('//textarea'));
     $lid = (string) $textarea[0]['name'];
     foreach ($bad_translations as $translation) {
diff --git a/core/modules/menu_link_content/src/Tests/LinksTest.php b/core/modules/menu_link_content/src/Tests/LinksTest.php
index 5fd0ca1..1d8548c 100644
--- a/core/modules/menu_link_content/src/Tests/LinksTest.php
+++ b/core/modules/menu_link_content/src/Tests/LinksTest.php
@@ -53,9 +53,9 @@ function createLinkHierarchy($module = 'menu_test') {
     // Then create a simple link hierarchy:
     // - parent
     //   - child-1
-    //      - child-1-1
-    //      - child-1-2
-    //   - child-2
+    //     - child-1-1
+    //       - child-1-2
+    //   - child-2.
     $base_options = array(
       'title' => 'Menu link test',
       'provider' => $module,
diff --git a/core/modules/menu_link_content/src/Tests/MenuLinkContentDeleteFormTest.php b/core/modules/menu_link_content/src/Tests/MenuLinkContentDeleteFormTest.php
index e6ec76e..895e1a3 100644
--- a/core/modules/menu_link_content/src/Tests/MenuLinkContentDeleteFormTest.php
+++ b/core/modules/menu_link_content/src/Tests/MenuLinkContentDeleteFormTest.php
@@ -48,7 +48,7 @@ public function testMenuLinkContentDeleteForm() {
     $this->drupalGet($menu_link->urlInfo('delete-form'));
     $this->assertRaw(t('Are you sure you want to delete the custom menu link %name?', ['%name' => $menu_link->label()]));
     $this->assertLink(t('Cancel'));
-    // Make sure cancel link points to link edit
+    // Make sure cancel link points to link edit.
     $this->assertLinkByHref($menu_link->url('edit-form'));
 
     \Drupal::service('module_installer')->install(['menu_ui']);
diff --git a/core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkTest.php b/core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkTest.php
index 58171e3..50a06a0 100644
--- a/core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkTest.php
+++ b/core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkTest.php
@@ -60,7 +60,7 @@ public function testMenuLinks() {
     $this->assertIdentical('https://www.drupal.org', $menu_link->link->uri);
     $this->assertIdentical(-50, $menu_link->getWeight());
 
-    // assert that missing title attributes don't stop or break migration.
+    // Assert that missing title attributes don't stop or break migration.
     $menu_link = MenuLinkContent::load(393);
     $this->assertIdentical('Test 3', $menu_link->getTitle());
     $this->assertIdentical('secondary-links', $menu_link->getMenuName());
diff --git a/core/modules/menu_ui/menu_ui.module b/core/modules/menu_ui/menu_ui.module
index 463f8ca..aca417f 100644
--- a/core/modules/menu_ui/menu_ui.module
+++ b/core/modules/menu_ui/menu_ui.module
@@ -198,7 +198,7 @@ function menu_ui_get_menu_link_defaults(NodeInterface $node) {
   $defaults = FALSE;
   if ($node->id()) {
     $id = FALSE;
-    // Give priority to the default menu
+    // Give priority to the default menu.
     $type_menus = $node_type->getThirdPartySetting('menu_ui', 'available_menus', array('main'));
     if (in_array($menu_name, $type_menus)) {
       $query = \Drupal::entityQuery('menu_link_content')
diff --git a/core/modules/menu_ui/src/Tests/MenuTest.php b/core/modules/menu_ui/src/Tests/MenuTest.php
index 45bf16f..5576c2c 100644
--- a/core/modules/menu_ui/src/Tests/MenuTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuTest.php
@@ -307,8 +307,7 @@ function doMenuTests() {
     // <$menu_name>
     // - item1
     // -- item2
-    // --- item3
-
+    // --- item3.
     $this->assertMenuLink($item1->getPluginId(), array(
       'children' => array($item2->getPluginId(), $item3->getPluginId()),
       'parents' => array($item1->getPluginId()),
@@ -347,8 +346,7 @@ function doMenuTests() {
     // --- item3
     // - item4
     // -- item5
-    // -- item6
-
+    // -- item6.
     $this->assertMenuLink($item4->getPluginId(), array(
       'children' => array($item5->getPluginId(), $item6->getPluginId()),
       'parents' => array($item4->getPluginId()),
@@ -387,8 +385,7 @@ function doMenuTests() {
     // -- item5
     // --- item2
     // ---- item3
-    // -- item6
-
+    // -- item6.
     $this->assertMenuLink($item1->getPluginId(), array(
       'children' => array(),
       'parents' => array($item1->getPluginId()),
diff --git a/core/modules/migrate/src/MigrateExecutable.php b/core/modules/migrate/src/MigrateExecutable.php
index 7275920..8a5b4eb 100644
--- a/core/modules/migrate/src/MigrateExecutable.php
+++ b/core/modules/migrate/src/MigrateExecutable.php
@@ -111,7 +111,7 @@ public function __construct(MigrationInterface $migration, MigrateMessageInterfa
     $this->message = $message;
     $this->migration->getIdMap()->setMessage($message);
     $this->eventDispatcher = $event_dispatcher;
-    // Record the memory limit in bytes
+    // Record the memory limit in bytes.
     $limit = trim(ini_get('memory_limit'));
     if ($limit == '-1') {
       $this->memoryLimit = PHP_INT_MAX;
@@ -476,7 +476,7 @@ protected function memoryExceeded() {
       $usage = $this->attemptMemoryReclaim();
       $pct_memory = $usage / $this->memoryLimit;
       // Use a lower threshold - we don't want to be in a situation where we keep
-      // coming back here and trimming a tiny amount
+      // coming back here and trimming a tiny amount.
       if ($pct_memory > (0.90 * $threshold)) {
         $this->message->display(
           $this->t('Memory usage is now @usage (@pct% of limit @limit), not enough reclaimed, starting new batch',
diff --git a/core/modules/migrate/src/Plugin/Migration.php b/core/modules/migrate/src/Plugin/Migration.php
index 9b22e35..787a8af 100644
--- a/core/modules/migrate/src/Plugin/Migration.php
+++ b/core/modules/migrate/src/Plugin/Migration.php
@@ -616,7 +616,7 @@ public function setProcessOfProperty($property, $process_of_property) {
    */
   public function mergeProcessOfProperty($property, array $process_of_property) {
     // If we already have a process value then merge the incoming process array
-    //otherwise simply set it.
+    // otherwise simply set it.
     $current_process = $this->getProcess();
     if (isset($current_process[$property])) {
       $this->process = NestedArray::mergeDeepArray([$current_process, $this->getProcessNormalized([$property => $process_of_property])], TRUE);
diff --git a/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php b/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php
index d08e035..18360bb 100644
--- a/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php
+++ b/core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityContentBaseTest.php
@@ -68,7 +68,7 @@ public function testImport() {
     // Assert that save is called.
     $entity->save()
       ->shouldBeCalledTimes(1);
-    // Set an id for the entity
+    // Set an id for the entity.
     $entity->id()
       ->willReturn(5);
     $destination->setEntity($entity->reveal());
diff --git a/core/modules/node/node.api.php b/core/modules/node/node.api.php
index 11689c3..f80e7f7 100644
--- a/core/modules/node/node.api.php
+++ b/core/modules/node/node.api.php
@@ -272,7 +272,6 @@ function hook_node_grants_alter(&$grants, \Drupal\Core\Session\AccountInterface
   // content. Since some other node access modules might allow this
   // permission, we expressly remove it by returning an empty $grants
   // array for roles specified in our variable setting.
-
   // Get our list of banned roles.
   $restricted = \Drupal::config('example.settings')->get('restricted_roles');
 
diff --git a/core/modules/node/node.module b/core/modules/node/node.module
index ebfd07f..d39113d 100644
--- a/core/modules/node/node.module
+++ b/core/modules/node/node.module
@@ -650,7 +650,7 @@ function node_ranking() {
   $ranking = array(
     'relevance' => array(
       'title' => t('Keyword relevance'),
-      // Average relevance values hover around 0.15
+      // Average relevance values hover around 0.15.
       'score' => 'i.relevance',
     ),
     'sticky' => array(
@@ -1161,7 +1161,7 @@ function node_access_rebuild($batch_mode = FALSE) {
       batch_set($batch);
     }
     else {
-      // Try to allocate enough time to rebuild node grants
+      // Try to allocate enough time to rebuild node grants.
       drupal_set_time_limit(240);
 
       // Rebuild newest nodes first so that recent content becomes available
diff --git a/core/modules/node/node.tokens.inc b/core/modules/node/node.tokens.inc
index 81fa3f0..c9cb445 100644
--- a/core/modules/node/node.tokens.inc
+++ b/core/modules/node/node.tokens.inc
@@ -140,7 +140,6 @@ function node_tokens($type, $tokens, array $data, array $options, BubbleableMeta
               // A summary was requested.
               if ($name == 'summary') {
                 // Generate an optionally trimmed summary of the body field.
-
                 // Get the 'trim_length' size used for the 'teaser' mode, if
                 // present, or use the default trim_length size.
                 $display_options = entity_get_display('node', $node->getType(), 'teaser')->getComponent('body');
diff --git a/core/modules/node/node.views_execution.inc b/core/modules/node/node.views_execution.inc
index 701f439..842aa04 100644
--- a/core/modules/node/node.views_execution.inc
+++ b/core/modules/node/node.views_execution.inc
@@ -30,7 +30,7 @@ function node_views_analyze(ViewExecutable $view) {
   if ($view->storage->get('base_table') == 'node') {
     foreach ($view->displayHandlers as $display) {
       if (!$display->isDefaulted('access') || !$display->isDefaulted('filters')) {
-        // check for no access control
+        // Check for no access control.
         $access = $display->getOption('access');
         if (empty($access['type']) || $access['type'] == 'none') {
           $anonymous_role = Role::load(RoleInterface::ANONYMOUS_ID);
diff --git a/core/modules/node/src/NodeForm.php b/core/modules/node/src/NodeForm.php
index 0e0f1a9..36b1e8c 100644
--- a/core/modules/node/src/NodeForm.php
+++ b/core/modules/node/src/NodeForm.php
@@ -247,8 +247,7 @@ protected function actions(array $form, FormStateInterface $form_state) {
       // 1     | 1           » publish   & Save and publish          & Save as unpublished
       // 1     | 0           » unpublish & Save and publish          & Save as unpublished
       // 0     | 1           » publish   & Save and keep published   & Save and unpublish
-      // 0     | 0           » unpublish & Save and keep unpublished & Save and publish
-
+      // 0     | 0           » unpublish & Save and keep unpublished & Save and publish.
       // Add a "Publish" button.
       $element['publish'] = $element['submit'];
       // If the "Publish" button is clicked, we want to update the status to "published".
diff --git a/core/modules/node/src/NodeViewsData.php b/core/modules/node/src/NodeViewsData.php
index 21e1e44..35dcde6 100644
--- a/core/modules/node/src/NodeViewsData.php
+++ b/core/modules/node/src/NodeViewsData.php
@@ -75,7 +75,6 @@ public function getViewsData() {
     );
 
     // Bogus fields for aliasing purposes.
-
     // @todo Add similar support to any date field
     // @see https://www.drupal.org/node/2337507
     $data['node_field_data']['created_fulldate'] = array(
diff --git a/core/modules/node/src/Plugin/Search/NodeSearch.php b/core/modules/node/src/Plugin/Search/NodeSearch.php
index 3bf7ced..a0b1ece 100644
--- a/core/modules/node/src/Plugin/Search/NodeSearch.php
+++ b/core/modules/node/src/Plugin/Search/NodeSearch.php
@@ -717,7 +717,6 @@ protected function parseAdvancedDefaults($f, $keys) {
     }
 
     // Split out the negative, phrase, and OR parts of keywords.
-
     // For phrases, the form only supports one phrase.
     $matches = array();
     $keys = ' ' . $keys . ' ';
diff --git a/core/modules/node/src/Plugin/migrate/source/d6/Node.php b/core/modules/node/src/Plugin/migrate/source/d6/Node.php
index c70fd27..bad2510 100644
--- a/core/modules/node/src/Plugin/migrate/source/d6/Node.php
+++ b/core/modules/node/src/Plugin/migrate/source/d6/Node.php
@@ -111,7 +111,7 @@ public function fields() {
    * {@inheritdoc}
    */
   public function prepareRow(Row $row) {
-    // format = 0 can happen when the body field is hidden. Set the format to 1
+    // Format = 0 can happen when the body field is hidden. Set the format to 1
     // to avoid migration map issues (since the body field isn't used anyway).
     if ($row->getSourceProperty('format') === '0') {
       $row->setSourceProperty('format', $this->filterDefaultFormat);
diff --git a/core/modules/node/src/Plugin/views/field/Node.php b/core/modules/node/src/Plugin/views/field/Node.php
index d721414..5a34d10 100644
--- a/core/modules/node/src/Plugin/views/field/Node.php
+++ b/core/modules/node/src/Plugin/views/field/Node.php
@@ -26,7 +26,7 @@ class Node extends FieldPluginBase {
   public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
     parent::init($view, $display, $options);
 
-    // Don't add the additional fields to groupby
+    // Don't add the additional fields to groupby.
     if (!empty($this->options['link_to_node'])) {
       $this->additional_fields['nid'] = array('table' => 'node_field_data', 'field' => 'nid');
     }
diff --git a/core/modules/node/src/Plugin/views/row/Rss.php b/core/modules/node/src/Plugin/views/row/Rss.php
index c2a5f0a..5e4b0f8 100644
--- a/core/modules/node/src/Plugin/views/row/Rss.php
+++ b/core/modules/node/src/Plugin/views/row/Rss.php
@@ -123,7 +123,6 @@ public function render($row) {
 
     // The node gets built and modules add to or modify $node->rss_elements
     // and $node->rss_namespaces.
-
     $build_mode = $display_mode;
 
     $build = node_view($node, $build_mode);
diff --git a/core/modules/node/src/Plugin/views/wizard/Node.php b/core/modules/node/src/Plugin/views/wizard/Node.php
index 833b092..3eadf0d 100644
--- a/core/modules/node/src/Plugin/views/wizard/Node.php
+++ b/core/modules/node/src/Plugin/views/wizard/Node.php
@@ -47,7 +47,7 @@ class Node extends WizardPluginBase {
    *   corresponding values are human readable labels.
    */
   public function getAvailableSorts() {
-    // You can't execute functions in properties, so override the method
+    // You can't execute functions in properties, so override the method.
     return array(
       'node_field_data-title:DESC' => $this->t('Title')
     );
@@ -199,7 +199,6 @@ protected function buildFilters(&$form, FormStateInterface $form_state) {
     }
 
     // Add the "tagged with" filter to the view.
-
     // We construct this filter using taxonomy_index.tid (which limits the
     // filtering to a specific vocabulary) rather than
     // taxonomy_term_field_data.name (which matches terms in any vocabulary).
@@ -207,12 +206,10 @@ protected function buildFilters(&$form, FormStateInterface $form_state) {
     // the autocomplete UI, and also to avoid confusion with other vocabularies
     // on the site that may have terms with the same name but are not used for
     // free tagging.
-
     // The downside is that if there *is* more than one vocabulary on the site
     // that is used for free tagging, the wizard will only be able to make the
     // "tagged with" filter apply to one of them (see below for the method it
     // uses to choose).
-
     // Find all "tag-like" taxonomy fields associated with the view's
     // entities. If a particular entity type (i.e., bundle) has been
     // selected above, then we only search for taxonomy fields associated
diff --git a/core/modules/node/src/Tests/NodeAccessBaseTableTest.php b/core/modules/node/src/Tests/NodeAccessBaseTableTest.php
index e84fc0e..435cd6c 100644
--- a/core/modules/node/src/Tests/NodeAccessBaseTableTest.php
+++ b/core/modules/node/src/Tests/NodeAccessBaseTableTest.php
@@ -87,7 +87,7 @@ function testNodeAccessBasic() {
     $num_simple_users = 2;
     $simple_users = array();
 
-    // Nodes keyed by uid and nid: $nodes[$uid][$nid] = $is_private;
+    // Nodes keyed by uid and nid: $nodes[$uid][$nid] = $is_private;.
     $this->nodesByUser = array();
     // Titles keyed by nid.
     $titles = [];
diff --git a/core/modules/node/src/Tests/NodeAccessGrantsCacheContextTest.php b/core/modules/node/src/Tests/NodeAccessGrantsCacheContextTest.php
index 5932108..5cedfaf 100644
--- a/core/modules/node/src/Tests/NodeAccessGrantsCacheContextTest.php
+++ b/core/modules/node/src/Tests/NodeAccessGrantsCacheContextTest.php
@@ -124,7 +124,7 @@ public function testCacheContext() {
       3 => 'view.all',
     ]);
 
-    // Uninstall the node_access_test module
+    // Uninstall the node_access_test module.
     $this->container->get('module_installer')->uninstall(['node_access_test']);
     drupal_static_reset('node_access_view_all_nodes');
     $this->assertUserCacheContext([
diff --git a/core/modules/node/src/Tests/NodeAccessLanguageAwareCombinationTest.php b/core/modules/node/src/Tests/NodeAccessLanguageAwareCombinationTest.php
index acf9217..fd3f305 100644
--- a/core/modules/node/src/Tests/NodeAccessLanguageAwareCombinationTest.php
+++ b/core/modules/node/src/Tests/NodeAccessLanguageAwareCombinationTest.php
@@ -93,7 +93,6 @@ protected function setUp() {
     // implemented by one or both modules to enforce that private nodes or
     // translations are always private, but we want to test the default,
     // additive behavior of node access).
-
     // Create six Hungarian nodes with Catalan translations:
     // 1. One public with neither language marked as private.
     // 2. One private with neither language marked as private.
@@ -251,7 +250,6 @@ function testNodeAccessLanguageAwareCombination() {
     $this->assertNodeAccess($expected_node_access_no_access, $this->nodes['private_no_language_public'], $this->webUser);
 
     // Query the node table with the node access tag in several languages.
-
     // Query with no language specified. The fallback (hu or und) will be used.
     $select = db_select('node', 'n')
     ->fields('n', array('nid'))
diff --git a/core/modules/node/src/Tests/NodeAccessLanguageAwareTest.php b/core/modules/node/src/Tests/NodeAccessLanguageAwareTest.php
index ea5a883..9b24daf 100644
--- a/core/modules/node/src/Tests/NodeAccessLanguageAwareTest.php
+++ b/core/modules/node/src/Tests/NodeAccessLanguageAwareTest.php
@@ -85,7 +85,6 @@ protected function setUp() {
 
     // The node_access_test_language module allows individual translations of a
     // node to be marked private (not viewable by normal users).
-
     // Create six nodes:
     // 1. Four Hungarian nodes with Catalan translations
     //   - One with neither language marked as private.
@@ -192,7 +191,6 @@ function testNodeAccessLanguageAware() {
     $this->assertNodeAccess($expected_node_access, $this->nodes['no_language_public'], $this->webUser);
 
     // Query the node table with the node access tag in several languages.
-
     // Query with no language specified. The fallback (hu) will be used.
     $select = db_select('node', 'n')
     ->fields('n', array('nid'))
diff --git a/core/modules/node/src/Tests/NodeEditFormTest.php b/core/modules/node/src/Tests/NodeEditFormTest.php
index 659567d..844b24f 100644
--- a/core/modules/node/src/Tests/NodeEditFormTest.php
+++ b/core/modules/node/src/Tests/NodeEditFormTest.php
@@ -73,7 +73,7 @@ public function testNodeEdit() {
     $this->assertUrl($node->url('edit-form', ['absolute' => TRUE]));
 
     // Check that the title and body fields are displayed with the correct values.
-    // As you see the expected link text has no HTML, but we are using
+    // As you see the expected link text has no HTML, but we are using.
     $link_text = 'Edit<span class="visually-hidden">(active tab)</span>';
     // @todo Ideally assertLink would support HTML, but it doesn't.
     $this->assertRaw($link_text, 'Edit tab found and marked active.');
diff --git a/core/modules/node/src/Tests/NodeTypeTest.php b/core/modules/node/src/Tests/NodeTypeTest.php
index 0d2d8de..ba9238c 100644
--- a/core/modules/node/src/Tests/NodeTypeTest.php
+++ b/core/modules/node/src/Tests/NodeTypeTest.php
@@ -119,7 +119,7 @@ function testNodeTypeEditing() {
     $this->assertRaw('Foo', 'Title field was found.');
     $this->assertRaw('Body', 'Body field was found.');
 
-    // Change the name through the API
+    // Change the name through the API.
     /** @var \Drupal\node\NodeTypeInterface $node_type */
     $node_type = NodeType::load('page');
     $node_type->set('name', 'NewBar');
@@ -235,7 +235,7 @@ public function testNodeTypeNoContentType() {
     // Delete 'page' bundle.
     $this->drupalPostForm('admin/structure/types/manage/page/delete', [], t('Delete'));
 
-    // Navigate to content type administration screen
+    // 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()
diff --git a/core/modules/node/src/Tests/Views/NodeFieldTokensTest.php b/core/modules/node/src/Tests/Views/NodeFieldTokensTest.php
index 9c12446..953a2e7 100644
--- a/core/modules/node/src/Tests/Views/NodeFieldTokensTest.php
+++ b/core/modules/node/src/Tests/Views/NodeFieldTokensTest.php
@@ -46,16 +46,16 @@ public function testViewsTokenReplacement() {
 
     $this->drupalGet('test_node_tokens');
 
-    // Body: {{ body }}<br />
+    // Body: {{ body }}<br />.
     $this->assertRaw("Body: <p>$body</p>");
 
-    // Raw value: {{ body__value }}<br />
+    // Raw value: {{ body__value }}<br />.
     $this->assertRaw("Raw value: $body");
 
-    // Raw summary: {{ body__summary }}<br />
+    // Raw summary: {{ body__summary }}<br />.
     $this->assertRaw("Raw summary: $summary");
 
-    // Raw format: {{ body__format }}<br />
+    // Raw format: {{ body__format }}<br />.
     $this->assertRaw("Raw format: plain_text");
   }
 
diff --git a/core/modules/node/tests/modules/node_test/node_test.module b/core/modules/node/tests/modules/node_test/node_test.module
index aa7d4dd..15a82e6 100644
--- a/core/modules/node/tests/modules/node_test/node_test.module
+++ b/core/modules/node/tests/modules/node_test/node_test.module
@@ -123,7 +123,7 @@ function node_test_node_grants_alter(&$grants, AccountInterface $account, $op) {
  */
 function node_test_node_presave(NodeInterface $node) {
   if ($node->getTitle() == 'testing_node_presave') {
-    // Sun, 19 Nov 1978 05:00:00 GMT
+    // Sun, 19 Nov 1978 05:00:00 GMT.
     $node->setCreatedTime(280299600);
     // Drupal 1.0 release.
     $node->changed = 979534800;
diff --git a/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php b/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php
index f88e45e..51b921c 100644
--- a/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php
@@ -71,7 +71,7 @@ function testAccessToAdministrativeFields() {
     // An unprivileged user.
     $page_unrelated_user = $this->createUser(array(), array('access content'));
 
-    // List of all users
+    // List of all users.
     $test_users = array(
       $content_admin_user,
       $page_creator_user,
diff --git a/core/modules/node/tests/src/Unit/Plugin/migrate/source/d6/NodeByNodeTypeTest.php b/core/modules/node/tests/src/Unit/Plugin/migrate/source/d6/NodeByNodeTypeTest.php
index 0c31810..689a42f 100644
--- a/core/modules/node/tests/src/Unit/Plugin/migrate/source/d6/NodeByNodeTypeTest.php
+++ b/core/modules/node/tests/src/Unit/Plugin/migrate/source/d6/NodeByNodeTypeTest.php
@@ -111,7 +111,6 @@ protected function setUp() {
     );
 
     // Add another row with an article node and make sure it is not migrated.
-
     foreach ($database_contents as $k => $row) {
       foreach (array('nid', 'vid', 'title', 'uid', 'body', 'teaser', 'format', 'timestamp', 'log') as $field) {
         $this->databaseContents['node_revisions'][$k][$field] = $row[$field];
diff --git a/core/modules/options/src/Tests/OptionsWidgetsTest.php b/core/modules/options/src/Tests/OptionsWidgetsTest.php
index 23f0f0d..527599d 100644
--- a/core/modules/options/src/Tests/OptionsWidgetsTest.php
+++ b/core/modules/options/src/Tests/OptionsWidgetsTest.php
@@ -296,12 +296,11 @@ function testSelectListSingle() {
     $this->assertFieldValues($entity_init, 'card_1', array());
 
     // Test optgroups.
-
     $this->card1->setSetting('allowed_values', []);
     $this->card1->setSetting('allowed_values_function', 'options_test_allowed_values_callback');
     $this->card1->save();
 
-    // Display form: with no field data, nothing is selected
+    // Display form: with no field data, nothing is selected.
     $this->drupalGet('entity_test/manage/' . $entity->id() . '/edit');
     $this->assertNoOptionSelected('edit-card-1', 0);
     $this->assertNoOptionSelected('edit-card-1', 1);
@@ -392,7 +391,6 @@ function testSelectListMultiple() {
     $this->assertFieldValues($entity_init, 'card_2', array());
 
     // Test the 'None' option.
-
     // Check that the 'none' option has no effect if actual options are selected
     // as well.
     $edit = array('card_2[]' => array('_none' => '_none', 0 => 0));
@@ -412,9 +410,7 @@ function testSelectListMultiple() {
 
     // We do not have to test that a required select list with one option is
     // auto-selected because the browser does it for us.
-
     // Test optgroups.
-
     // Use a callback function defining optgroups.
     $this->card2->setSetting('allowed_values', []);
     $this->card2->setSetting('allowed_values_function', 'options_test_allowed_values_callback');
diff --git a/core/modules/page_cache/src/StackMiddleware/PageCache.php b/core/modules/page_cache/src/StackMiddleware/PageCache.php
index 14f9df5..f2500e5 100644
--- a/core/modules/page_cache/src/StackMiddleware/PageCache.php
+++ b/core/modules/page_cache/src/StackMiddleware/PageCache.php
@@ -159,8 +159,8 @@ protected function lookup(Request $request, $type = self::MASTER_REQUEST, $catch
       $if_none_match = $request->server->has('HTTP_IF_NONE_MATCH') ? stripslashes($request->server->get('HTTP_IF_NONE_MATCH')) : FALSE;
 
       if ($if_modified_since && $if_none_match
-        && $if_none_match == $response->getEtag() // etag must match
-        && $if_modified_since == $last_modified->getTimestamp()) {  // if-modified-since must match
+        && $if_none_match == $response->getEtag() // Etag must match
+        && $if_modified_since == $last_modified->getTimestamp()) {  // if-modified-since must match.
         $response->setStatusCode(304);
         $response->setContent(NULL);
 
diff --git a/core/modules/page_cache/tests/modules/page_cache_form_test.module b/core/modules/page_cache/tests/modules/page_cache_form_test.module
index eb76d4d..eb25f96 100644
--- a/core/modules/page_cache/tests/modules/page_cache_form_test.module
+++ b/core/modules/page_cache/tests/modules/page_cache_form_test.module
@@ -34,7 +34,7 @@ function page_cache_form_test_form_page_cache_form_test_process($form, FormState
  */
 function page_cache_form_test_module_implements_alter(&$implementations, $hook) {
   if ($hook === 'form_alter' && \Drupal::state()->get('page_cache_bypass_form_immutability', FALSE)) {
-    // Disable system_form_alter
+    // Disable system_form_alter.
     unset($implementations['system']);
   }
 }
diff --git a/core/modules/path/src/Tests/PathAliasTest.php b/core/modules/path/src/Tests/PathAliasTest.php
index e6b1738..1df85ad 100644
--- a/core/modules/path/src/Tests/PathAliasTest.php
+++ b/core/modules/path/src/Tests/PathAliasTest.php
@@ -125,7 +125,7 @@ function testAdminAlias() {
 
     // Set alias to second test node.
     $edit['source'] = '/node/' . $node2->id();
-    // leave $edit['alias'] the same
+    // Leave $edit['alias'] the same.
     $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save'));
 
     // Confirm no duplicate was created.
diff --git a/core/modules/quickedit/js/models/EntityModel.js b/core/modules/quickedit/js/models/EntityModel.js
index f444fbb..7e614d1 100644
--- a/core/modules/quickedit/js/models/EntityModel.js
+++ b/core/modules/quickedit/js/models/EntityModel.js
@@ -73,7 +73,6 @@
 
       // The attributes below are stateful. The ones above will never change
       // during the life of a EntityModel instance.
-
       /**
        * Indicates whether this entity is currently being edited in-place.
        *
diff --git a/core/modules/quickedit/js/models/FieldModel.js b/core/modules/quickedit/js/models/FieldModel.js
index 8aeff10..1f5fd6d 100644
--- a/core/modules/quickedit/js/models/FieldModel.js
+++ b/core/modules/quickedit/js/models/FieldModel.js
@@ -72,7 +72,6 @@
 
       // The attributes below are stateful. The ones above will never change
       // during the life of a FieldModel instance.
-
       /**
        * In-place editing state of this field. Defaults to the initial state.
        * Possible values: {@link Drupal.quickedit.FieldModel.states}.
diff --git a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
index b9ebf12..c0e70c8 100644
--- a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
+++ b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
@@ -80,7 +80,7 @@ protected function setUp() {
     ));
 
     // Create 2 users, the only difference being the ability to use in-place
-    // editing
+    // editing.
     $basic_permissions = array('access content', 'create article content', 'edit any article content', 'use text format filtered_html', 'access contextual links');
     $this->authorUser = $this->drupalCreateUser($basic_permissions);
     $this->editorUser = $this->drupalCreateUser(array_merge($basic_permissions, array('access in-place editing')));
@@ -180,7 +180,7 @@ public function testUserWithPermission() {
 
     // Retrieving the attachments should result in a 200 response, containing:
     //  1. a settings command with useless metadata: AjaxController is dumb
-    //  2. an insert command that loads the required in-place editors
+    //  2. an insert command that loads the required in-place editors.
     $post = array('editors[0]' => 'form') + $this->getAjaxPageStatePostData();
     $response = $this->drupalPost('quickedit/attachments', 'application/vnd.drupal-ajax', $post);
     $ajax_commands = Json::decode($response);
@@ -314,7 +314,7 @@ public function testTitleBaseField() {
     $this->drupalLogin($this->editorUser);
     $this->drupalGet('node/1');
 
-    // Ensure that the full page title is actually in-place editable
+    // Ensure that the full page title is actually in-place editable.
     $node = Node::load(1);
     $elements = $this->xpath('//h1/span[@data-quickedit-field-id="node/1/title/en/full" and normalize-space(text())=:title]', array(':title' => $node->label()));
     $this->assertTrue(!empty($elements), 'Title with data-quickedit-field-id attribute found.');
diff --git a/core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php b/core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php
index 18a86f8..ed3e6a3 100644
--- a/core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php
+++ b/core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php
@@ -68,7 +68,7 @@ public function testText() {
     // With cardinality 1.
     $this->assertEqual('plain_text', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality 1, the 'plain_text' editor is selected.");
 
-    // With cardinality >1
+    // With cardinality >1.
     $this->fields->field_text_field_storage->setCardinality(2);
     $this->fields->field_text_field_storage->save();
     $this->assertEqual('form', $this->getSelectedEditor($entity->id(), $field_name), "With cardinality >1, the 'form' editor is selected.");
diff --git a/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php b/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
index ce9a977..9f4f8a1 100644
--- a/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
+++ b/core/modules/quickedit/tests/src/Kernel/MetadataGeneratorTest.php
@@ -172,7 +172,7 @@ public function testEditorWithCustomMetadata() {
         'format' => 'full_html'
       ),
     );
-    $this->assertEqual($expected, $metadata); //, 'The correct metadata (including custom metadata) is generated.');
+    $this->assertEqual($expected, $metadata); // , 'The correct metadata (including custom metadata) is generated.');.
   }
 
 }
diff --git a/core/modules/rdf/src/Tests/EntityReferenceFieldAttributesTest.php b/core/modules/rdf/src/Tests/EntityReferenceFieldAttributesTest.php
index 48653a5..e00d822 100644
--- a/core/modules/rdf/src/Tests/EntityReferenceFieldAttributesTest.php
+++ b/core/modules/rdf/src/Tests/EntityReferenceFieldAttributesTest.php
@@ -125,23 +125,23 @@ function testNodeTeaser() {
       'value' => 'http://www.w3.org/2004/02/skos/core#Concept',
     );
     // @todo Enable with https://www.drupal.org/node/2072791.
-    //$this->assertTrue($graph->hasProperty($taxonomy_term_1_uri, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', $expected_value), 'Taxonomy term type found in RDF output (skos:Concept).');
+    // $this->assertTrue($graph->hasProperty($taxonomy_term_1_uri, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', $expected_value), 'Taxonomy term type found in RDF output (skos:Concept).');
     $expected_value = array(
       'type' => 'literal',
       'value' => $term1->getName(),
     );
-    //$this->assertTrue($graph->hasProperty($taxonomy_term_1_uri, 'http://www.w3.org/2000/01/rdf-schema#label', $expected_value), 'Taxonomy term name found in RDF output (rdfs:label).');
+    // $this->assertTrue($graph->hasProperty($taxonomy_term_1_uri, 'http://www.w3.org/2000/01/rdf-schema#label', $expected_value), 'Taxonomy term name found in RDF output (rdfs:label).');
     // Term 2.
     $expected_value = array(
       'type' => 'uri',
       'value' => 'http://www.w3.org/2004/02/skos/core#Concept',
     );
-    //$this->assertTrue($graph->hasProperty($taxonomy_term_2_uri, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', $expected_value), 'Taxonomy term type found in RDF output (skos:Concept).');
+    // $this->assertTrue($graph->hasProperty($taxonomy_term_2_uri, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', $expected_value), 'Taxonomy term type found in RDF output (skos:Concept).');.
     $expected_value = array(
       'type' => 'literal',
       'value' => $term2->getName(),
     );
-    //$this->assertTrue($graph->hasProperty($taxonomy_term_2_uri, 'http://www.w3.org/2000/01/rdf-schema#label', $expected_value), 'Taxonomy term name found in RDF output (rdfs:label).');
+    // $this->assertTrue($graph->hasProperty($taxonomy_term_2_uri, 'http://www.w3.org/2000/01/rdf-schema#label', $expected_value), 'Taxonomy term name found in RDF output (rdfs:label).');.
   }
 
 }
diff --git a/core/modules/rdf/src/Tests/StandardProfileTest.php b/core/modules/rdf/src/Tests/StandardProfileTest.php
index 1c72d71..663dc75 100644
--- a/core/modules/rdf/src/Tests/StandardProfileTest.php
+++ b/core/modules/rdf/src/Tests/StandardProfileTest.php
@@ -407,8 +407,7 @@ protected function assertRdfaArticleProperties($graph, $message_prefix) {
 
     // Tag type.
     // @todo Enable with https://www.drupal.org/node/2072791.
-    //$this->assertEqual($graph->type($this->termUri), 'schema:Thing', 'Tag type was found (schema:Thing).');
-
+    // $this->assertEqual($graph->type($this->termUri), 'schema:Thing', 'Tag type was found (schema:Thing).');
     // Tag name.
     $expected_value = array(
       'type' => 'literal',
@@ -416,7 +415,7 @@ protected function assertRdfaArticleProperties($graph, $message_prefix) {
       'lang' => 'en',
     );
     // @todo Enable with https://www.drupal.org/node/2072791.
-    //$this->assertTrue($graph->hasProperty($this->termUri, 'http://schema.org/name', $expected_value), "$message_prefix name was found (schema:name).");
+    // $this->assertTrue($graph->hasProperty($this->termUri, 'http://schema.org/name', $expected_value), "$message_prefix name was found (schema:name).");
   }
 
   /**
diff --git a/core/modules/responsive_image/responsive_image.module b/core/modules/responsive_image/responsive_image.module
index 7df1da8..0176fed 100644
--- a/core/modules/responsive_image/responsive_image.module
+++ b/core/modules/responsive_image/responsive_image.module
@@ -145,7 +145,7 @@ function template_preprocess_responsive_image_formatter(&$variables) {
  */
 function template_preprocess_responsive_image(&$variables) {
   // Make sure that width and height are proper values
-  // If they exists we'll output them
+  // If they exists we'll output them.
   // @see http://www.w3.org/community/respimg/2012/06/18/florians-compromise/
   if (isset($variables['width']) && empty($variables['width'])) {
     unset($variables['width']);
diff --git a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
index c0fbc90..f772475 100644
--- a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
+++ b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
@@ -475,7 +475,7 @@ private function assertResponsiveImageFieldFormattersLink($link_type) {
     // Ensure that preview works.
     $this->previewNodeImage($test_image, $field_name, 'article');
 
-    // Look for a picture tag in the preview output
+    // Look for a picture tag in the preview output.
     $this->assertPattern('/picture/');
 
     $nid = $this->uploadNodeImage($test_image, $field_name, 'article');
diff --git a/core/modules/rest/src/Tests/NodeTest.php b/core/modules/rest/src/Tests/NodeTest.php
index 357109c..724e3ba 100644
--- a/core/modules/rest/src/Tests/NodeTest.php
+++ b/core/modules/rest/src/Tests/NodeTest.php
@@ -187,7 +187,7 @@ public function testMissingBundle() {
       'title' => [['value' => $this->randomString() ]],
     ];
 
-    // testing
+    // Testing.
     $this->postNode($data);
 
     // Make sure the response is "Bad Request".
diff --git a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
index f642d2d..7b04486 100644
--- a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
+++ b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
@@ -82,7 +82,6 @@ public function testSerializerResponses() {
     $this->assertCacheContexts(['languages:language_interface', 'theme', 'request_format']);
     // @todo Due to https://www.drupal.org/node/2352009 we can't yet test the
     // propagation of cache max-age.
-
     // Test the http Content-type.
     $headers = $this->drupalGetHeaders();
     $this->assertEqual($headers['content-type'], 'application/json', 'The header Content-type is correct.');
diff --git a/core/modules/search/search.module b/core/modules/search/search.module
index 0bd22ab..5ac3843 100644
--- a/core/modules/search/search.module
+++ b/core/modules/search/search.module
@@ -205,7 +205,7 @@ function search_cron() {
 function search_update_totals() {
   // Update word IDF (Inverse Document Frequency) counts for new/changed words.
   foreach (search_dirty() as $word => $dummy) {
-    // Get total count
+    // Get total count.
     $total = db_query("SELECT SUM(score) FROM {search_index} WHERE word = :word", array(':word' => $word), array('target' => 'replica'))->fetchField();
     // Apply Zipf's law to equalize the probability distribution.
     $total = log10(1 + 1/(max(1, $total)));
@@ -253,10 +253,10 @@ function search_update_totals() {
  * @see hook_search_preprocess()
  */
 function search_simplify($text, $langcode = NULL) {
-  // Decode entities to UTF-8
+  // Decode entities to UTF-8.
   $text = Html::decodeEntities($text);
 
-  // Lowercase
+  // Lowercase.
   $text = Unicode::strtolower($text);
 
   // Remove diacritics.
@@ -265,7 +265,7 @@ function search_simplify($text, $langcode = NULL) {
   // Call an external processor for word handling.
   search_invoke_preprocess($text, $langcode);
 
-  // Simple CJK handling
+  // Simple CJK handling.
   if (\Drupal::config('search.settings')->get('index.overlap_cjk')) {
     $text = preg_replace_callback('/[' . PREG_CLASS_CJK . ']+/u', 'search_expand_cjk', $text);
   }
@@ -365,11 +365,11 @@ function search_index_split($text, $langcode = NULL) {
   if ($last == $text) {
     return $lastsplit;
   }
-  // Process words
+  // Process words.
   $text = search_simplify($text, $langcode);
   $words = explode(' ', $text);
 
-  // Save last keyword result
+  // Save last keyword result.
   $last = $text;
   $lastsplit = $words;
 
@@ -444,19 +444,18 @@ function search_index($type, $sid, $langcode, $text) {
   $split = preg_split('/\s*<([^>]+?)>\s*/', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
   // Note: PHP ensures the array consists of alternating delimiters and literals
   // and begins and ends with a literal (inserting $null as required).
-
   $tag = FALSE; // Odd/even counter. Tag or no tag.
   $score = 1; // Starting score per word
   $accum = ' '; // Accumulator for cleaned up data
   $tagstack = array(); // Stack with open tags
   $tagwords = 0; // Counter for consecutive words
-  $focus = 1; // Focus state
+  $focus = 1; // Focus state.
 
-  $scored_words = array(); // Accumulator for words for index
+  $scored_words = array(); // Accumulator for words for index.
 
   foreach ($split as $value) {
     if ($tag) {
-      // Increase or decrease score per word based on tag
+      // Increase or decrease score per word based on tag.
       list($tagname) = explode(' ', $value, 2);
       $tagname = Unicode::strtolower($tagname);
       // Closing or opening tag?
@@ -468,7 +467,7 @@ function search_index($type, $sid, $langcode, $text) {
           $score = 1;
         }
         else {
-          // Remove from tag stack and decrement score
+          // Remove from tag stack and decrement score.
           $score = max(1, $score - $tags[array_shift($tagstack)]);
         }
       }
@@ -480,7 +479,7 @@ function search_index($type, $sid, $langcode, $text) {
           $score = 1;
         }
         else {
-          // Add to open tag stack and increment score
+          // Add to open tag stack and increment score.
           array_unshift($tagstack, $tagname);
           $score += $tags[$tagname];
         }
@@ -489,13 +488,13 @@ function search_index($type, $sid, $langcode, $text) {
       $tagwords = 0;
     }
     else {
-      // Note: use of PREG_SPLIT_DELIM_CAPTURE above will introduce empty values
+      // Note: use of PREG_SPLIT_DELIM_CAPTURE above will introduce empty values.
       if ($value != '') {
         $words = search_index_split($value, $langcode);
         foreach ($words as $word) {
-          // Add word to accumulator
+          // Add word to accumulator.
           $accum .= $word . ' ';
-          // Check wordlength
+          // Check wordlength.
           if (is_numeric($word) || Unicode::strlen($word) >= $minimum_word_size) {
             if (!isset($scored_words[$word])) {
               $scored_words[$word] = 0;
@@ -521,7 +520,7 @@ function search_index($type, $sid, $langcode, $text) {
   // cache tags.
   search_index_clear($type, $sid, $langcode);
 
-  // Insert cleaned up data into dataset
+  // Insert cleaned up data into dataset.
   db_insert('search_dataset')
     ->fields(array(
       'sid' => $sid,
@@ -532,7 +531,7 @@ function search_index($type, $sid, $langcode, $text) {
     ))
     ->execute();
 
-  // Insert results into search index
+  // Insert results into search index.
   foreach ($scored_words as $word => $score) {
     // If a word already exists in the database, its score gets increased
     // appropriately. If not, we create a new record with the appropriate
diff --git a/core/modules/search/src/Tests/SearchCommentCountToggleTest.php b/core/modules/search/src/Tests/SearchCommentCountToggleTest.php
index 3e19fb2..dd2be01 100644
--- a/core/modules/search/src/Tests/SearchCommentCountToggleTest.php
+++ b/core/modules/search/src/Tests/SearchCommentCountToggleTest.php
@@ -59,12 +59,12 @@ protected function setUp() {
     $this->searchableNodes['1 comment'] = $this->drupalCreateNode($node_params);
     $this->searchableNodes['0 comments'] = $this->drupalCreateNode($node_params);
 
-    // Create a comment array
+    // Create a comment array.
     $edit_comment = array();
     $edit_comment['subject[0][value]'] = $this->randomMachineName();
     $edit_comment['comment_body[0][value]'] = $this->randomMachineName();
 
-    // Post comment to the test node with comment
+    // Post comment to the test node with comment.
     $this->drupalPostForm('comment/reply/node/' . $this->searchableNodes['1 comment']->id() . '/comment', $edit_comment, t('Save'));
 
     // First update the index. This does the initial processing.
@@ -86,12 +86,12 @@ function testSearchCommentCountToggle() {
     );
     $this->drupalGet('search/node');
 
-    // Test comment count display for nodes with comment status set to Open
+    // Test comment count display for nodes with comment status set to Open.
     $this->drupalPostForm(NULL, $edit, t('Search'));
     $this->assertText(t('0 comments'), 'Empty comment count displays for nodes with comment status set to Open');
     $this->assertText(t('1 comment'), 'Non-empty comment count displays for nodes with comment status set to Open');
 
-    // Test comment count display for nodes with comment status set to Closed
+    // Test comment count display for nodes with comment status set to Closed.
     $this->searchableNodes['0 comments']->set('comment', CommentItemInterface::CLOSED);
     $this->searchableNodes['0 comments']->save();
     $this->searchableNodes['1 comment']->set('comment', CommentItemInterface::CLOSED);
@@ -101,7 +101,7 @@ function testSearchCommentCountToggle() {
     $this->assertNoText(t('0 comments'), 'Empty comment count does not display for nodes with comment status set to Closed');
     $this->assertText(t('1 comment'), 'Non-empty comment count displays for nodes with comment status set to Closed');
 
-    // Test comment count display for nodes with comment status set to Hidden
+    // Test comment count display for nodes with comment status set to Hidden.
     $this->searchableNodes['0 comments']->set('comment', CommentItemInterface::HIDDEN);
     $this->searchableNodes['0 comments']->save();
     $this->searchableNodes['1 comment']->set('comment', CommentItemInterface::HIDDEN);
diff --git a/core/modules/search/src/Tests/SearchCommentTest.php b/core/modules/search/src/Tests/SearchCommentTest.php
index acce26e..fde4d29 100644
--- a/core/modules/search/src/Tests/SearchCommentTest.php
+++ b/core/modules/search/src/Tests/SearchCommentTest.php
@@ -194,7 +194,6 @@ function testSearchResultsComment() {
 
     // @todo Verify the actual search results.
     //   https://www.drupal.org/node/2551135
-
     // Verify there is no script tag in search results.
     $this->assertNoRaw('<script>');
 
diff --git a/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php b/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
index 7279ade..c5d9944 100644
--- a/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
+++ b/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
@@ -108,7 +108,7 @@ function testSearchModuleSettingsPage() {
     $this->drupalGet('admin/config/search/pages');
     $this->clickLink(t('Edit'), 1);
 
-    // Ensure that the default setting was picked up from the default config
+    // Ensure that the default setting was picked up from the default config.
     $this->assertTrue($this->xpath('//select[@id="edit-extra-type-settings-boost"]//option[@value="bi" and @selected="selected"]'), 'Module specific settings are picked up from the default config');
 
     // Change extra type setting and also modify a common search setting.
diff --git a/core/modules/search/src/Tests/SearchMultilingualEntityTest.php b/core/modules/search/src/Tests/SearchMultilingualEntityTest.php
index efbf7d9..8855974 100644
--- a/core/modules/search/src/Tests/SearchMultilingualEntityTest.php
+++ b/core/modules/search/src/Tests/SearchMultilingualEntityTest.php
@@ -151,7 +151,6 @@ function testMultilingualSearch() {
     search_update_totals();
 
     // Test search results.
-
     // This should find two results for the second and third node.
     $this->plugin->setSearch('English OR Hungarian', array(), array());
     $search_result = $this->plugin->execute();
diff --git a/core/modules/search/src/Tests/SearchNodeUpdateAndDeletionTest.php b/core/modules/search/src/Tests/SearchNodeUpdateAndDeletionTest.php
index e73ca86..d53ef7c 100644
--- a/core/modules/search/src/Tests/SearchNodeUpdateAndDeletionTest.php
+++ b/core/modules/search/src/Tests/SearchNodeUpdateAndDeletionTest.php
@@ -46,16 +46,16 @@ function testSearchIndexUpdateOnNodeChange() {
     $node_search_plugin->updateIndex();
     search_update_totals();
 
-    // Search the node to verify it appears in search results
+    // Search the node to verify it appears in search results.
     $edit = array('keys' => 'knights');
     $this->drupalPostForm('search/node', $edit, t('Search'));
     $this->assertText($node->label());
 
-    // Update the node
+    // Update the node.
     $node->body->value = "We want a shrubbery!";
     $node->save();
 
-    // Run indexer again
+    // Run indexer again.
     $node_search_plugin->updateIndex();
     search_update_totals();
 
@@ -80,7 +80,7 @@ function testSearchIndexUpdateOnNodeDeletion() {
     $node_search_plugin->updateIndex();
     search_update_totals();
 
-    // Search the node to verify it appears in search results
+    // Search the node to verify it appears in search results.
     $edit = array('keys' => 'dragons');
     $this->drupalPostForm('search/node', $edit, t('Search'));
     $this->assertText($node->label());
diff --git a/core/modules/search/src/Tests/SearchTokenizerTest.php b/core/modules/search/src/Tests/SearchTokenizerTest.php
index fd410c9..bb9b19c 100644
--- a/core/modules/search/src/Tests/SearchTokenizerTest.php
+++ b/core/modules/search/src/Tests/SearchTokenizerTest.php
@@ -29,7 +29,6 @@ function testTokenizer() {
 
     // Create a string of CJK characters from various character ranges in
     // the Unicode tables.
-
     // Beginnings of the character ranges.
     $starts = array(
       'CJK unified' => 0x4e00,
diff --git a/core/modules/search/tests/src/Kernel/SearchExcerptTest.php b/core/modules/search/tests/src/Kernel/SearchExcerptTest.php
index 85c0917..6352701 100644
--- a/core/modules/search/tests/src/Kernel/SearchExcerptTest.php
+++ b/core/modules/search/tests/src/Kernel/SearchExcerptTest.php
@@ -61,7 +61,7 @@ function testSearchExcerpt() {
     $this->assertTrue(strpos($result, 'í') > 0, 'Entities are converted in excerpt');
 
     // The node body that will produce this rendered $text is:
-    // 123456789 HTMLTest +123456789+&lsquo;  +&lsquo;  +&lsquo;  +&lsquo;  +12345678  &nbsp;&nbsp;  +&lsquo;  +&lsquo;  +&lsquo;   &lsquo;
+    // 123456789 HTMLTest +123456789+&lsquo;  +&lsquo;  +&lsquo;  +&lsquo;  +12345678  &nbsp;&nbsp;  +&lsquo;  +&lsquo;  +&lsquo;   &lsquo;.
     $text = "<div class=\"field field--name-body field--type-text-with-summary field--label-hidden\"><div class=\"field__items\"><div class=\"field__item even\" property=\"content:encoded\"><p>123456789 HTMLTest +123456789+‘  +‘  +‘  +‘  +12345678      +‘  +‘  +‘   ‘</p>\n</div></div></div> ";
     $result = $this->doSearchExcerpt('HTMLTest', $text);
     $this->assertFalse(empty($result), 'Rendered Multi-byte HTML encodings are not corrupted in search excerpts');
diff --git a/core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php b/core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php
index 72964bb..a396c97 100644
--- a/core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php
+++ b/core/modules/shortcut/src/Plugin/migrate/destination/EntityShortcutSet.php
@@ -18,7 +18,7 @@ class EntityShortcutSet extends EntityConfigBase {
   protected function getEntity(Row $row, array $old_destination_id_values) {
     $entity = parent::getEntity($row, $old_destination_id_values);
     // Set the "syncing" flag to TRUE, to avoid duplication of default
-    // shortcut links
+    // shortcut links.
     $entity->setSyncing(TRUE);
     return $entity;
   }
diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module
index 58ede7c..6be304d 100644
--- a/core/modules/simpletest/simpletest.module
+++ b/core/modules/simpletest/simpletest.module
@@ -295,7 +295,7 @@ function simpletest_phpunit_run_command(array $unescaped_test_classnames, $phpun
   $old_cwd = getcwd();
   chdir(\Drupal::root() . "/core");
 
-  // exec in a subshell so that the environment is isolated when running tests
+  // Exec in a subshell so that the environment is isolated when running tests
   // via the simpletest UI.
   $ret = exec(join($command, " "), $output, $status);
 
@@ -464,7 +464,7 @@ function simpletest_log_read($test_id, $database_prefix, $test_class) {
     foreach (file($log) as $line) {
       if (preg_match('/\[.*?\] (.*?): (.*?) in (.*) on line (\d+)/', $line, $match)) {
         // Parse PHP fatal errors for example: PHP Fatal error: Call to
-        // undefined function break_me() in /path/to/file.php on line 17
+        // undefined function break_me() in /path/to/file.php on line 17.
         $caller = array(
           'line' => $match[4],
           'file' => $match[3],
diff --git a/core/modules/simpletest/src/InstallerTestBase.php b/core/modules/simpletest/src/InstallerTestBase.php
index cf550ac..660db38 100644
--- a/core/modules/simpletest/src/InstallerTestBase.php
+++ b/core/modules/simpletest/src/InstallerTestBase.php
@@ -126,7 +126,6 @@ protected function setUp() {
 
     // @todo Allow test classes based on this class to act on further installer
     //   screens.
-
     // Configure site.
     $this->setUpSite();
 
diff --git a/core/modules/simpletest/src/KernelTestBase.php b/core/modules/simpletest/src/KernelTestBase.php
index 7714259..d8ed899 100644
--- a/core/modules/simpletest/src/KernelTestBase.php
+++ b/core/modules/simpletest/src/KernelTestBase.php
@@ -154,7 +154,7 @@ protected function setUp() {
 
     if (file_exists($directory . '/settings.testing.php')) {
       // Add the name of the testing class to settings.php and include the
-      // testing specific overrides
+      // testing specific overrides.
       $hash_salt = Settings::getHashSalt();
       $test_class = get_class($this);
       $container_yamls_export = Variable::export($container_yamls);
diff --git a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
index 7ec9e19..508173e 100644
--- a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
+++ b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
@@ -124,7 +124,6 @@ public function testTestingThroughUI() {
     // We can not test WebTestBase tests here since they require a valid .htkey
     // to be created. However this scenario is covered by the testception of
     // \Drupal\simpletest\Tests\SimpleTestTest.
-
     $tests = array(
       // A KernelTestBase test.
       'Drupal\system\Tests\DrupalKernel\DrupalKernelTest',
diff --git a/core/modules/simpletest/src/Tests/SimpleTestTest.php b/core/modules/simpletest/src/Tests/SimpleTestTest.php
index 792741e..4e56602 100644
--- a/core/modules/simpletest/src/Tests/SimpleTestTest.php
+++ b/core/modules/simpletest/src/Tests/SimpleTestTest.php
@@ -183,7 +183,6 @@ function stubTest() {
 
     // The first three fails are caused by enabling a non-existent module in
     // setUp().
-
     // This causes the fourth of the five fails asserted in
     // confirmStubResults().
     $this->fail($this->failMessage);
diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php
index 197e1a9..7243419 100644
--- a/core/modules/simpletest/src/WebTestBase.php
+++ b/core/modules/simpletest/src/WebTestBase.php
@@ -623,7 +623,7 @@ protected function prepareSettings() {
       // Copy the testing-specific settings.php overrides in place.
       copy($settings_testing_file, $directory . '/settings.testing.php');
       // Add the name of the testing class to settings.php and include the
-      // testing specific overrides
+      // testing specific overrides.
       file_put_contents($directory . '/settings.php', "\n\$test_class = '" . get_class($this) ."';\n" . 'include DRUPAL_ROOT . \'/\' . $site_path . \'/settings.testing.php\';' ."\n", FILE_APPEND);
     }
     $settings_services_file = DRUPAL_ROOT . '/' . $this->originalSite . '/testing.services.yml';
diff --git a/core/modules/simpletest/tests/src/Unit/TestInfoParsingTest.php b/core/modules/simpletest/tests/src/Unit/TestInfoParsingTest.php
index b96ea79..ef372e0 100644
--- a/core/modules/simpletest/tests/src/Unit/TestInfoParsingTest.php
+++ b/core/modules/simpletest/tests/src/Unit/TestInfoParsingTest.php
@@ -69,7 +69,7 @@ public function infoParserProvider() {
       'Drupal\Tests\simpletest\Functional\BrowserTestBaseTest',
     ];
 
-    // kernel PHPUnit test.
+    // Kernel PHPUnit test.
     $tests['phpunit-kernel'] = [
       // Expected result.
       [
diff --git a/core/modules/syslog/tests/src/Kernel/Migrate/d7/MigrateSyslogConfigsTest.php b/core/modules/syslog/tests/src/Kernel/Migrate/d7/MigrateSyslogConfigsTest.php
index e81b821..61d2a27 100644
--- a/core/modules/syslog/tests/src/Kernel/Migrate/d7/MigrateSyslogConfigsTest.php
+++ b/core/modules/syslog/tests/src/Kernel/Migrate/d7/MigrateSyslogConfigsTest.php
@@ -35,7 +35,7 @@ protected function setUp() {
    */
   public function testSyslogSettings() {
     $config = $this->config('syslog.settings');
-    // 8 == LOG_USER
+    // 8 == LOG_USER.
     $this->assertIdentical('8', $config->get('facility'));
     $this->assertIdentical('!base_url|!timestamp|!type|!ip|!request_uri|!referer|!uid|!link|!message', $config->get('format'));
     $this->assertIdentical('drupal', $config->get('identity'));
diff --git a/core/modules/system/src/CronController.php b/core/modules/system/src/CronController.php
index ec11569..c3e8bc8 100644
--- a/core/modules/system/src/CronController.php
+++ b/core/modules/system/src/CronController.php
@@ -46,7 +46,7 @@ public static function create(ContainerInterface $container) {
   public function run() {
     $this->cron->run();
 
-    // HTTP 204 is "No content", meaning "I did what you asked and we're done."
+    // HTTP 204 is "No content", meaning "I did what you asked and we're done.".
     return new Response('', 204);
   }
 
diff --git a/core/modules/system/src/Form/ModulesListForm.php b/core/modules/system/src/Form/ModulesListForm.php
index 0cd54f3..60ec453 100644
--- a/core/modules/system/src/Form/ModulesListForm.php
+++ b/core/modules/system/src/Form/ModulesListForm.php
@@ -257,7 +257,7 @@ protected function buildRow(array $modules, Extension $module, $distribution) {
 
     // Disable the checkbox for required modules.
     if (!empty($module->info['required'])) {
-      // Used when displaying modules that are required by the installation profile
+      // Used when displaying modules that are required by the installation profile.
       $row['enable']['#disabled'] = TRUE;
       $row['#required_by'][] = $distribution . (!empty($module->info['explanation']) ? ' ('. $module->info['explanation'] .')' : '');
     }
diff --git a/core/modules/system/src/Form/ModulesUninstallForm.php b/core/modules/system/src/Form/ModulesUninstallForm.php
index c2b8389..705e567 100644
--- a/core/modules/system/src/Form/ModulesUninstallForm.php
+++ b/core/modules/system/src/Form/ModulesUninstallForm.php
@@ -109,7 +109,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
     $form['modules'] = array();
 
     // Only build the rest of the form if there are any modules available to
-    // uninstall;
+    // uninstall;.
     if (empty($uninstallable)) {
       return $form;
     }
diff --git a/core/modules/system/src/Form/ThemeSettingsForm.php b/core/modules/system/src/Form/ThemeSettingsForm.php
index c65da98..e386090 100644
--- a/core/modules/system/src/Form/ThemeSettingsForm.php
+++ b/core/modules/system/src/Form/ThemeSettingsForm.php
@@ -103,7 +103,7 @@ public function buildForm(array $form, FormStateInterface $form_state, $theme =
 
     $themes = $this->themeHandler->listInfo();
 
-    // Default settings are defined in theme_get_setting() in includes/theme.inc
+    // Default settings are defined in theme_get_setting() in includes/theme.inc.
     if ($theme) {
       if (!$this->themeHandler->hasUi($theme)) {
         throw new NotFoundHttpException();
@@ -131,7 +131,7 @@ public function buildForm(array $form, FormStateInterface $form_state, $theme =
       '#value' => $config_key
     );
 
-    // Toggle settings
+    // Toggle settings.
     $toggles = array(
       'node_user_picture' => t('User pictures in posts'),
       'comment_user_picture' => t('User pictures in comments'),
@@ -139,7 +139,7 @@ public function buildForm(array $form, FormStateInterface $form_state, $theme =
       'favicon' => t('Shortcut icon'),
     );
 
-    // Some features are not always available
+    // Some features are not always available.
     $disabled = array();
     if (!user_picture_enabled()) {
       $disabled['toggle_node_user_picture'] = TRUE;
diff --git a/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Rotate.php b/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Rotate.php
index 62a5405..4f91a31 100644
--- a/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Rotate.php
+++ b/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Rotate.php
@@ -57,7 +57,6 @@ protected function validateArguments(array $arguments) {
     if ($this->getToolkit()->getType() === IMAGETYPE_GIF) {
       // GIF does not work with a transparency channel, but can define 1 color
       // in its palette to act as transparent.
-
       // Get the current transparent color, if any.
       $gif_transparent_id = imagecolortransparent($this->getToolkit()->getResource());
       if ($gif_transparent_id !== -1) {
diff --git a/core/modules/system/src/SystemManager.php b/core/modules/system/src/SystemManager.php
index e5d3a18..735dac7 100644
--- a/core/modules/system/src/SystemManager.php
+++ b/core/modules/system/src/SystemManager.php
@@ -104,7 +104,7 @@ public function checkRequirements() {
    *   An array of system requirements.
    */
   public function listRequirements() {
-    // Load .install files
+    // Load .install files.
     include_once DRUPAL_ROOT . '/core/includes/install.inc';
     drupal_load_updates();
 
diff --git a/core/modules/system/src/Tests/Ajax/MultiFormTest.php b/core/modules/system/src/Tests/Ajax/MultiFormTest.php
index 4dab3cf..698db1d 100644
--- a/core/modules/system/src/Tests/Ajax/MultiFormTest.php
+++ b/core/modules/system/src/Tests/Ajax/MultiFormTest.php
@@ -79,7 +79,6 @@ function testMultiForm() {
 
     // Submit the "add more" button of each form twice. After each corresponding
     // page update, ensure the same as above.
-
     for ($i = 0; $i < 2; $i++) {
       $forms = $this->xpath($form_xpath);
       foreach ($forms as $offset => $form) {
diff --git a/core/modules/system/src/Tests/Common/SizeUnitTest.php b/core/modules/system/src/Tests/Common/SizeUnitTest.php
index 4fd5c17..83b051b 100644
--- a/core/modules/system/src/Tests/Common/SizeUnitTest.php
+++ b/core/modules/system/src/Tests/Common/SizeUnitTest.php
@@ -31,10 +31,10 @@ protected function setUp() {
     );
     $this->roundedTestCases = array(
       '2 bytes' => 2,
-      '1 MB' => ($kb * $kb) - 1, // rounded to 1 MB (not 1000 or 1024 kilobyte!)
+      '1 MB' => ($kb * $kb) - 1, // Rounded to 1 MB (not 1000 or 1024 kilobyte!)
       round(3623651 / ($this->exactTestCases['1 MB']), 2) . ' MB' => 3623651, // megabytes
       round(67234178751368124 / ($this->exactTestCases['1 PB']), 2) . ' PB' => 67234178751368124, // petabytes
-      round(235346823821125814962843827 / ($this->exactTestCases['1 YB']), 2) . ' YB' => 235346823821125814962843827, // yottabytes
+      round(235346823821125814962843827 / ($this->exactTestCases['1 YB']), 2) . ' YB' => 235346823821125814962843827, // yottabytes.
     );
   }
 
diff --git a/core/modules/system/src/Tests/Common/TableSortExtenderUnitTest.php b/core/modules/system/src/Tests/Common/TableSortExtenderUnitTest.php
index 9760868..4991e60 100644
--- a/core/modules/system/src/Tests/Common/TableSortExtenderUnitTest.php
+++ b/core/modules/system/src/Tests/Common/TableSortExtenderUnitTest.php
@@ -19,7 +19,6 @@ class TableSortExtenderUnitTest extends KernelTestBase {
   function testTableSortInit() {
 
     // Test simple table headers.
-
     $headers = array('foo', 'bar', 'baz');
     // Reset $request->query to prevent parameters from Simpletest and Batch API
     // ending up in $ts['query'].
@@ -66,7 +65,6 @@ function testTableSortInit() {
     $this->assertEqual($ts, $expected_ts, 'Simple table headers plus $_GET parameters sorted correctly.');
 
     // Test complex table headers.
-
     $headers = array(
       'foo',
       array(
diff --git a/core/modules/system/src/Tests/Database/SelectTableSortDefaultTest.php b/core/modules/system/src/Tests/Database/SelectTableSortDefaultTest.php
index 7ccbbb5..fd32a12 100644
--- a/core/modules/system/src/Tests/Database/SelectTableSortDefaultTest.php
+++ b/core/modules/system/src/Tests/Database/SelectTableSortDefaultTest.php
@@ -21,8 +21,7 @@ function testTableSortQuery() {
       array('field' => t('Task ID'), 'sort' => 'asc', 'first' => 'eat', 'last' => 'perform at superbowl'),
       array('field' => t('Task'), 'sort' => 'asc', 'first' => 'code', 'last' => 'sleep'),
       array('field' => t('Task'), 'sort' => 'desc', 'first' => 'sleep', 'last' => 'code'),
-      // more elements here
-
+      // More elements here.
     );
 
     foreach ($sorts as $sort) {
@@ -49,8 +48,7 @@ function testTableSortQueryFirst() {
       array('field' => t('Task ID'), 'sort' => 'asc', 'first' => 'eat', 'last' => 'perform at superbowl'),
       array('field' => t('Task'), 'sort' => 'asc', 'first' => 'code', 'last' => 'sleep'),
       array('field' => t('Task'), 'sort' => 'desc', 'first' => 'sleep', 'last' => 'code'),
-      // more elements here
-
+      // More elements here.
     );
 
     foreach ($sorts as $sort) {
diff --git a/core/modules/system/src/Tests/Datetime/DrupalDateTimeTest.php b/core/modules/system/src/Tests/Datetime/DrupalDateTimeTest.php
index 219bc34..54d6513 100644
--- a/core/modules/system/src/Tests/Datetime/DrupalDateTimeTest.php
+++ b/core/modules/system/src/Tests/Datetime/DrupalDateTimeTest.php
@@ -102,7 +102,7 @@ public function testDateTimezone() {
    * Tests the ability to override the time zone in the format method.
    */
   function testTimezoneFormat() {
-    // Create a date in UTC
+    // Create a date in UTC.
     $date = DrupalDateTime::createFromTimestamp(87654321, 'UTC');
 
     // Verify that the date format method displays the default time zone.
diff --git a/core/modules/system/src/Tests/DrupalKernel/ServiceDestructionTest.php b/core/modules/system/src/Tests/DrupalKernel/ServiceDestructionTest.php
index db3808a..018bf27 100644
--- a/core/modules/system/src/Tests/DrupalKernel/ServiceDestructionTest.php
+++ b/core/modules/system/src/Tests/DrupalKernel/ServiceDestructionTest.php
@@ -26,7 +26,7 @@ public function testDestructionUsed() {
     // The service has not been destructed yet.
     $this->assertNull(\Drupal::state()->get('service_provider_test.destructed'));
 
-    // Call the class and then terminate the kernel
+    // Call the class and then terminate the kernel.
     $this->container->get('service_provider_test_class');
 
     $response = new Response();
diff --git a/core/modules/system/src/Tests/File/DirectoryTest.php b/core/modules/system/src/Tests/File/DirectoryTest.php
index 61256fa..db11624 100644
--- a/core/modules/system/src/Tests/File/DirectoryTest.php
+++ b/core/modules/system/src/Tests/File/DirectoryTest.php
@@ -71,7 +71,6 @@ function testFileCheckDirectoryHandling() {
       // directories. When executing a chmod() on a directory, PHP only sets the
       // read-only flag, which doesn't prevent files to actually be written
       // in the directory on any recent version of Windows.
-
       // Make directory read only.
       @drupal_chmod($directory, 0444);
       $this->assertFalse(file_prepare_directory($directory, 0), 'Error reported for a non-writeable directory.', 'File');
diff --git a/core/modules/system/src/Tests/File/MimeTypeTest.php b/core/modules/system/src/Tests/File/MimeTypeTest.php
index b96b1bf..481261a 100644
--- a/core/modules/system/src/Tests/File/MimeTypeTest.php
+++ b/core/modules/system/src/Tests/File/MimeTypeTest.php
@@ -46,7 +46,7 @@ public function testFileMimeTypeDetection() {
       $output = $guesser->guess($prefix . $input);
       $this->assertIdentical($output, $expected, format_string('Mimetype for %input is %output (expected: %expected).', array('%input' => $input, '%output' => $output, '%expected' => $expected)));
 
-      // Test normal path equivalent
+      // Test normal path equivalent.
       $output = $guesser->guess($input);
       $this->assertIdentical($output, $expected, format_string('Mimetype (using default mappings) for %input is %output (expected: %expected).', array('%input' => $input, '%output' => $output, '%expected' => $expected)));
     }
diff --git a/core/modules/system/src/Tests/File/ReadOnlyStreamWrapperTest.php b/core/modules/system/src/Tests/File/ReadOnlyStreamWrapperTest.php
index 838d458..8d5f291 100644
--- a/core/modules/system/src/Tests/File/ReadOnlyStreamWrapperTest.php
+++ b/core/modules/system/src/Tests/File/ReadOnlyStreamWrapperTest.php
@@ -27,49 +27,49 @@ class ReadOnlyStreamWrapperTest extends FileTestBase {
    * Test read-only specific behavior.
    */
   function testReadOnlyBehavior() {
-    // Generate a test file
+    // Generate a test file.
     $filename = $this->randomMachineName();
     $site_path = $this->container->get('site.path');
     $filepath = $site_path . '/files/' . $filename;
     file_put_contents($filepath, $filename);
 
-    // Generate a read-only stream wrapper instance
+    // Generate a read-only stream wrapper instance.
     $uri = $this->scheme . '://' . $filename;
     \Drupal::service('stream_wrapper_manager')->getViaScheme($this->scheme);
 
-    // Attempt to open a file in read/write mode
+    // Attempt to open a file in read/write mode.
     $handle = @fopen($uri, 'r+');
     $this->assertFalse($handle, 'Unable to open a file for reading and writing with the read-only stream wrapper.');
-    // Attempt to open a file in binary read mode
+    // Attempt to open a file in binary read mode.
     $handle = fopen($uri, 'rb');
     $this->assertTrue($handle, 'Able to open a file for reading in binary mode with the read-only stream wrapper.');
     $this->assertTrue(fclose($handle), 'Able to close file opened in binary mode using the read_only stream wrapper.');
-    // Attempt to open a file in text read mode
+    // Attempt to open a file in text read mode.
     $handle = fopen($uri, 'rt');
     $this->assertTrue($handle, 'Able to open a file for reading in text mode with the read-only stream wrapper.');
     $this->assertTrue(fclose($handle), 'Able to close file opened in text mode using the read_only stream wrapper.');
-    // Attempt to open a file in read mode
+    // Attempt to open a file in read mode.
     $handle = fopen($uri, 'r');
     $this->assertTrue($handle, 'Able to open a file for reading with the read-only stream wrapper.');
-    // Attempt to change file permissions
+    // Attempt to change file permissions.
     $this->assertFalse(@chmod($uri, 0777), 'Unable to change file permissions when using read-only stream wrapper.');
-    // Attempt to acquire an exclusive lock for writing
+    // Attempt to acquire an exclusive lock for writing.
     $this->assertFalse(@flock($handle, LOCK_EX | LOCK_NB), 'Unable to acquire an exclusive lock using the read-only stream wrapper.');
-    // Attempt to obtain a shared lock
+    // Attempt to obtain a shared lock.
     $this->assertTrue(flock($handle, LOCK_SH | LOCK_NB), 'Able to acquire a shared lock using the read-only stream wrapper.');
-    // Attempt to release a shared lock
+    // Attempt to release a shared lock.
     $this->assertTrue(flock($handle, LOCK_UN | LOCK_NB), 'Able to release a shared lock using the read-only stream wrapper.');
-    // Attempt to truncate the file
+    // Attempt to truncate the file.
     $this->assertFalse(@ftruncate($handle, 0), 'Unable to truncate using the read-only stream wrapper.');
-    // Attempt to write to the file
+    // Attempt to write to the file.
     $this->assertFalse(@fwrite($handle, $this->randomMachineName()), 'Unable to write to file using the read-only stream wrapper.');
-    // Attempt to flush output to the file
+    // Attempt to flush output to the file.
     $this->assertFalse(@fflush($handle), 'Unable to flush output to file using the read-only stream wrapper.');
     // Attempt to close the stream.  (Suppress errors, as fclose triggers fflush.)
     $this->assertTrue(fclose($handle), 'Able to close file using the read_only stream wrapper.');
-    // Test the rename() function
+    // Test the rename() function.
     $this->assertFalse(@rename($uri, $this->scheme . '://newname.txt'), 'Unable to rename files using the read-only stream wrapper.');
-    // Test the unlink() function
+    // Test the unlink() function.
     $this->assertTrue(@drupal_unlink($uri), 'Able to unlink file using read-only stream wrapper.');
     $this->assertTrue(file_exists($filepath), 'Unlink File was not actually deleted.');
 
@@ -78,7 +78,7 @@ function testReadOnlyBehavior() {
     $dir = $site_path . '/files/' . $dirname;
     $readonlydir = $this->scheme . '://' . $dirname;
     $this->assertFalse(@drupal_mkdir($readonlydir, 0775, 0), 'Unable to create directory with read-only stream wrapper.');
-    // Create a temporary directory for testing purposes
+    // Create a temporary directory for testing purposes.
     $this->assertTrue(drupal_mkdir($dir), 'Test directory created.');
     // Test the rmdir() function by attempting to remove the directory.
     $this->assertFalse(@drupal_rmdir($readonlydir), 'Unable to delete directory with read-only stream wrapper.');
diff --git a/core/modules/system/src/Tests/File/UnmanagedCopyTest.php b/core/modules/system/src/Tests/File/UnmanagedCopyTest.php
index 4e7b97f..2bb2fd3 100644
--- a/core/modules/system/src/Tests/File/UnmanagedCopyTest.php
+++ b/core/modules/system/src/Tests/File/UnmanagedCopyTest.php
@@ -15,7 +15,7 @@ class UnmanagedCopyTest extends FileTestBase {
    * Copy a normal file.
    */
   function testNormal() {
-    // Create a file for testing
+    // Create a file for testing.
     $uri = $this->createUri();
 
     // Copying to a new name.
@@ -45,7 +45,7 @@ function testNormal() {
    * Copy a non-existent file.
    */
   function testNonExistent() {
-    // Copy non-existent file
+    // Copy non-existent file.
     $desired_filepath = $this->randomMachineName();
     $this->assertFalse(file_exists($desired_filepath), "Randomly named file doesn't exists.");
     $new_filepath = file_unmanaged_copy($desired_filepath, $this->randomMachineName());
@@ -56,7 +56,7 @@ function testNonExistent() {
    * Copy a file onto itself.
    */
   function testOverwriteSelf() {
-    // Create a file for testing
+    // Create a file for testing.
     $uri = $this->createUri();
 
     // Copy the file onto itself with renaming works.
diff --git a/core/modules/system/src/Tests/File/UnmanagedDeleteRecursiveTest.php b/core/modules/system/src/Tests/File/UnmanagedDeleteRecursiveTest.php
index 5808eb8..e0606ed 100644
--- a/core/modules/system/src/Tests/File/UnmanagedDeleteRecursiveTest.php
+++ b/core/modules/system/src/Tests/File/UnmanagedDeleteRecursiveTest.php
@@ -12,7 +12,7 @@ class UnmanagedDeleteRecursiveTest extends FileTestBase {
    * Delete a normal file.
    */
   function testSingleFile() {
-    // Create a file for testing
+    // Create a file for testing.
     $filepath = file_default_scheme() . '://' . $this->randomMachineName();
     file_put_contents($filepath, '');
 
diff --git a/core/modules/system/src/Tests/File/UnmanagedDeleteTest.php b/core/modules/system/src/Tests/File/UnmanagedDeleteTest.php
index b193123..4099415 100644
--- a/core/modules/system/src/Tests/File/UnmanagedDeleteTest.php
+++ b/core/modules/system/src/Tests/File/UnmanagedDeleteTest.php
@@ -12,10 +12,10 @@ class UnmanagedDeleteTest extends FileTestBase {
    * Delete a normal file.
    */
   function testNormal() {
-    // Create a file for testing
+    // Create a file for testing.
     $uri = $this->createUri();
 
-    // Delete a regular file
+    // Delete a regular file.
     $this->assertTrue(file_unmanaged_delete($uri), 'Deleted worked.');
     $this->assertFalse(file_exists($uri), 'Test file has actually been deleted.');
   }
@@ -24,7 +24,7 @@ function testNormal() {
    * Try deleting a missing file.
    */
   function testMissing() {
-    // Try to delete a non-existing file
+    // Try to delete a non-existing file.
     $this->assertTrue(file_unmanaged_delete(file_default_scheme() . '/' . $this->randomMachineName()), 'Returns true when deleting a non-existent file.');
   }
 
@@ -35,7 +35,7 @@ function testDirectory() {
     // A directory to operate on.
     $directory = $this->createDirectory();
 
-    // Try to delete a directory
+    // Try to delete a directory.
     $this->assertFalse(file_unmanaged_delete($directory), 'Could not delete the delete directory.');
     $this->assertTrue(file_exists($directory), 'Directory has not been deleted.');
   }
diff --git a/core/modules/system/src/Tests/File/UnmanagedMoveTest.php b/core/modules/system/src/Tests/File/UnmanagedMoveTest.php
index 1cf41f9..83c9240 100644
--- a/core/modules/system/src/Tests/File/UnmanagedMoveTest.php
+++ b/core/modules/system/src/Tests/File/UnmanagedMoveTest.php
@@ -15,7 +15,7 @@ class UnmanagedMoveTest extends FileTestBase {
    * Move a normal file.
    */
   function testNormal() {
-    // Create a file for testing
+    // Create a file for testing.
     $uri = $this->createUri();
 
     // Moving to a new name.
diff --git a/core/modules/system/src/Tests/File/UrlRewritingTest.php b/core/modules/system/src/Tests/File/UrlRewritingTest.php
index 5930011..c98f065 100644
--- a/core/modules/system/src/Tests/File/UrlRewritingTest.php
+++ b/core/modules/system/src/Tests/File/UrlRewritingTest.php
@@ -24,7 +24,6 @@ class UrlRewritingTest extends FileTestBase {
   function testShippedFileURL()  {
     // Test generating a URL to a shipped file (i.e. a file that is part of
     // Drupal core, a module or a theme, for example a JavaScript file).
-
     // Test alteration of file URLs to use a CDN.
     \Drupal::state()->set('file_test.hook_file_url_alter', 'cdn');
     $filepath = 'core/assets/vendor/jquery/jquery.min.js';
@@ -70,7 +69,6 @@ function testShippedFileURL()  {
    */
   function testPublicManagedFileURL() {
     // Test generating a URL to a managed file.
-
     // Test alteration of file URLs to use a CDN.
     \Drupal::state()->set('file_test.hook_file_url_alter', 'cdn');
     $uri = $this->createUri();
diff --git a/core/modules/system/src/Tests/FileTransfer/FileTransferTest.php b/core/modules/system/src/Tests/FileTransfer/FileTransferTest.php
index c8e3820..d1b9874 100644
--- a/core/modules/system/src/Tests/FileTransfer/FileTransferTest.php
+++ b/core/modules/system/src/Tests/FileTransfer/FileTransferTest.php
@@ -60,7 +60,7 @@ function _writeDirectory($base, $files = array()) {
         $this->_writeDirectory($base . DIRECTORY_SEPARATOR . $key, $file);
       }
       else {
-        //just write the filename into the file
+        // Just write the filename into the file.
         file_put_contents($base . DIRECTORY_SEPARATOR . $file, $file);
       }
     }
diff --git a/core/modules/system/src/Tests/Form/FormTest.php b/core/modules/system/src/Tests/Form/FormTest.php
index cf73836..7087dd5 100644
--- a/core/modules/system/src/Tests/Form/FormTest.php
+++ b/core/modules/system/src/Tests/Form/FormTest.php
@@ -279,7 +279,7 @@ public function testInputWithInvalidToken() {
     $this->assertText('The form has become outdated. Copy any unsaved work in the form below');
     $this->assertFieldByName('integer_step', $edit['integer_step']);
 
-    // Check a form with a Url field
+    // Check a form with a Url field.
     $edit = array(
       'url' => $this->randomString(),
       'form_token' => 'invalid token',
diff --git a/core/modules/system/src/Tests/Form/TriggeringElementTest.php b/core/modules/system/src/Tests/Form/TriggeringElementTest.php
index 28b625b..76e4cec 100644
--- a/core/modules/system/src/Tests/Form/TriggeringElementTest.php
+++ b/core/modules/system/src/Tests/Form/TriggeringElementTest.php
@@ -89,7 +89,7 @@ function testAttemptAccessControlBypass() {
     // Ensure that the triggering element was not set to the restricted button.
     // Do this with both a negative and positive assertion, because negative
     // assertions alone can be brittle. See testNoButtonInfoInPost() for why the
-    //triggering element gets set to 'button2'.
+    // triggering element gets set to 'button2'.
     $this->assertNoText('The clicked button is button1.', '$form_state->getTriggeringElement() not set to a restricted button.');
     $this->assertText('The clicked button is button2.', '$form_state->getTriggeringElement() not set to a restricted button.');
   }
diff --git a/core/modules/system/src/Tests/Image/ToolkitTestBase.php b/core/modules/system/src/Tests/Image/ToolkitTestBase.php
index 4a3beaa..2cd76c0 100644
--- a/core/modules/system/src/Tests/Image/ToolkitTestBase.php
+++ b/core/modules/system/src/Tests/Image/ToolkitTestBase.php
@@ -121,7 +121,7 @@ function assertToolkitOperationsCalled(array $expected) {
    * Resets/initializes the history of calls to the test toolkit functions.
    */
   function imageTestReset() {
-    // Keep track of calls to these operations
+    // Keep track of calls to these operations.
     $results = array(
       'parseFile' => array(),
       'save' => array(),
diff --git a/core/modules/system/src/Tests/Installer/InstallerTranslationMultipleLanguageTest.php b/core/modules/system/src/Tests/Installer/InstallerTranslationMultipleLanguageTest.php
index fe5a7f7..954e4c8 100644
--- a/core/modules/system/src/Tests/Installer/InstallerTranslationMultipleLanguageTest.php
+++ b/core/modules/system/src/Tests/Installer/InstallerTranslationMultipleLanguageTest.php
@@ -85,7 +85,6 @@ public function testTranslationsLoaded() {
     // installation language). English should be available based on profile
     // information and should be possible to add if not yet added, making
     // English overrides available.
-
     $config = \Drupal::config('user.settings');
     $override_de = $language_manager->getLanguageConfigOverride('de', 'user.settings');
     $override_en = $language_manager->getLanguageConfigOverride('en', 'user.settings');
diff --git a/core/modules/system/src/Tests/KeyValueStore/StorageTestBase.php b/core/modules/system/src/Tests/KeyValueStore/StorageTestBase.php
index 807d087..671aa25 100644
--- a/core/modules/system/src/Tests/KeyValueStore/StorageTestBase.php
+++ b/core/modules/system/src/Tests/KeyValueStore/StorageTestBase.php
@@ -33,7 +33,7 @@
   protected function setUp() {
     parent::setUp();
 
-    // Define two data collections,
+    // Define two data collections,.
     $this->collections = array(0 => 'zero', 1 => 'one');
 
     // Create several objects for testing.
diff --git a/core/modules/system/src/Tests/Menu/LocalTasksTest.php b/core/modules/system/src/Tests/Menu/LocalTasksTest.php
index 522e12b..169556a 100644
--- a/core/modules/system/src/Tests/Menu/LocalTasksTest.php
+++ b/core/modules/system/src/Tests/Menu/LocalTasksTest.php
@@ -165,7 +165,7 @@ public function testPluginLocalTask() {
     $this->assertEqual('Settings', (string) $result[0]->a, 'The settings tab is active.');
     $this->assertEqual('Derive 1', (string) $result[1]->a, 'The derive1 tab is active.');
 
-    // Ensures that the local tasks contains the proper 'provider key'
+    // Ensures that the local tasks contains the proper 'provider key'.
     $definitions = $this->container->get('plugin.manager.menu.local_task')->getDefinitions();
     $this->assertEqual($definitions['menu_test.local_task_test_tasks_view']['provider'], 'menu_test');
     $this->assertEqual($definitions['menu_test.local_task_test_tasks_edit']['provider'], 'menu_test');
diff --git a/core/modules/system/src/Tests/Menu/MenuLinkTreeTest.php b/core/modules/system/src/Tests/Menu/MenuLinkTreeTest.php
index 1be1153..7203338 100644
--- a/core/modules/system/src/Tests/Menu/MenuLinkTreeTest.php
+++ b/core/modules/system/src/Tests/Menu/MenuLinkTreeTest.php
@@ -94,7 +94,6 @@ public function testCreateLinksInMenu() {
      // - 6
      // - 8
      // With link 6 being the only external link.
-
     $links = array(
       1 => MenuLinkMock::create(array('id' => 'test.example1', 'route_name' => 'example1', 'title' => 'foo', 'parent' => '')),
       2 => MenuLinkMock::create(array('id' => 'test.example2', 'route_name' => 'example2', 'title' => 'bar', 'parent' => 'test.example1', 'route_parameters' => array('foo' => 'bar'))),
diff --git a/core/modules/system/src/Tests/Menu/MenuTreeStorageTest.php b/core/modules/system/src/Tests/Menu/MenuTreeStorageTest.php
index 66df4dd..b7569ef 100644
--- a/core/modules/system/src/Tests/Menu/MenuTreeStorageTest.php
+++ b/core/modules/system/src/Tests/Menu/MenuTreeStorageTest.php
@@ -82,7 +82,7 @@ public function testSimpleHierarchy() {
     // <tools>
     // - test1
     // -- test2
-    // --- test3
+    // --- test3.
     $this->addMenuLink('test1', '');
     $this->assertMenuLink('test1', array('has_children' => 0, 'depth' => 1));
 
@@ -107,8 +107,7 @@ public function testMenuLinkMoving() {
     // --- test3
     // - test4
     // -- test5
-    // --- test6
-
+    // --- test6.
     $this->addMenuLink('test1', '');
     $this->addMenuLink('test2', 'test1');
     $this->addMenuLink('test3', 'test2');
@@ -130,8 +129,7 @@ public function testMenuLinkMoving() {
     // -- test5
     // --- test2
     // ---- test3
-    // --- test6
-
+    // --- test6.
     $this->assertMenuLink('test1', array('has_children' => 0, 'depth' => 1));
     $this->assertMenuLink('test2', array('has_children' => 1, 'depth' => 3), array('test5', 'test4'), array('test3'));
     $this->assertMenuLink('test3', array('has_children' => 0, 'depth' => 4), array('test2', 'test5', 'test4'));
@@ -148,8 +146,7 @@ public function testMenuLinkMoving() {
     // -- test4
     // --- test5
     // ---- test2
-    // ---- test6
-
+    // ---- test6.
     $this->assertMenuLink('test1', array('has_children' => 1, 'depth' => 1), array(), array('test4', 'test5', 'test2', 'test3', 'test6'));
     $this->assertMenuLink('test2', array('has_children' => 0, 'depth' => 4), array('test5', 'test4', 'test1'));
     $this->assertMenuLink('test3', array('has_children' => 0, 'depth' => 2), array('test1'));
@@ -165,7 +162,7 @@ public function testMenuLinkMoving() {
     // -- test3
     // -- test5
     // --- test2
-    // --- test6
+    // --- test6.
     $this->assertMenuLink('test1', array('has_children' => 1, 'depth' => 1), array(), array('test5', 'test2', 'test3', 'test6'));
     $this->assertMenuLink('test2', array('has_children' => 0, 'depth' => 3), array('test5', 'test1'));
     $this->assertMenuLink('test3', array('has_children' => 0, 'depth' => 2), array('test1'));
@@ -182,7 +179,6 @@ public function testMenuDisabledChildLinks() {
     // <tools>
     // - test1
     // -- test2 (disabled)
-
     $this->addMenuLink('test1', '');
     $this->assertMenuLink('test1', array('has_children' => 0, 'depth' => 1));
 
@@ -204,7 +200,7 @@ public function testMenuDisabledChildLinks() {
     // ------ test6
     // ------- test7
     // -------- test8
-    // --------- test9
+    // --------- test9.
     $this->addMenuLink('footerA', '', '<front>', array(), 'footer');
     $visible_children = array();
     for ($i = 3; $i <= $this->treeStorage->maxDepth(); $i++) {
@@ -300,7 +296,7 @@ public function testSubtreeHeight() {
     // - child1
     // -- child2
     // --- child3
-    // ---- child4
+    // ---- child4.
     $this->addMenuLink('root');
     $this->addMenuLink('child1', 'root');
     $this->addMenuLink('child2', 'child1');
@@ -322,7 +318,7 @@ public function testMenuRebuild() {
     // - child1
     // -- child2
     // --- child3
-    // ---- child4
+    // ---- child4.
     $this->addMenuLink('root');
     $this->addMenuLink('child1', 'root');
     $this->addMenuLink('child2', 'child1');
diff --git a/core/modules/system/src/Tests/Module/DependencyTest.php b/core/modules/system/src/Tests/Module/DependencyTest.php
index 8b219b2..351232d 100644
--- a/core/modules/system/src/Tests/Module/DependencyTest.php
+++ b/core/modules/system/src/Tests/Module/DependencyTest.php
@@ -127,7 +127,7 @@ function testModuleEnableOrder() {
     \Drupal::state()->set('module_test.dependency', 'dependency');
     // module_test creates a dependency chain:
     // - color depends on config
-    // - config depends on help
+    // - config depends on help.
     $expected_order = array('help', 'config', 'color');
 
     // Enable the modules through the UI, verifying that the dependency chain
diff --git a/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php b/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php
index 8e91b97..791f03e 100644
--- a/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php
+++ b/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php
@@ -29,17 +29,17 @@ public function testUpcasting() {
     $user = $this->drupalCreateUser(array('access content'));
     $foo = 'bar';
 
-    // paramconverter_test/test_user_node_foo/{user}/{node}/{foo}
+    // paramconverter_test/test_user_node_foo/{user}/{node}/{foo}.
     $this->drupalGet("paramconverter_test/test_user_node_foo/"  . $user->id() . '/' . $node->id() . "/$foo");
     $this->assertRaw("user: {$user->label()}, node: {$node->label()}, foo: $foo", 'user and node upcast by entity name');
 
     // paramconverter_test/test_node_user_user/{node}/{foo}/{user}
-    // options.parameters.foo.type = entity:user
+    // options.parameters.foo.type = entity:user.
     $this->drupalGet("paramconverter_test/test_node_user_user/" . $node->id() . "/" . $user->id() . "/" . $user->id());
     $this->assertRaw("user: {$user->label()}, node: {$node->label()}, foo: {$user->label()}", 'foo converted to user as well');
 
     // paramconverter_test/test_node_node_foo/{user}/{node}/{foo}
-    // options.parameters.user.type = entity:node
+    // options.parameters.user.type = entity:node.
     $this->drupalGet("paramconverter_test/test_node_node_foo/" . $node->id() . "/" . $node->id() . "/$foo");
     $this->assertRaw("user: {$node->label()}, node: {$node->label()}, foo: $foo", 'user is upcast to node (rather than to user)');
   }
@@ -51,7 +51,7 @@ public function testSameTypes() {
     $node = $this->drupalCreateNode(array('title' => $this->randomMachineName(8)));
     $parent = $this->drupalCreateNode(array('title' => $this->randomMachineName(8)));
     // paramconverter_test/node/{node}/set/parent/{parent}
-    // options.parameters.parent.type = entity:node
+    // options.parameters.parent.type = entity:node.
     $this->drupalGet("paramconverter_test/node/" . $node->id() . "/set/parent/" . $parent->id());
     $this->assertRaw("Setting '" . $parent->getTitle() . "' as parent of '" . $node->getTitle() . "'.");
   }
diff --git a/core/modules/system/src/Tests/Path/AliasTest.php b/core/modules/system/src/Tests/Path/AliasTest.php
index 4ef3b94..349d7a1 100644
--- a/core/modules/system/src/Tests/Path/AliasTest.php
+++ b/core/modules/system/src/Tests/Path/AliasTest.php
@@ -16,16 +16,16 @@
 class AliasTest extends PathUnitTestBase {
 
   function testCRUD() {
-    //Prepare database table.
+    // Prepare database table.
     $connection = Database::getConnection();
     $this->fixtures->createTables($connection);
 
-    //Create Path object.
+    // Create Path object.
     $aliasStorage = new AliasStorage($connection, $this->container->get('module_handler'));
 
     $aliases = $this->fixtures->sampleUrlAliases();
 
-    //Create a few aliases
+    // Create a few aliases.
     foreach ($aliases as $idx => $alias) {
       $aliasStorage->save($alias['source'], $alias['alias'], $alias['langcode']);
 
@@ -34,11 +34,11 @@ function testCRUD() {
 
       $this->assertEqual(count($rows), 1, format_string('Created an entry for %alias.', array('%alias' => $alias['alias'])));
 
-      //Cache the pid for further tests.
+      // Cache the pid for further tests.
       $aliases[$idx]['pid'] = $rows[0]->pid;
     }
 
-    //Load a few aliases
+    // Load a few aliases.
     foreach ($aliases as $alias) {
       $pid = $alias['pid'];
       $loadedAlias = $aliasStorage->load(array('pid' => $pid));
@@ -49,7 +49,7 @@ function testCRUD() {
     $loadedAlias = $aliasStorage->load(array('source' => '/node/1'));
     $this->assertEqual($loadedAlias['alias'], '/alias_for_node_1_und', 'The last created alias loaded by default.');
 
-    //Update a few aliases
+    // Update a few aliases.
     foreach ($aliases as $alias) {
       $fields = $aliasStorage->save($alias['source'], $alias['alias'] . '_updated', $alias['langcode'], $alias['pid']);
 
@@ -61,7 +61,7 @@ function testCRUD() {
       $this->assertEqual($pid, $alias['pid'], format_string('Updated entry for pid %pid.', array('%pid' => $pid)));
     }
 
-    //Delete a few aliases
+    // Delete a few aliases.
     foreach ($aliases as $alias) {
       $pid = $alias['pid'];
       $aliasStorage->delete(array('pid' => $pid));
@@ -74,11 +74,11 @@ function testCRUD() {
   }
 
   function testLookupPath() {
-    //Prepare database table.
+    // Prepare database table.
     $connection = Database::getConnection();
     $this->fixtures->createTables($connection);
 
-    //Create AliasManager and Path object.
+    // Create AliasManager and Path object.
     $aliasManager = $this->container->get('path.alias_manager');
     $aliasStorage = new AliasStorage($connection, $this->container->get('module_handler'));
 
diff --git a/core/modules/system/src/Tests/Plugin/Condition/RequestPathTest.php b/core/modules/system/src/Tests/Plugin/Condition/RequestPathTest.php
index dbdb3ac..73dc3e7 100644
--- a/core/modules/system/src/Tests/Plugin/Condition/RequestPathTest.php
+++ b/core/modules/system/src/Tests/Plugin/Condition/RequestPathTest.php
@@ -80,7 +80,6 @@ public function testConditions() {
 
     // Get the request path condition and test and configure it to check against
     // different patterns and requests.
-
     $pages = "/my/pass/page\r\n/my/pass/page2\r\n/foo";
 
     $request = Request::create('/my/pass/page2');
diff --git a/core/modules/system/src/Tests/Routing/ContentNegotiationRoutingTest.php b/core/modules/system/src/Tests/Routing/ContentNegotiationRoutingTest.php
index 8a9a26c..dfc811e 100644
--- a/core/modules/system/src/Tests/Routing/ContentNegotiationRoutingTest.php
+++ b/core/modules/system/src/Tests/Routing/ContentNegotiationRoutingTest.php
@@ -56,8 +56,7 @@ function testContentRouting() {
     $path_alias_storage->save('/conneg/html?_format=json', '/alias.json');
 
     $tests = [
-      // ['path', 'accept', 'content-type'],
-
+      // ['path', 'accept', 'content-type'],.
       // Extension is part of the route path. Constant Content-type.
       ['conneg/simple.json', '', 'application/json'],
       ['conneg/simple.json', 'application/xml', 'application/json'],
@@ -119,11 +118,10 @@ public function testFullNegotiation() {
     $this->enableModules(['accept_header_routing_test']);
     \Drupal::service('router.builder')->rebuild();
     $tests = [
-      // ['path', 'accept', 'content-type'],
-
+      // ['path', 'accept', 'content-type'],.
       ['conneg/negotiate', '', 'text/html'], // 406?
       ['conneg/negotiate', '', 'text/html'], // 406?
-      // ['conneg/negotiate', '*/*', '??'],
+      // ['conneg/negotiate', '*/*', '??'],.
       ['conneg/negotiate', 'application/json', 'application/json'],
       ['conneg/negotiate', 'application/xml', 'application/xml'],
       ['conneg/negotiate', 'application/json', 'application/json'],
diff --git a/core/modules/system/src/Tests/Routing/RouteProviderTest.php b/core/modules/system/src/Tests/Routing/RouteProviderTest.php
index 056a37a..4910516 100644
--- a/core/modules/system/src/Tests/Routing/RouteProviderTest.php
+++ b/core/modules/system/src/Tests/Routing/RouteProviderTest.php
@@ -92,7 +92,7 @@ protected function setUp() {
    * {@inheritdoc}
    */
   public function containerBuild(ContainerBuilder $container) {
-    parent::containerBuild($container); // TODO: Change the autogenerated stub
+    parent::containerBuild($container); // TODO: Change the autogenerated stub.
 
     // Readd the incoming path alias for these tests.
     if ($container->hasDefinition('path_processor_alias')) {
@@ -549,7 +549,7 @@ public function testGetRoutesByPatternWithLongPatterns() {
     $this->assertEqual($result->count(), 0);
     $candidates = $provider->getCandidateOutlines(explode('/', trim($shortest, '/')));
     $this->assertEqual(count($candidates), 7);
-    // A longer patten is not found and returns no candidates
+    // A longer patten is not found and returns no candidates.
     $path_to_test = '/test/1/test2/2/test3/3/4/5/6/test4';
     $result = $provider->getRoutesByPattern($path_to_test);
     $this->assertEqual($result->count(), 0);
diff --git a/core/modules/system/src/Tests/Session/SessionTest.php b/core/modules/system/src/Tests/Session/SessionTest.php
index 6c0c6ee..b9a030c 100644
--- a/core/modules/system/src/Tests/Session/SessionTest.php
+++ b/core/modules/system/src/Tests/Session/SessionTest.php
@@ -219,7 +219,6 @@ function testSessionWrite() {
 
     // Before every request we sleep one second to make sure that if the session
     // is saved, its timestamp will change.
-
     // Modify the session.
     sleep(1);
     $this->drupalGet('session-test/set/foo');
diff --git a/core/modules/system/src/Tests/System/AccessDeniedTest.php b/core/modules/system/src/Tests/System/AccessDeniedTest.php
index ab0264b..c675303 100644
--- a/core/modules/system/src/Tests/System/AccessDeniedTest.php
+++ b/core/modules/system/src/Tests/System/AccessDeniedTest.php
@@ -87,7 +87,7 @@ function testAccessDenied() {
     $this->assertResponse(403);
     $this->assertText(t('Username'), 'Blocks are shown on the default 403 page');
 
-    // Log back in, set the custom 403 page to /user/login and remove the block
+    // Log back in, set the custom 403 page to /user/login and remove the block.
     $this->drupalLogin($this->adminUser);
     $this->config('system.site')->set('page.403', '/user/login')->save();
     $edit = [
diff --git a/core/modules/system/src/Tests/System/PageTitleTest.php b/core/modules/system/src/Tests/System/PageTitleTest.php
index 848eacc..0fa22d3 100644
--- a/core/modules/system/src/Tests/System/PageTitleTest.php
+++ b/core/modules/system/src/Tests/System/PageTitleTest.php
@@ -105,7 +105,7 @@ public function testRoutingTitle() {
     $result = $this->xpath('//h1[@class="page-title"]');
     $this->assertEqual('Foo', (string) $result[0]);
 
-    // Test forms
+    // Test forms.
     $this->drupalGet('form-test/object-builder');
 
     $this->assertTitle('Test dynamic title | Drupal');
diff --git a/core/modules/system/src/Tests/System/ResponseGeneratorTest.php b/core/modules/system/src/Tests/System/ResponseGeneratorTest.php
index 9d6cf4f..17bd03e 100644
--- a/core/modules/system/src/Tests/System/ResponseGeneratorTest.php
+++ b/core/modules/system/src/Tests/System/ResponseGeneratorTest.php
@@ -41,22 +41,22 @@ function testGeneratorHeaderAdded() {
     list($version) = explode('.', \Drupal::VERSION, 2);
     $expectedGeneratorHeader = 'Drupal ' . $version . ' (https://www.drupal.org)';
 
-    // Check to see if the header is added when viewing a normal content page
+    // Check to see if the header is added when viewing a normal content page.
     $this->drupalGet($node->urlInfo());
     $this->assertResponse(200);
     $this->assertEqual('text/html; charset=UTF-8', $this->drupalGetHeader('Content-Type'));
     $this->assertEqual($expectedGeneratorHeader, $this->drupalGetHeader('X-Generator'));
 
-    // Check to see if the header is also added for a non-successful response
+    // Check to see if the header is also added for a non-successful response.
     $this->drupalGet('llama');
     $this->assertResponse(404);
     $this->assertEqual('text/html; charset=UTF-8', $this->drupalGetHeader('Content-Type'));
     $this->assertEqual($expectedGeneratorHeader, $this->drupalGetHeader('X-Generator'));
 
-    // Enable rest API for nodes
+    // Enable rest API for nodes.
     $this->enableService('entity:node', 'GET', 'json');
 
-    // Tests to see if this also works for a non-html request
+    // Tests to see if this also works for a non-html request.
     $this->httpRequest($node->urlInfo()->setOption('query', ['_format' => 'json']), 'GET');
     $this->assertResponse(200);
     $this->assertEqual('application/json', $this->drupalGetHeader('Content-Type'));
diff --git a/core/modules/system/src/Tests/System/UncaughtExceptionTest.php b/core/modules/system/src/Tests/System/UncaughtExceptionTest.php
index 0cc6862..27fd9a0 100644
--- a/core/modules/system/src/Tests/System/UncaughtExceptionTest.php
+++ b/core/modules/system/src/Tests/System/UncaughtExceptionTest.php
@@ -251,7 +251,7 @@ public function testLoggerException() {
     $this->assertText('The website encountered an unexpected error. Please try again later.');
     $this->assertRaw($this->expectedExceptionMessage);
 
-    // Find fatal error logged to the simpletest error.log
+    // Find fatal error logged to the simpletest error.log.
     $errors = file(\Drupal::root() . '/' . $this->siteDirectory . '/error.log');
     $this->assertIdentical(count($errors), 2, 'The error + the error that the logging service is broken has been written to the error log.');
     $this->assertTrue(strpos($errors[0], 'Failed to log error') !== FALSE, 'The error handling logs when an error could not be logged to the logger.');
diff --git a/core/modules/system/src/Tests/Theme/ThemeTest.php b/core/modules/system/src/Tests/Theme/ThemeTest.php
index 4eae7ae..6ae4e7b 100644
--- a/core/modules/system/src/Tests/Theme/ThemeTest.php
+++ b/core/modules/system/src/Tests/Theme/ThemeTest.php
@@ -70,7 +70,7 @@ function testThemeDataTypes() {
       }
     }
 
-    // suggestionnotimplemented is not an implemented theme hook so \Drupal::theme() service
+    // Suggestionnotimplemented is not an implemented theme hook so \Drupal::theme() service
     // should return FALSE instead of a string.
     $output = \Drupal::theme()->render(array('suggestionnotimplemented'), array());
     $this->assertIdentical($output, FALSE, '\Drupal::theme() returns FALSE when a hook suggestion is not implemented.');
@@ -126,7 +126,6 @@ public function testNegotiatorPriorities() {
     $this->drupalGet('theme-test/priority');
 
     // Ensure that the custom theme negotiator was not able to set the theme.
-
     $this->assertNoText('Theme hook implementor=test_theme_theme_test__suggestion(). Foo=template_preprocess_theme_test', 'Theme hook suggestion ran with data available from a preprocess function for the base hook.');
   }
 
diff --git a/core/modules/system/src/Tests/Update/UpdatePathTestBaseTest.php b/core/modules/system/src/Tests/Update/UpdatePathTestBaseTest.php
index efff986..b28adc7 100644
--- a/core/modules/system/src/Tests/Update/UpdatePathTestBaseTest.php
+++ b/core/modules/system/src/Tests/Update/UpdatePathTestBaseTest.php
@@ -37,7 +37,6 @@ public function testDatabaseLoaded() {
 
     // Ensure that all {router} entries can be unserialized. If they cannot be
     // unserialized a notice will be thrown by PHP.
-
     $result = \Drupal::database()->query("SELECT name, route from {router}")->fetchAllKeyed(0, 1);
     // For the purpose of fetching the notices and displaying more helpful error
     // messages, let's override the error handler temporarily.
diff --git a/core/modules/system/src/Tests/Update/UpdateScriptTest.php b/core/modules/system/src/Tests/Update/UpdateScriptTest.php
index 3f4edff..eb9f7df 100644
--- a/core/modules/system/src/Tests/Update/UpdateScriptTest.php
+++ b/core/modules/system/src/Tests/Update/UpdateScriptTest.php
@@ -108,7 +108,6 @@ function testRequirements() {
     // If there is a requirements warning, we expect it to be initially
     // displayed, but clicking the link to proceed should allow us to go
     // through the rest of the update process uninterrupted.
-
     // First, run this test with pending updates to make sure they can be run
     // successfully.
     $update_script_test_config->set('requirement_type', REQUIREMENT_WARNING)->save();
diff --git a/core/modules/system/system.install b/core/modules/system/system.install
index a02a223..0435332 100644
--- a/core/modules/system/system.install
+++ b/core/modules/system/system.install
@@ -24,7 +24,7 @@ function system_requirements($phase) {
   global $install_state;
   $requirements = array();
 
-  // Report Drupal version
+  // Report Drupal version.
   if ($phase == 'runtime') {
     $requirements['drupal'] = array(
       'title' => t('Drupal'),
@@ -96,7 +96,7 @@ function system_requirements($phase) {
     if (preg_match('/Apache\/(\d+)\.?(\d+)?\.?(\d+)?/', $software, $matches)) {
       $apache_version_string = $matches[0];
 
-      // Major version number
+      // Major version number.
       if ($matches[1] < 2) {
         $rewrite_error = TRUE;
       }
@@ -149,7 +149,7 @@ function system_requirements($phase) {
     }
   }
 
-  // Test PHP version and show link to phpinfo() if it's available
+  // Test PHP version and show link to phpinfo() if it's available.
   $phpversion = $phpversion_label = phpversion();
   if (function_exists('phpinfo')) {
     if ($phase === 'runtime') {
@@ -311,7 +311,7 @@ function system_requirements($phase) {
     );
   }
 
-  // Test PHP memory_limit
+  // Test PHP memory_limit.
   $memory_limit = ini_get('memory_limit');
   $requirements['php_memory_limit'] = array(
     'title' => t('PHP memory limit'),
@@ -678,7 +678,7 @@ function system_requirements($phase) {
     }
   }
 
-  // Verify the update.php access setting
+  // Verify the update.php access setting.
   if ($phase == 'runtime') {
     if (Settings::get('update_free_access')) {
       $requirements['update access'] = array(
@@ -743,7 +743,7 @@ function system_requirements($phase) {
     }
   }
 
-  // Test Unicode library
+  // Test Unicode library.
   include_once DRUPAL_ROOT . '/core/includes/unicode.inc';
   $requirements = array_merge($requirements, unicode_requirements());
 
diff --git a/core/modules/system/system.module b/core/modules/system/system.module
index 3033a11..495eee4 100644
--- a/core/modules/system/system.module
+++ b/core/modules/system/system.module
@@ -739,7 +739,6 @@ function system_form_alter(&$form, FormStateInterface $form_state) {
   // If the page that's being built is cacheable, set the 'immutable' flag, to
   // ensure that when the form is used, a new form build ID is generated when
   // appropriate, to prevent information disclosure.
-
   // Note: This code just wants to know whether cache response headers are set,
   // not whether page_cache module will be active.
   // \Drupal\Core\EventSubscriber\FinishResponseSubscriber::onRespond will
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.editor-editor_update_8001.php b/core/modules/system/tests/fixtures/update/drupal-8.editor-editor_update_8001.php
index c2e4cab..cd0df78 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.editor-editor_update_8001.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.editor-editor_update_8001.php
@@ -11,7 +11,6 @@
 $connection = Database::getConnection();
 
 // Simulate an un-synchronized environment.
-
 // Disable the 'basic_html' editor.
 $data = $connection->select('config')
   ->fields('config', ['data'])
diff --git a/core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc b/core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc
index 026c8a7..c2305c3 100644
--- a/core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc
+++ b/core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc
@@ -70,7 +70,7 @@ function _batch_test_callback_5($id, $sleep, &$context) {
   // 'finished' callback.
   batch_test_stack("op 5 id $id");
   $context['results'][5][] = $id;
-  // This test is to test finished > 1
+  // This test is to test finished > 1.
   $context['finished'] = 3.14;
 }
 
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 9d9d63c..594cf7d 100644
--- a/core/modules/system/tests/modules/entity_test/entity_test.module
+++ b/core/modules/system/tests/modules/entity_test/entity_test.module
@@ -137,7 +137,7 @@ function entity_test_entity_base_field_info_alter(&$fields, EntityTypeInterface
   // In 8001 we are assuming that a new definition with multiple cardinality has
   // been deployed.
   // @todo Remove this if we end up using state definitions at runtime. See
-  //    https://www.drupal.org/node/2554235.
+  //   https://www.drupal.org/node/2554235.
   if ($entity_type->id() == 'entity_test' && $state->get('entity_test.db_updates.entity_definition_updates') == 8001) {
     $fields['user_id']->setCardinality(FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED);
   }
diff --git a/core/modules/system/tests/modules/form_test/src/Form/FormTestStorageForm.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestStorageForm.php
index 948c592..22f73bc 100644
--- a/core/modules/system/tests/modules/form_test/src/Form/FormTestStorageForm.php
+++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestStorageForm.php
@@ -30,14 +30,14 @@ public function buildForm(array $form, FormStateInterface $form_state) {
     if ($form_state->isRebuilding()) {
       $form_state->setUserInput(array());
     }
-    // Initialize
+    // Initialize.
     $storage = $form_state->getStorage();
     if (empty($storage)) {
       $user_input = $form_state->getUserInput();
       if (empty($user_input)) {
         $_SESSION['constructions'] = 0;
       }
-      // Put the initial thing into the storage
+      // Put the initial thing into the storage.
       $storage = [
         'thing' => [
           'title' => 'none',
diff --git a/core/modules/system/tests/modules/menu_test/src/Plugin/Derivative/LocalTaskTest.php b/core/modules/system/tests/modules/menu_test/src/Plugin/Derivative/LocalTaskTest.php
index e6a87b1..7af3ba0 100644
--- a/core/modules/system/tests/modules/menu_test/src/Plugin/Derivative/LocalTaskTest.php
+++ b/core/modules/system/tests/modules/menu_test/src/Plugin/Derivative/LocalTaskTest.php
@@ -15,7 +15,7 @@ public function getDerivativeDefinitions($base_plugin_definition) {
       $this->derivatives[$key] = $base_plugin_definition;
       $this->derivatives[$key]['title'] = $title;
       $this->derivatives[$key]['route_parameters'] = array('placeholder' => $key);
-      $this->derivatives[$key]['weight'] = $weight++; // ensure weights for testing.
+      $this->derivatives[$key]['weight'] = $weight++; // Ensure weights for testing.
     }
     return $this->derivatives;
   }
diff --git a/core/modules/system/tests/modules/plugin_test/src/Plugin/MockBlockManager.php b/core/modules/system/tests/modules/plugin_test/src/Plugin/MockBlockManager.php
index 8d94fa1..5b199b6 100644
--- a/core/modules/system/tests/modules/plugin_test/src/Plugin/MockBlockManager.php
+++ b/core/modules/system/tests/modules/plugin_test/src/Plugin/MockBlockManager.php
@@ -32,7 +32,6 @@ public function __construct() {
     // definitions here, because this is for unit testing. Real plugin managers
     // use a discovery implementation that allows for any module to add new
     // plugins to the system.
-
     // A simple plugin: the user login block.
     $this->discovery->setDefinition('user_login', array(
       'label' => t('User login'),
diff --git a/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php b/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php
index 6884716..be4e33f 100644
--- a/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php
+++ b/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php
@@ -135,7 +135,7 @@ function title() {
     if (!empty($term)) {
       return $term->getName();
     }
-    // TODO review text
+    // TODO review text.
     return $this->t('No name');
   }
 
diff --git a/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepthModifier.php b/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepthModifier.php
index 0415a7a..0819ddd 100644
--- a/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepthModifier.php
+++ b/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepthModifier.php
@@ -36,7 +36,7 @@ public function preQuery() {
       $argument = -10;
     }
 
-    // figure out which argument preceded us.
+    // Figure out which argument preceded us.
     $keys = array_reverse(array_keys($this->view->argument));
     $skip = TRUE;
     foreach ($keys as $key) {
diff --git a/core/modules/taxonomy/src/Plugin/views/argument/Taxonomy.php b/core/modules/taxonomy/src/Plugin/views/argument/Taxonomy.php
index 38e64c7..ce5e66e 100644
--- a/core/modules/taxonomy/src/Plugin/views/argument/Taxonomy.php
+++ b/core/modules/taxonomy/src/Plugin/views/argument/Taxonomy.php
@@ -53,7 +53,7 @@ function title() {
         return $term->getName();
       }
     }
-    // TODO review text
+    // TODO review text.
     return $this->t('No name');
   }
 
diff --git a/core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php b/core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php
index b375b10..9821480 100644
--- a/core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php
+++ b/core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php
@@ -200,7 +200,7 @@ public function getArgument() {
         }
         if (!empty($this->options['limit'])) {
           $tids = array();
-          // filter by vocabulary
+          // Filter by vocabulary.
           foreach ($taxonomy as $tid => $vocab) {
             if (!empty($this->options['vids'][$vocab])) {
               $tids[] = $tid;
diff --git a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php
index 2d0eb83..acaf635 100644
--- a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php
+++ b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php
@@ -251,7 +251,7 @@ protected function valueForm(&$form, FormStateInterface $form_state) {
     }
 
     if (!$form_state->get('exposed')) {
-      // Retain the helper option
+      // Retain the helper option.
       $this->helper->buildOptionsForm($form, $form_state);
 
       // Show help text if not exposed to end users.
@@ -286,7 +286,7 @@ public function acceptExposedInput($input) {
     }
 
     // If view is an attachment and is inheriting exposed filters, then assume
-    // exposed input has already been validated
+    // exposed input has already been validated.
     if (!empty($this->view->is_attachment) && $this->view->display_handler->usesExposed()) {
       $this->validated_exposed_input = (array) $this->view->exposed_raw_input[$this->options['expose']['identifier']];
     }
@@ -340,7 +340,7 @@ public function validateExposed(&$form, FormStateInterface $form_state) {
   }
 
   protected function valueSubmit($form, FormStateInterface $form_state) {
-    // prevent array_filter from messing up our arrays in parent submit.
+    // Prevent array_filter from messing up our arrays in parent submit.
   }
 
   public function buildExposeForm(&$form, FormStateInterface $form_state) {
@@ -356,7 +356,7 @@ public function buildExposeForm(&$form, FormStateInterface $form_state) {
   }
 
   public function adminSummary() {
-    // set up $this->valueOptions for the parent summary
+    // Set up $this->valueOptions for the parent summary.
     $this->valueOptions = array();
 
     if ($this->value) {
diff --git a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTidDepth.php b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTidDepth.php
index a2b8108..fe6ddae 100644
--- a/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTidDepth.php
+++ b/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTidDepth.php
@@ -54,7 +54,7 @@ public function query() {
       $operator = '=';
     }
     else {
-      $operator = 'IN';# " IN (" . implode(', ', array_fill(0, sizeof($this->value), '%d')) . ")";
+      $operator = 'IN';// " IN (" . implode(', ', array_fill(0, sizeof($this->value), '%d')) . ")";.
     }
 
     // The normal use of ensureMyTable() here breaks Views.
diff --git a/core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php b/core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php
index faa5d70..6f914e0 100644
--- a/core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php
+++ b/core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php
@@ -122,7 +122,7 @@ public function query() {
       $def['type'] = empty($this->options['required']) ? 'LEFT' : 'INNER';
     }
     else {
-      // If vocabularies are supplied join a subselect instead
+      // If vocabularies are supplied join a subselect instead.
       $def['left_table'] = $this->tableAlias;
       $def['left_field'] = 'nid';
       $def['field'] = 'nid';
@@ -140,7 +140,7 @@ public function query() {
 
     $join = \Drupal::service('plugin.manager.views.join')->createInstance('standard', $def);
 
-    // use a short alias for this:
+    // Use a short alias for this:
     $alias = $def['table'] . '_' . $this->table;
 
     $this->alias = $this->query->addRelationship($alias, $join, 'taxonomy_term_field_data', $this->relationship);
diff --git a/core/modules/taxonomy/src/TermViewsData.php b/core/modules/taxonomy/src/TermViewsData.php
index 1af323b..4bdaf4f 100644
--- a/core/modules/taxonomy/src/TermViewsData.php
+++ b/core/modules/taxonomy/src/TermViewsData.php
@@ -137,12 +137,12 @@ public function getViewsData() {
 
     $data['taxonomy_index']['table']['join'] = array(
       'taxonomy_term_field_data' => array(
-        // links directly to taxonomy_term_field_data via tid
+        // Links directly to taxonomy_term_field_data via tid.
         'left_field' => 'tid',
         'field' => 'tid',
       ),
       'node_field_data' => array(
-        // links directly to node via nid
+        // Links directly to node via nid.
         'left_field' => 'nid',
         'field' => 'nid',
       ),
diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldAllTermsTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldAllTermsTest.php
index 4c7222e..b8397d6 100644
--- a/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldAllTermsTest.php
+++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldAllTermsTest.php
@@ -47,19 +47,19 @@ public function testViewsHandlerAllTermsWithTokens() {
     $view = Views::getView('taxonomy_all_terms_test');
     $this->drupalGet('taxonomy_all_terms_token_test');
 
-    // Term itself: {{ term_node_tid }}
+    // Term itself: {{ term_node_tid }}.
     $this->assertText('Term: ' . $this->term1->getName());
 
-    // The taxonomy term ID for the term: {{ term_node_tid__tid }}
+    // The taxonomy term ID for the term: {{ term_node_tid__tid }}.
     $this->assertText('The taxonomy term ID for the term: ' . $this->term1->id());
 
-    // The taxonomy term name for the term: {{ term_node_tid__name }}
+    // The taxonomy term name for the term: {{ term_node_tid__name }}.
     $this->assertText('The taxonomy term name for the term: ' . $this->term1->getName());
 
-    // The machine name for the vocabulary the term belongs to: {{ term_node_tid__vocabulary_vid }}
+    // The machine name for the vocabulary the term belongs to: {{ term_node_tid__vocabulary_vid }}.
     $this->assertText('The machine name for the vocabulary the term belongs to: ' . $this->term1->getVocabularyId());
 
-    // The name for the vocabulary the term belongs to: {{ term_node_tid__vocabulary }}
+    // The name for the vocabulary the term belongs to: {{ term_node_tid__vocabulary }}.
     $vocabulary = Vocabulary::load($this->term1->bundle());
     $this->assertText('The name for the vocabulary the term belongs to: ' .  $vocabulary->label());
   }
diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php
index b37a717..12832fb 100644
--- a/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php
+++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php
@@ -59,7 +59,7 @@ protected function setUp() {
     // - term 1.1
     // term 2.0
     // - term 2.1
-    // - term 2.2
+    // - term 2.2.
     for ($i = 0; $i < 3; $i++) {
       for ($j = 0; $j <= $i; $j++) {
         $this->terms[$i][$j] = $term = Term::create([
diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyTermViewTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyTermViewTest.php
index ef6da47..a5a2c00 100644
--- a/core/modules/taxonomy/src/Tests/Views/TaxonomyTermViewTest.php
+++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyTermViewTest.php
@@ -48,7 +48,6 @@ protected function setUp() {
     $this->drupalLogin($this->adminUser);
 
     // Create a vocabulary and add two term reference fields to article nodes.
-
     $this->fieldName1 = Unicode::strtolower($this->randomMachineName());
 
     $handler_settings = array(
diff --git a/core/modules/taxonomy/taxonomy.tokens.inc b/core/modules/taxonomy/taxonomy.tokens.inc
index 20251f2..c22e52d 100644
--- a/core/modules/taxonomy/taxonomy.tokens.inc
+++ b/core/modules/taxonomy/taxonomy.tokens.inc
@@ -67,7 +67,7 @@ function taxonomy_token_info() {
     'description' => t("The number of terms belonging to the taxonomy vocabulary."),
   );
 
-  // Chained tokens for taxonomies
+  // Chained tokens for taxonomies.
   $term['vocabulary'] = array(
     'name' => t("Vocabulary"),
     'description' => t("The vocabulary the taxonomy term belongs to."),
diff --git a/core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php b/core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php
index 2534c3e..7e9af20 100644
--- a/core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php
+++ b/core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php
@@ -50,7 +50,7 @@ public function testVocabularyFieldInstance() {
 
     $this->assertIdentical(array('node', 'article', 'tags'), $this->getMigration('d6_vocabulary_field_instance')->getIdMap()->lookupDestinationID(array(4, 'article')));
 
-    // Test the the field vocabulary_1_i_0_
+    // Test the the field vocabulary_1_i_0_.
     $field_id = 'node.story.vocabulary_1_i_0_';
     $field = FieldConfig::load($field_id);
     $this->assertFalse($field->isRequired(), 'Field is not required');
diff --git a/core/modules/telephone/src/Tests/TelephoneFieldTest.php b/core/modules/telephone/src/Tests/TelephoneFieldTest.php
index a7497c9..6f07e59 100644
--- a/core/modules/telephone/src/Tests/TelephoneFieldTest.php
+++ b/core/modules/telephone/src/Tests/TelephoneFieldTest.php
@@ -40,7 +40,6 @@ protected function setUp() {
   }
 
   // Test fields.
-
   /**
    * Helper function for testTelephoneField().
    */
diff --git a/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php b/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php
index 83cea4f..e10cdc0 100644
--- a/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php
+++ b/core/modules/text/src/Plugin/Field/FieldType/TextItemBase.php
@@ -74,7 +74,7 @@ public static function generateSampleValue(FieldDefinitionInterface $field_defin
     $settings = $field_definition->getSettings();
 
     if (empty($settings['max_length'])) {
-      // Textarea handling
+      // Textarea handling.
       $value = $random->paragraphs();
     }
     else {
diff --git a/core/modules/text/src/Tests/TextFieldTest.php b/core/modules/text/src/Tests/TextFieldTest.php
index fcec361..7dffed8 100644
--- a/core/modules/text/src/Tests/TextFieldTest.php
+++ b/core/modules/text/src/Tests/TextFieldTest.php
@@ -29,7 +29,6 @@ protected function setUp() {
   }
 
   // Test fields.
-
   /**
    * Test text field validation.
    */
diff --git a/core/modules/text/tests/src/Kernel/TextSummaryTest.php b/core/modules/text/tests/src/Kernel/TextSummaryTest.php
index abc0b68..613d318 100644
--- a/core/modules/text/tests/src/Kernel/TextSummaryTest.php
+++ b/core/modules/text/tests/src/Kernel/TextSummaryTest.php
@@ -38,7 +38,7 @@ function testLongSentence() {
     $text = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ' . // 125
             'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ' . // 108
             'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' . // 103
-            'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'; // 110
+            'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'; // 110.
     $expected = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ' .
                 'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ' .
                 'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.';
diff --git a/core/modules/text/text.module b/core/modules/text/text.module
index 1d2fdcc..43d20a7 100644
--- a/core/modules/text/text.module
+++ b/core/modules/text/text.module
@@ -65,7 +65,7 @@ function text_summary($text, $format = NULL, $size = NULL) {
     $size = \Drupal::config('text.settings')->get('default_summary_length');
   }
 
-  // Find where the delimiter is in the body
+  // Find where the delimiter is in the body.
   $delimiter = strpos($text, '<!--break-->');
 
   // If the size is zero, and there is no delimiter, the entire body is the summary.
@@ -96,7 +96,6 @@ function text_summary($text, $format = NULL, $size = NULL) {
 
   // If the delimiter has not been specified, try to split at paragraph or
   // sentence boundaries.
-
   // The summary may not be longer than maximum length specified. Initial slice.
   $summary = Unicode::truncate($text, $size);
 
diff --git a/core/modules/tracker/src/Tests/TrackerTest.php b/core/modules/tracker/src/Tests/TrackerTest.php
index fa533c1..4fbdeab 100644
--- a/core/modules/tracker/src/Tests/TrackerTest.php
+++ b/core/modules/tracker/src/Tests/TrackerTest.php
@@ -310,10 +310,8 @@ function testTrackerOrderingNewComments() {
     // 1. node_two
     // 2. node_one
     // Because that's the reverse order of the posted comments.
-
     // Now we're going to post a comment to node_one which should jump it to the
     // top of the list.
-
     $this->drupalLogin($this->user);
     // If the comment is posted in the same second as the last one then Drupal
     // can't tell the difference, so we wait one second here.
diff --git a/core/modules/tracker/tracker.module b/core/modules/tracker/tracker.module
index 54d490d..3ea5aa7 100644
--- a/core/modules/tracker/tracker.module
+++ b/core/modules/tracker/tracker.module
@@ -89,7 +89,6 @@ function tracker_cron() {
 
       // Insert the user-level data for the commenters (except if a commenter
       // is the node's author).
-
       // Get unique user IDs via entityQueryAggregate because it's the easiest
       // database agnostic way. We don't actually care about the comments here
       // so don't add an aggregate field.
@@ -347,7 +346,6 @@ function _tracker_remove($nid, $uid = NULL, $changed = NULL) {
     if ($tracker_node && $changed >= $tracker_node->changed) {
       // If we're here, the item being removed is *possibly* the item that
       // established the node's changed timestamp.
-
       // We just have to recalculate things from scratch.
       $changed = _tracker_calculate_changed($node);
 
diff --git a/core/modules/tracker/tracker.views.inc b/core/modules/tracker/tracker.views.inc
index b7e4b95..1811345 100644
--- a/core/modules/tracker/tracker.views.inc
+++ b/core/modules/tracker/tracker.views.inc
@@ -157,7 +157,7 @@ function tracker_views_data() {
  * Implements hook_views_data_alter().
  */
 function tracker_views_data_alter(&$data) {
-  // Provide additional uid_touch handlers which are handled by tracker
+  // Provide additional uid_touch handlers which are handled by tracker.
   $data['node_field_data']['uid_touch_tracker'] = array(
     'group' => t('Tracker - User'),
     'title' => t('User posted or commented'),
diff --git a/core/modules/update/src/Tests/UpdateContribTest.php b/core/modules/update/src/Tests/UpdateContribTest.php
index 923b5d5..559f1eb 100644
--- a/core/modules/update/src/Tests/UpdateContribTest.php
+++ b/core/modules/update/src/Tests/UpdateContribTest.php
@@ -129,7 +129,6 @@ function testUpdateContribOrder() {
         'version' => '8.0.0',
       ),
       // All the rest should be visible as contrib modules at version 8.x-1.0.
-
       // aaa_update_test needs to be part of the "CCC Update test" project,
       // which would throw off the report if we weren't properly sorting by
       // the project names.
@@ -186,7 +185,7 @@ function testUpdateContribOrder() {
    */
   function testUpdateBaseThemeSecurityUpdate() {
     // @todo https://www.drupal.org/node/2338175 base themes have to be
-    //  installed.
+    //   installed.
     // Only install the subtheme, not the base theme.
     \Drupal::service('theme_handler')->install(array('update_test_subtheme'));
 
@@ -196,13 +195,13 @@ function testUpdateBaseThemeSecurityUpdate() {
       '#all' => array(
         'version' => '8.0.0',
       ),
-      // Show the update_test_basetheme
+      // Show the update_test_basetheme.
       'update_test_basetheme' => array(
         'project' => 'update_test_basetheme',
         'version' => '8.x-1.0',
         'hidden' => FALSE,
       ),
-      // Show the update_test_subtheme
+      // Show the update_test_subtheme.
       'update_test_subtheme' => array(
         'project' => 'update_test_subtheme',
         'version' => '8.x-1.0',
diff --git a/core/modules/update/src/Tests/UpdateUploadTest.php b/core/modules/update/src/Tests/UpdateUploadTest.php
index 1605f2e..ca3039e 100644
--- a/core/modules/update/src/Tests/UpdateUploadTest.php
+++ b/core/modules/update/src/Tests/UpdateUploadTest.php
@@ -155,7 +155,6 @@ function testUpdateManagerCoreSecurityUpdateMessages() {
 
     // Now, make sure none of the Update manager pages have duplicate messages
     // about core missing a security update.
-
     $this->drupalGet('admin/modules/install');
     $this->assertNoText(t('There is a security update available for your version of Drupal.'));
 
diff --git a/core/modules/update/update.compare.inc b/core/modules/update/update.compare.inc
index a077c38..1b2af93 100644
--- a/core/modules/update/update.compare.inc
+++ b/core/modules/update/update.compare.inc
@@ -24,7 +24,7 @@ function update_process_project_info(&$projects) {
     $info = $project['info'];
 
     if (isset($info['version'])) {
-      // Check for development snapshots
+      // Check for development snapshots.
       if (preg_match('@(dev|HEAD)@', $info['version'])) {
         $install_type = 'dev';
       }
@@ -428,7 +428,6 @@ function update_calculate_project_update_status(&$project_data, $available) {
   //
   // Check to see if we need an update or not.
   //
-
   if (!empty($project_data['security updates'])) {
     // If we found security updates, that always trumps any other status.
     $project_data['status'] = UPDATE_NOT_SECURE;
diff --git a/core/modules/update/update.module b/core/modules/update/update.module
index 98f7569..335213e 100644
--- a/core/modules/update/update.module
+++ b/core/modules/update/update.module
@@ -17,7 +17,6 @@
 use Drupal\Core\Site\Settings;
 
 // These are internally used constants for this code, do not modify.
-
 /**
  * Project is missing security update(s).
  */
@@ -322,7 +321,7 @@ function update_get_available($refresh = FALSE) {
   foreach ($projects as $key => $project) {
     // If there's no data at all, we clearly need to fetch some.
     if (empty($available[$key])) {
-      //update_create_fetch_task($project);
+      // update_create_fetch_task($project);
       \Drupal::service('update.processor')->createFetchTask($project);
       $needs_refresh = TRUE;
       continue;
diff --git a/core/modules/user/src/AccountForm.php b/core/modules/user/src/AccountForm.php
index 4c8bdef..5281e98 100644
--- a/core/modules/user/src/AccountForm.php
+++ b/core/modules/user/src/AccountForm.php
@@ -312,7 +312,6 @@ public function buildEntity(array $form, FormStateInterface $form_state) {
     //   set on the field, which throws an exception as the list requires
     //   numeric keys. Allow to override this per field. As this function is
     //   called twice, we have to prevent it from getting the array keys twice.
-
     if (is_string(key($form_state->getValue('roles')))) {
       $form_state->setValue('roles', array_keys(array_filter($form_state->getValue('roles'))));
     }
diff --git a/core/modules/user/src/Form/UserLoginForm.php b/core/modules/user/src/Form/UserLoginForm.php
index a8d8666..e875970 100644
--- a/core/modules/user/src/Form/UserLoginForm.php
+++ b/core/modules/user/src/Form/UserLoginForm.php
@@ -129,7 +129,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
   public function submitForm(array &$form, FormStateInterface $form_state) {
     $account = $this->userStorage->load($form_state->get('uid'));
 
-    // A destination was set, probably on an exception controller,
+    // A destination was set, probably on an exception controller,.
     if (!$this->getRequest()->request->has('destination')) {
       $form_state->setRedirect(
         'entity.user.canonical',
diff --git a/core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraintValidator.php b/core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraintValidator.php
index c389191..b52cee5 100644
--- a/core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraintValidator.php
+++ b/core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraintValidator.php
@@ -39,7 +39,7 @@ public function validate($items, Constraint $constraint) {
         '\x{FEFF}' .              // Byte order mark
         '\x{FF01}-\x{FF60}' .     // Full-width latin
         '\x{FFF9}-\x{FFFD}' .     // Replacement characters
-        '\x{0}-\x{1F}]/u', // NULL byte and control characters
+        '\x{0}-\x{1F}]/u', // NULL byte and control characters.
         $name)
     ) {
       $this->context->addViolation($constraint->illegalMessage);
diff --git a/core/modules/user/src/Plugin/views/access/Permission.php b/core/modules/user/src/Plugin/views/access/Permission.php
index d2d757b..441f958 100644
--- a/core/modules/user/src/Plugin/views/access/Permission.php
+++ b/core/modules/user/src/Plugin/views/access/Permission.php
@@ -110,7 +110,7 @@ protected function defineOptions() {
 
   public function buildOptionsForm(&$form, FormStateInterface $form_state) {
     parent::buildOptionsForm($form, $form_state);
-    // Get list of permissions
+    // Get list of permissions.
     $perms = [];
     $permissions = $this->permissionHandler->getPermissions();
     foreach ($permissions as $perm => $perm_item) {
diff --git a/core/modules/user/src/Plugin/views/argument_validator/User.php b/core/modules/user/src/Plugin/views/argument_validator/User.php
index 411e04b..faf97ad 100644
--- a/core/modules/user/src/Plugin/views/argument_validator/User.php
+++ b/core/modules/user/src/Plugin/views/argument_validator/User.php
@@ -75,7 +75,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
    * {@inheritdoc}
    */
   public function submitOptionsForm(&$form, FormStateInterface $form_state, &$options = array()) {
-    // filter trash out of the options so we don't store giant unnecessary arrays
+    // Filter trash out of the options so we don't store giant unnecessary arrays.
     $options['roles'] = array_filter($options['roles']);
   }
 
diff --git a/core/modules/user/src/Plugin/views/filter/Name.php b/core/modules/user/src/Plugin/views/filter/Name.php
index 7554adf..93d9a73 100644
--- a/core/modules/user/src/Plugin/views/filter/Name.php
+++ b/core/modules/user/src/Plugin/views/filter/Name.php
@@ -93,7 +93,7 @@ public function validateExposed(&$form, FormStateInterface $form_state) {
   }
 
   protected function valueSubmit($form, FormStateInterface $form_state) {
-    // prevent array filter from removing our anonymous user.
+    // Prevent array filter from removing our anonymous user.
   }
 
 /**
@@ -104,7 +104,7 @@ public function getValueOptions() {
   }
 
   public function adminSummary() {
-    // set up $this->valueOptions for the parent summary
+    // Set up $this->valueOptions for the parent summary.
     $this->valueOptions = array();
 
     if ($this->value) {
diff --git a/core/modules/user/src/Tests/UserAdminTest.php b/core/modules/user/src/Tests/UserAdminTest.php
index d8252ec..7abed03 100644
--- a/core/modules/user/src/Tests/UserAdminTest.php
+++ b/core/modules/user/src/Tests/UserAdminTest.php
@@ -111,13 +111,13 @@ function testUserAdmin() {
     $account = $user_storage->load($user_c->id());
     $this->assertTrue($account->isBlocked(), 'User C blocked');
 
-    // Test filtering on admin page for blocked users
+    // Test filtering on admin page for blocked users.
     $this->drupalGet('admin/people', array('query' => array('status' => 2)));
     $this->assertNoText($user_a->getUsername(), 'User A not on filtered by status on admin users page');
     $this->assertNoText($user_b->getUsername(), 'User B not on filtered by status on admin users page');
     $this->assertText($user_c->getUsername(), 'User C on filtered by status on admin users page');
 
-    // Test unblocking of a user from /admin/people page and sending of activation mail
+    // Test unblocking of a user from /admin/people page and sending of activation mail.
     $editunblock = array();
     $editunblock['action'] = 'user_unblock_user_action';
     $editunblock['user_bulk_form[4]'] = TRUE;
@@ -131,7 +131,7 @@ function testUserAdmin() {
     $this->assertTrue($account->isActive(), 'User C unblocked');
     $this->assertMail("to", $account->getEmail(), "Activation mail sent to user C");
 
-    // Test blocking and unblocking another user from /user/[uid]/edit form and sending of activation mail
+    // Test blocking and unblocking another user from /user/[uid]/edit form and sending of activation mail.
     $user_d = $this->drupalCreateUser(array());
     $user_storage->resetCache(array($user_d->id()));
     $account1 = $user_storage->load($user_d->id());
diff --git a/core/modules/user/src/Tests/UserDeleteTest.php b/core/modules/user/src/Tests/UserDeleteTest.php
index 5a48552..41e2743 100644
--- a/core/modules/user/src/Tests/UserDeleteTest.php
+++ b/core/modules/user/src/Tests/UserDeleteTest.php
@@ -23,7 +23,7 @@ function testUserDeleteMultiple() {
 
     $uids = array($user_a->id(), $user_b->id(), $user_c->id());
 
-    // These users should have a role
+    // These users should have a role.
     $query = db_select('user__roles', 'r');
     $roles_created = $query
       ->fields('r', array('entity_id'))
diff --git a/core/modules/user/src/Tests/UserLoginTest.php b/core/modules/user/src/Tests/UserLoginTest.php
index dc89a14..2761916 100644
--- a/core/modules/user/src/Tests/UserLoginTest.php
+++ b/core/modules/user/src/Tests/UserLoginTest.php
@@ -109,10 +109,10 @@ function testPerUserLoginFloodControl() {
    * Test that user password is re-hashed upon login after changing $count_log2.
    */
   function testPasswordRehashOnLogin() {
-    // Determine default log2 for phpass hashing algorithm
+    // Determine default log2 for phpass hashing algorithm.
     $default_count_log2 = 16;
 
-    // Retrieve instance of password hashing algorithm
+    // Retrieve instance of password hashing algorithm.
     $password_hasher = $this->container->get('password');
 
     // Create a new user and authenticate.
diff --git a/core/modules/user/src/Tests/UserSaveTest.php b/core/modules/user/src/Tests/UserSaveTest.php
index 6a454ee..1a2f614 100644
--- a/core/modules/user/src/Tests/UserSaveTest.php
+++ b/core/modules/user/src/Tests/UserSaveTest.php
@@ -17,7 +17,6 @@ class UserSaveTest extends WebTestBase {
    */
   function testUserImport() {
     // User ID must be a number that is not in the database.
-
     $uids = \Drupal::entityManager()->getStorage('user')->getQuery()
       ->sort('uid', 'DESC')
       ->range(0, 1)
diff --git a/core/modules/user/src/Tests/UserSearchTest.php b/core/modules/user/src/Tests/UserSearchTest.php
index 6a73770..6d0e711 100644
--- a/core/modules/user/src/Tests/UserSearchTest.php
+++ b/core/modules/user/src/Tests/UserSearchTest.php
@@ -71,7 +71,7 @@ function testUserSearch() {
     $this->assertText($keys, 'Search by email substring works for administrative user');
     $this->assertText($user2->getUsername(), 'Search by email substring resulted in username on page for administrative user');
 
-    // Verify that wildcard search works for email
+    // Verify that wildcard search works for email.
     $subkey = substr($keys, 0, 2) . '*' . substr($keys, 4, 2);
     $edit = array('keys' => $subkey);
     $this->drupalPostForm('search/user', $edit, t('Search'));
diff --git a/core/modules/user/src/Tests/Views/AccessRoleTest.php b/core/modules/user/src/Tests/Views/AccessRoleTest.php
index 02a83a7..452b8ab 100644
--- a/core/modules/user/src/Tests/Views/AccessRoleTest.php
+++ b/core/modules/user/src/Tests/Views/AccessRoleTest.php
@@ -128,8 +128,8 @@ public function testRenderCaching() {
     // @todo Fix this in https://www.drupal.org/node/2551037,
     // DisplayPluginBase::applyDisplayCachablityMetadata() is not invoked when
     // using buildBasicRenderable() and a Views access plugin returns FALSE.
-    //$this->assertTrue(in_array('user.roles', $build['#cache']['contexts']));
-    //$this->assertEqual([], $build['#cache']['tags']);
+    // $this->assertTrue(in_array('user.roles', $build['#cache']['contexts']));
+    // $this->assertEqual([], $build['#cache']['tags']);
     $this->assertEqual(Cache::PERMANENT, $build['#cache']['max-age']);
     $this->assertEqual($result, '');
   }
diff --git a/core/modules/user/src/Tests/Views/ArgumentValidateTest.php b/core/modules/user/src/Tests/Views/ArgumentValidateTest.php
index 0a49142..405ad1b 100644
--- a/core/modules/user/src/Tests/Views/ArgumentValidateTest.php
+++ b/core/modules/user/src/Tests/Views/ArgumentValidateTest.php
@@ -45,7 +45,7 @@ function testArgumentValidateUserUid() {
     $this->assertTrue($view->argument['null']->validateArgument($account->id()));
     // Reset argument validation.
     $view->argument['null']->argument_validated = NULL;
-    // Fail for a valid numeric, but for a user that doesn't exist
+    // Fail for a valid numeric, but for a user that doesn't exist.
     $this->assertFalse($view->argument['null']->validateArgument(32));
 
     $form = array();
@@ -67,7 +67,7 @@ public function testArgumentValidateUserName() {
     $this->assertTrue($view->argument['null']->validateArgument($account->getUsername()));
     // Reset argument validation.
     $view->argument['null']->argument_validated = NULL;
-    // Fail for a valid string, but for a user that doesn't exist
+    // Fail for a valid string, but for a user that doesn't exist.
     $this->assertFalse($view->argument['null']->validateArgument($this->randomMachineName()));
   }
 
diff --git a/core/modules/user/src/Tests/Views/BulkFormAccessTest.php b/core/modules/user/src/Tests/Views/BulkFormAccessTest.php
index daa4eec..11b363c 100644
--- a/core/modules/user/src/Tests/Views/BulkFormAccessTest.php
+++ b/core/modules/user/src/Tests/Views/BulkFormAccessTest.php
@@ -63,7 +63,7 @@ public function testUserEditAccess() {
     $no_edit_user = User::load($no_edit_user->id());
     $this->assertFalse($no_edit_user->isBlocked(), 'The user is not blocked.');
 
-    // Create a normal user which can be edited by the admin user
+    // Create a normal user which can be edited by the admin user.
     $normal_user = $this->drupalCreateUser();
     $this->assertTrue($normal_user->access('update', $admin_user));
 
diff --git a/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserConfigsTest.php b/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserConfigsTest.php
index 4178c5a..62d0b73 100644
--- a/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserConfigsTest.php
+++ b/core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserConfigsTest.php
@@ -60,8 +60,7 @@ public function testUserSettings() {
     $this->assertIdentical('Guest', $config->get('anonymous'));
 
     // Tests migration of user_register using the AccountSettingsForm.
-
-    // Map D6 value to D8 value
+    // Map D6 value to D8 value.
     $user_register_map = [
       [0, USER_REGISTER_ADMINISTRATORS_ONLY],
       [1, USER_REGISTER_VISITORS],
@@ -69,7 +68,7 @@ public function testUserSettings() {
     ];
 
     foreach ($user_register_map as $map) {
-      // Tests migration of user_register = 1
+      // Tests migration of user_register = 1.
       Database::getConnection('default', 'migrate')
           ->update('variable')
           ->fields(['value' => serialize($map[0])])
diff --git a/core/modules/user/tests/src/Kernel/UserValidationTest.php b/core/modules/user/tests/src/Kernel/UserValidationTest.php
index 251c810..ad126d5 100644
--- a/core/modules/user/tests/src/Kernel/UserValidationTest.php
+++ b/core/modules/user/tests/src/Kernel/UserValidationTest.php
@@ -40,22 +40,22 @@ protected function setUp() {
    * Tests user name validation.
    */
   function testUsernames() {
-    $test_cases = array( // '<username>' => array('<description>', 'assert<testName>'),
+    $test_cases = array( // '<username>' => array('<description>', 'assert<testName>'),.
       'foo'                    => array('Valid username', 'assertNull'),
       'FOO'                    => array('Valid username', 'assertNull'),
       'Foo O\'Bar'             => array('Valid username', 'assertNull'),
       'foo@bar'                => array('Valid username', 'assertNull'),
       'foo@example.com'        => array('Valid username', 'assertNull'),
-      'foo@-example.com'       => array('Valid username', 'assertNull'), // invalid domains are allowed in usernames
+      'foo@-example.com'       => array('Valid username', 'assertNull'), // Invalid domains are allowed in usernames.
       'þòøÇßªř€'               => array('Valid username', 'assertNull'),
-      'ᚠᛇᚻ᛫ᛒᛦᚦ'                => array('Valid UTF8 username', 'assertNull'), // runes
+      'ᚠᛇᚻ᛫ᛒᛦᚦ'                => array('Valid UTF8 username', 'assertNull'), // Runes.
       ' foo'                   => array('Invalid username that starts with a space', 'assertNotNull'),
       'foo '                   => array('Invalid username that ends with a space', 'assertNotNull'),
       'foo  bar'               => array('Invalid username that contains 2 spaces \'&nbsp;&nbsp;\'', 'assertNotNull'),
       ''                       => array('Invalid empty username', 'assertNotNull'),
       'foo/'                   => array('Invalid username containing invalid chars', 'assertNotNull'),
       'foo' . chr(0) . 'bar'   => array('Invalid username containing chr(0)', 'assertNotNull'), // NULL
-      'foo' . chr(13) . 'bar'  => array('Invalid username containing chr(13)', 'assertNotNull'), // CR
+      'foo' . chr(13) . 'bar'  => array('Invalid username containing chr(13)', 'assertNotNull'), // CR.
       str_repeat('x', USERNAME_MAX_LENGTH + 1) => array('Invalid excessively long username', 'assertNotNull'),
     );
     foreach ($test_cases as $name => $test_case) {
diff --git a/core/modules/user/tests/src/Kernel/Views/UserViewsFieldAccessTest.php b/core/modules/user/tests/src/Kernel/Views/UserViewsFieldAccessTest.php
index f14779e..70861f2 100644
--- a/core/modules/user/tests/src/Kernel/Views/UserViewsFieldAccessTest.php
+++ b/core/modules/user/tests/src/Kernel/Views/UserViewsFieldAccessTest.php
@@ -57,7 +57,7 @@ public function testUserFields() {
     $this->assertFieldAccess('user', 'preferred_langcode', 'Spanish');
     $this->assertFieldAccess('user', 'preferred_admin_langcode', 'French');
     $this->assertFieldAccess('user', 'name', 'test user');
-    // $this->assertFieldAccess('user', 'mail', 'druplicon@drop.org');
+    // $this->assertFieldAccess('user', 'mail', 'druplicon@drop.org');.
     $this->assertFieldAccess('user', 'timezone', 'ut1');
     $this->assertFieldAccess('user', 'status', 'On');
     // $this->assertFieldAccess('user', 'created', \Drupal::service('date.formatter')->format(123456));
diff --git a/core/modules/user/tests/src/Unit/Plugin/Validation/Constraint/ProtectedUserFieldConstraintValidatorTest.php b/core/modules/user/tests/src/Unit/Plugin/Validation/Constraint/ProtectedUserFieldConstraintValidatorTest.php
index d29c8c5..3b06c3a 100644
--- a/core/modules/user/tests/src/Unit/Plugin/Validation/Constraint/ProtectedUserFieldConstraintValidatorTest.php
+++ b/core/modules/user/tests/src/Unit/Plugin/Validation/Constraint/ProtectedUserFieldConstraintValidatorTest.php
@@ -238,7 +238,6 @@ public function providerTestValidate() {
     $cases[] = [$items, FALSE];
 
     // The below calls should result in a violation.
-
     // Case 10: Password field changed, current password not confirmed.
     $field_definition = $this->getMock('Drupal\Core\Field\FieldDefinitionInterface');
     $field_definition->expects($this->exactly(2))
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 8693fc4..98951e6 100644
--- a/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php
+++ b/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php
@@ -28,7 +28,7 @@ public function testTitleQuery() {
       'label' => 'test <strong>rid 2</strong>',
     ), 'user_role');
 
-    // Creates a stub entity storage;
+    // Creates a stub entity storage;.
     $role_storage = $this->getMockForAbstractClass('Drupal\Core\Entity\EntityStorageInterface');
     $role_storage->expects($this->any())
       ->method('loadMultiple')
diff --git a/core/modules/user/user.api.php b/core/modules/user/user.api.php
index d0716c9..7eb5cb3 100644
--- a/core/modules/user/user.api.php
+++ b/core/modules/user/user.api.php
@@ -97,7 +97,7 @@ function hook_user_cancel_methods_alter(&$methods) {
   $methods['mymodule_zero_out'] = array(
     'title' => t('Delete the account and remove all content.'),
     'description' => t('All your content will be replaced by empty strings.'),
-    // access should be used for administrative methods only.
+    // Access should be used for administrative methods only.
     'access' => $account->hasPermission('access zero-out account cancellation method'),
   );
 }
diff --git a/core/modules/views/src/EntityViewsData.php b/core/modules/views/src/EntityViewsData.php
index e41efa9..f7ea42e 100644
--- a/core/modules/views/src/EntityViewsData.php
+++ b/core/modules/views/src/EntityViewsData.php
@@ -425,7 +425,6 @@ protected function mapSingleFieldViewsData($table, $field_name, $field_type, $co
         // Treat these three long text fields the same.
         $field_type = 'text_long';
         // Intentional fall-through here to the default processing!
-
       default:
         // For most fields, the field type is generic enough to just use
         // the column type to determine the filters etc.
@@ -468,7 +467,6 @@ protected function mapSingleFieldViewsData($table, $field_name, $field_type, $co
     }
 
     // Do post-processing for a few field types.
-
     $process_method = 'processViewsDataFor' . Container::camelize($field_type);
     if (method_exists($this, $process_method)) {
       $this->{$process_method}($table, $field_definition, $views_field, $column_name);
diff --git a/core/modules/views/src/EventSubscriber/RouteSubscriber.php b/core/modules/views/src/EventSubscriber/RouteSubscriber.php
index e8b0992..56b515f 100644
--- a/core/modules/views/src/EventSubscriber/RouteSubscriber.php
+++ b/core/modules/views/src/EventSubscriber/RouteSubscriber.php
@@ -77,7 +77,7 @@ public function reset() {
   public static function getSubscribedEvents() {
     $events = parent::getSubscribedEvents();
     $events[RoutingEvents::FINISHED] = array('routeRebuildFinished');
-    // Ensure to run after the entity resolver subscriber
+    // Ensure to run after the entity resolver subscriber.
     // @see \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber
     $events[RoutingEvents::ALTER] = ['onAlterRoutes', -175];
 
diff --git a/core/modules/views/src/Form/ViewsExposedForm.php b/core/modules/views/src/Form/ViewsExposedForm.php
index 36118c6..a544825 100644
--- a/core/modules/views/src/Form/ViewsExposedForm.php
+++ b/core/modules/views/src/Form/ViewsExposedForm.php
@@ -68,7 +68,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
 
     // Let form plugins know this is for exposed widgets.
     $form_state->set('exposed', TRUE);
-    // Check if the form was already created
+    // Check if the form was already created.
     if ($cache = $this->exposedFormCache->getForm($view->storage->id(), $view->current_display)) {
       return $cache;
     }
diff --git a/core/modules/views/src/ManyToOneHelper.php b/core/modules/views/src/ManyToOneHelper.php
index db6832f..04ba358 100644
--- a/core/modules/views/src/ManyToOneHelper.php
+++ b/core/modules/views/src/ManyToOneHelper.php
@@ -73,7 +73,7 @@ public function addTable($join = NULL, $alias = NULL) {
     // to create a new relationship to use.
     $relationship = $this->handler->relationship;
 
-    // Determine the primary table to seek
+    // Determine the primary table to seek.
     if (empty($this->handler->query->relationships[$relationship])) {
       $base_table = $this->handler->view->storage->get('base_table');
     }
@@ -119,7 +119,7 @@ public function summaryJoin() {
     $field = $this->handler->relationship . '_' . $this->handler->table . '.' . $this->handler->field;
     $join = $this->getJoin();
 
-    // shortcuts
+    // Shortcuts.
     $options = $this->handler->options;
     $view = $this->handler->view;
     $query = $this->handler->query;
@@ -159,7 +159,7 @@ public function ensureMyTable() {
       $field = $this->handler->relationship . '_' . $this->handler->table . '.' . $this->handler->field;
       if ($this->handler->operator == 'or' && empty($this->handler->options['reduce_duplicates'])) {
         if (empty($this->handler->options['add_table']) && empty($this->handler->view->many_to_one_tables[$field])) {
-          // query optimization, INNER joins are slightly faster, so use them
+          // Query optimization, INNER joins are slightly faster, so use them
           // when we know we can.
           $join = $this->getJoin();
           if (isset($join)) {
@@ -332,7 +332,7 @@ public function addFilter() {
         $clause->condition("$alias.$field", $value);
       }
 
-      // implode on either AND or OR.
+      // Implode on either AND or OR.
       $this->handler->query->addWhere($options['group'], $clause);
     }
   }
diff --git a/core/modules/views/src/Plugin/views/HandlerBase.php b/core/modules/views/src/Plugin/views/HandlerBase.php
index 2e5249b..26fee7c 100644
--- a/core/modules/views/src/Plugin/views/HandlerBase.php
+++ b/core/modules/views/src/Plugin/views/HandlerBase.php
@@ -104,7 +104,6 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
     // Check to see if this handler type is defaulted. Note that
     // we have to do a lookup because the type is singular but the
     // option is stored as the plural.
-
     $this->unpackOptions($this->options, $options);
 
     // This exist on most handlers, but not all. So they are still optional.
@@ -569,8 +568,8 @@ public function storeExposedInput($input, $status) { return TRUE; }
    * {@inheritdoc}
    */
   public function getJoin() {
-    // get the join from this table that links back to the base table.
-    // Determine the primary table to seek
+    // Get the join from this table that links back to the base table.
+    // Determine the primary table to seek.
     if (empty($this->query->relationships[$this->relationship])) {
       $base_table = $this->view->storage->get('base_table');
     }
@@ -734,7 +733,7 @@ public static function breakString($str, $force_int = FALSE) {
    */
   public function displayExposedForm($form, FormStateInterface $form_state) {
     $item = &$this->options;
-    // flip
+    // Flip.
     $item['exposed'] = empty($item['exposed']);
 
     // If necessary, set new defaults:
@@ -812,7 +811,7 @@ public function submitTemporaryForm($form, FormStateInterface $form_state) {
 
     $form_state->get('rerender', TRUE);
     $form_state->setRebuild();
-    // Write to cache
+    // Write to cache.
     $view->cacheSet();
   }
 }
diff --git a/core/modules/views/src/Plugin/views/PluginBase.php b/core/modules/views/src/Plugin/views/PluginBase.php
index 1cc52f3..e60ab7c 100644
--- a/core/modules/views/src/Plugin/views/PluginBase.php
+++ b/core/modules/views/src/Plugin/views/PluginBase.php
@@ -352,7 +352,7 @@ protected function viewsTokenReplace($text, $tokens) {
     foreach ($tokens as $token => $replacement) {
       // Twig wants a token replacement array stripped of curly-brackets.
       // Some Views tokens come with curly-braces, others do not.
-      //@todo: https://www.drupal.org/node/2544392
+      // @todo: https://www.drupal.org/node/2544392
       if (strpos($token, '{{') !== FALSE) {
         // Twig wants a token replacement array stripped of curly-brackets.
         $token = trim(str_replace(['{{', '}}'], '', $token));
@@ -388,7 +388,6 @@ protected function viewsTokenReplace($text, $tokens) {
       // Use the unfiltered text for the Twig template, then filter the output.
       // Otherwise, Xss::filterAdmin could remove valid Twig syntax before the
       // template is parsed.
-
       $build = array(
         '#type' => 'inline_template',
         '#template' => $text,
diff --git a/core/modules/views/src/Plugin/views/area/View.php b/core/modules/views/src/Plugin/views/area/View.php
index a624423..6c0cd5f 100644
--- a/core/modules/views/src/Plugin/views/area/View.php
+++ b/core/modules/views/src/Plugin/views/area/View.php
@@ -111,11 +111,11 @@ public function render($empty = FALSE) {
       }
       $view->setDisplay($display_id);
 
-      // Avoid recursion
+      // Avoid recursion.
       $view->parent_views += $this->view->parent_views;
       $view->parent_views[] = "$view_name:$display_id";
 
-      // Check if the view is part of the parent views of this view
+      // Check if the view is part of the parent views of this view.
       $search = "$view_name:$display_id";
       if (in_array($search, $this->view->parent_views)) {
         drupal_set_message(t("Recursion detected in view @view display @display.", array('@view' => $view_name, '@display' => $display_id)), 'error');
diff --git a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
index 56641c6..b8aa16f 100644
--- a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
+++ b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
@@ -325,7 +325,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
               '#suffix' => '</div>',
               '#type' => 'item',
               // Even if the plugin has no options add the key to the form_state.
-              '#input' => TRUE, // trick it into checking input to make #process run
+              '#input' => TRUE, // trick it into checking input to make #process run.
               '#states' => array(
                 'visible' => array(
                   ':input[name="options[specify_validation]"]' => array('checked' => TRUE),
@@ -411,7 +411,7 @@ public function validateOptionsForm(&$form, FormStateInterface $form_state) {
       $plugin->validateOptionsForm($form['argument_default'][$default_id], $form_state, $option_values['argument_default'][$default_id]);
     }
 
-    // summary plugin
+    // Summary plugin.
     $summary_id = $option_values['summary']['format'];
     $plugin = $this->getPlugin('style', $summary_id);
     if ($plugin) {
@@ -444,7 +444,7 @@ public function submitOptionsForm(&$form, FormStateInterface $form_state) {
       $option_values['default_argument_options'] = $options;
     }
 
-    // summary plugin
+    // Summary plugin.
     $summary_id = $option_values['summary']['format'];
     $plugin = $this->getPlugin('style', $summary_id);
     if ($plugin) {
@@ -498,12 +498,12 @@ protected function defaultActions($which = NULL) {
         'method' => 'defaultDefault',
         'form method' => 'defaultArgumentForm',
         'has default argument' => TRUE,
-        'default only' => TRUE, // this can only be used for missing argument, not validation failure
+        'default only' => TRUE, // This can only be used for missing argument, not validation failure.
       ),
       'not found' => array(
         'title' => $this->t('Hide view'),
         'method' => 'defaultNotFound',
-        'hard fail' => TRUE, // This is a hard fail condition
+        'hard fail' => TRUE, // This is a hard fail condition.
       ),
       'summary' => array(
         'title' => $this->t('Display a summary'),
@@ -669,7 +669,7 @@ public function defaultSummaryForm(&$form, FormStateInterface $form_state) {
           '#suffix' => '</div>',
           '#id' => 'edit-options-summary-options-' . $id,
           '#type' => 'item',
-          '#input' => TRUE, // trick it into checking input to make #process run
+          '#input' => TRUE, // Trick it into checking input to make #process run.
           '#states' => array(
             'visible' => array(
               ':input[name="options[default_action]"]' => array('value' => 'summary'),
@@ -861,9 +861,8 @@ protected function summaryQuery() {
   protected function summaryNameField() {
     // Add the 'name' field. For example, if this is a uid argument, the
     // name field would be 'name' (i.e, the username).
-
     if (isset($this->name_table)) {
-      // if the alias is different then we're probably added, not ensured,
+      // If the alias is different then we're probably added, not ensured,
       // so look up the join and add it instead.
       if ($this->tableAlias != $this->name_table) {
         $j = HandlerBase::getTableJoin($this->name_table, $this->table);
@@ -894,7 +893,7 @@ protected function summaryNameField() {
    * code that goes into summaryQuery()
    */
   public function summaryBasics($count_field = TRUE) {
-    // Add the number of nodes counter
+    // Add the number of nodes counter.
     $distinct = ($this->view->display_handler->getOption('distinct') && empty($this->query->no_distinct));
 
     $count_alias = $this->query->addField($this->view->storage->get('base_table'), $this->view->storage->get('base_field'), 'num_records', array('count' => TRUE, 'distinct' => $distinct));
@@ -1059,7 +1058,7 @@ public function getValue() {
     if (!isset($arg) && $argument->hasDefaultArgument()) {
       $arg = $argument->getDefaultArgument();
 
-      // remember that this argument was computed, not passed on the URL.
+      // Remember that this argument was computed, not passed on the URL.
       $this->is_default = TRUE;
     }
     // Set the argument, which will also validate that the argument can be set.
@@ -1102,7 +1101,7 @@ public function getPlugin($type = 'argument_default', $name = NULL) {
       $name = $plugin_name;
     }
 
-    // we only fetch the options if we're fetching the plugin actually
+    // We only fetch the options if we're fetching the plugin actually
     // in use.
     if ($name == $plugin_name) {
       $options = isset($this->options[$options_name]) ? $this->options[$options_name] : [];
diff --git a/core/modules/views/src/Plugin/views/argument/DayDate.php b/core/modules/views/src/Plugin/views/argument/DayDate.php
index 187be04..a718778 100644
--- a/core/modules/views/src/Plugin/views/argument/DayDate.php
+++ b/core/modules/views/src/Plugin/views/argument/DayDate.php
@@ -24,7 +24,7 @@ class DayDate extends Date {
    */
   public function summaryName($data) {
     $day = str_pad($data->{$this->name_alias}, 2, '0', STR_PAD_LEFT);
-    // strtotime respects server timezone, so we need to set the time fixed as utc time
+    // Strtotime respects server timezone, so we need to set the time fixed as utc time.
     return format_date(strtotime("2005" . "05" . $day . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
   }
 
diff --git a/core/modules/views/src/Plugin/views/argument/ManyToOne.php b/core/modules/views/src/Plugin/views/argument/ManyToOne.php
index 48385d5..869fc27 100644
--- a/core/modules/views/src/Plugin/views/argument/ManyToOne.php
+++ b/core/modules/views/src/Plugin/views/argument/ManyToOne.php
@@ -61,7 +61,7 @@ protected function defineOptions() {
   public function buildOptionsForm(&$form, FormStateInterface $form_state) {
     parent::buildOptionsForm($form, $form_state);
 
-    // allow + for or, , for and
+    // Allow + for or, , for and.
     $form['break_phrase'] = array(
       '#type' => 'checkbox',
       '#title' => $this->t('Allow multiple values'),
diff --git a/core/modules/views/src/Plugin/views/argument/NumericArgument.php b/core/modules/views/src/Plugin/views/argument/NumericArgument.php
index 929e5a2..082f4a3 100644
--- a/core/modules/views/src/Plugin/views/argument/NumericArgument.php
+++ b/core/modules/views/src/Plugin/views/argument/NumericArgument.php
@@ -38,7 +38,7 @@ protected function defineOptions() {
   public function buildOptionsForm(&$form, FormStateInterface $form_state) {
     parent::buildOptionsForm($form, $form_state);
 
-    // allow + for or, , for and
+    // Allow + for or, , for and.
     $form['break_phrase'] = array(
       '#type' => 'checkbox',
       '#title' => $this->t('Allow multiple values'),
diff --git a/core/modules/views/src/Plugin/views/argument/StringArgument.php b/core/modules/views/src/Plugin/views/argument/StringArgument.php
index 085589a..aeb197e 100644
--- a/core/modules/views/src/Plugin/views/argument/StringArgument.php
+++ b/core/modules/views/src/Plugin/views/argument/StringArgument.php
@@ -130,7 +130,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
       );
     }
 
-    // allow + for or, , for and
+    // Allow + for or, , for and.
     $form['break_phrase'] = array(
       '#type' => 'checkbox',
       '#title' => $this->t('Allow multiple values'),
diff --git a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php
index ad6d19d..834e520 100644
--- a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php
+++ b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php
@@ -200,7 +200,7 @@ public function generateResultsKey() {
         'build_info' => $build_info,
       ];
       // @todo https://www.drupal.org/node/2433591 might solve it to not require
-      //    the pager information here.
+      //   the pager information here.
       $key_data['pager'] = [
         'page' => $this->view->getCurrentPage(),
         'items_per_page' => $this->view->getItemsPerPage(),
diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
index 12eeb7b..1f9d5e0 100644
--- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -746,7 +746,7 @@ public function getRoutedDisplay() {
       return $this->view->displayHandlers->get($display_id)->getRoutedDisplay();
     }
 
-    // No routed display exists, so return NULL
+    // No routed display exists, so return NULL.
     return NULL;
   }
 
diff --git a/core/modules/views/src/Plugin/views/display/Page.php b/core/modules/views/src/Plugin/views/display/Page.php
index 8ca7f1c..379d923 100644
--- a/core/modules/views/src/Plugin/views/display/Page.php
+++ b/core/modules/views/src/Plugin/views/display/Page.php
@@ -470,7 +470,7 @@ public function submitOptionsForm(&$form, FormStateInterface $form_state) {
         $menu = $form_state->getValue('menu');
         list($menu['menu_name'], $menu['parent']) = explode(':', $menu['parent'], 2);
         $this->setOption('menu', $menu);
-        // send ajax form to options page if we use it.
+        // Send ajax form to options page if we use it.
         if ($form_state->getValue(array('menu', 'type')) == 'default tab') {
           $form_state->get('view')->addFormToStack('display', $this->display['id'], 'tab_options');
         }
diff --git a/core/modules/views/src/Plugin/views/display/PathPluginBase.php b/core/modules/views/src/Plugin/views/display/PathPluginBase.php
index cc92492..4ceafff 100644
--- a/core/modules/views/src/Plugin/views/display/PathPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display/PathPluginBase.php
@@ -243,7 +243,6 @@ public function alterRoutes(RouteCollection $collection) {
 
         // @todo Figure out whether we need to merge some settings (like
         // requirements).
-
         // Replace the existing route with a new one based on views.
         $original_route = $collection->get($name);
         $collection->remove($name);
@@ -289,7 +288,6 @@ public function getMenuLinks() {
 
     // Replace % with the link to our standard views argument loader
     // views_arg_load -- which lives in views.module.
-
     $bits = explode('/', $this->getOption('path'));
 
     // Replace % with %views_arg for menu autoloading and add to the
diff --git a/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php b/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php
index e6325aa..569930f 100644
--- a/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php
+++ b/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php
@@ -200,7 +200,7 @@ public function exposedFormAlter(&$form, FormStateInterface $form_state) {
       $form['actions']['submit']['#value'] = $this->options['submit_button'];
     }
 
-    // Check if there is exposed sorts for this view
+    // Check if there is exposed sorts for this view.
     $exposed_sorts = array();
     foreach ($this->view->sort as $id => $handler) {
       if ($handler->canExpose() && $handler->isExposed()) {
@@ -302,7 +302,6 @@ public function exposedFormSubmit(&$form, FormStateInterface $form_state, &$excl
 
   public function resetForm(&$form, FormStateInterface $form_state) {
     // _SESSION is not defined for users who are not logged in.
-
     // If filters are not overridden, store the 'remember' settings on the
     // default display. If they are, store them on this display. This way,
     // multiple displays in the same view can share the same filters and
diff --git a/core/modules/views/src/Plugin/views/field/Counter.php b/core/modules/views/src/Plugin/views/field/Counter.php
index 06d9b56..bdbda82 100644
--- a/core/modules/views/src/Plugin/views/field/Counter.php
+++ b/core/modules/views/src/Plugin/views/field/Counter.php
@@ -51,7 +51,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
    * {@inheritdoc}
    */
   public function query() {
-    // do nothing -- to override the parent query.
+    // Do nothing -- to override the parent query.
   }
 
   /**
diff --git a/core/modules/views/src/Plugin/views/field/Custom.php b/core/modules/views/src/Plugin/views/field/Custom.php
index 19552b2..7971cbd 100644
--- a/core/modules/views/src/Plugin/views/field/Custom.php
+++ b/core/modules/views/src/Plugin/views/field/Custom.php
@@ -27,7 +27,7 @@ public function usesGroupBy() {
    * {@inheritdoc}
    */
   public function query() {
-    // do nothing -- to override the parent query.
+    // Do nothing -- to override the parent query.
   }
 
   /**
@@ -48,7 +48,7 @@ protected function defineOptions() {
   public function buildOptionsForm(&$form, FormStateInterface $form_state) {
     parent::buildOptionsForm($form, $form_state);
 
-    // Remove the checkbox
+    // Remove the checkbox.
     unset($form['alter']['alter_text']);
     unset($form['alter']['text']['#states']);
     unset($form['alter']['help']['#states']);
diff --git a/core/modules/views/src/Plugin/views/field/Date.php b/core/modules/views/src/Plugin/views/field/Date.php
index f5a5204..210873d 100644
--- a/core/modules/views/src/Plugin/views/field/Date.php
+++ b/core/modules/views/src/Plugin/views/field/Date.php
@@ -143,7 +143,7 @@ public function render(ResultRow $values) {
 
     if ($value) {
       $timezone = !empty($this->options['timezone']) ? $this->options['timezone'] : NULL;
-      $time_diff = REQUEST_TIME - $value; // will be positive for a datetime in the past (ago), and negative for a datetime in the future (hence)
+      $time_diff = REQUEST_TIME - $value; // Will be positive for a datetime in the past (ago), and negative for a datetime in the future (hence)
       switch ($format) {
         case 'raw time ago':
           return $this->dateFormatter->formatTimeDiffSince($value, array('granularity' => is_numeric($custom_format) ? $custom_format : 2));
diff --git a/core/modules/views/src/Plugin/views/field/Field.php b/core/modules/views/src/Plugin/views/field/Field.php
index 6d318c4..f63f1c3 100644
--- a/core/modules/views/src/Plugin/views/field/Field.php
+++ b/core/modules/views/src/Plugin/views/field/Field.php
@@ -190,7 +190,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
         $this->limit_values = TRUE;
       }
 
-      // If "First and last only" is chosen, limit the values
+      // If "First and last only" is chosen, limit the values.
       if (!empty($this->options['delta_first_last'])) {
         $this->limit_values = TRUE;
       }
@@ -610,7 +610,6 @@ public function buildGroupByForm(&$form, FormStateInterface $form_state) {
     parent::buildGroupByForm($form, $form_state);
     // With "field API" fields, the column target of the grouping function
     // and any additional grouping columns must be specified.
-
     $field_columns = array_keys($this->getFieldDefinition()->getColumns());
     $group_columns = array(
       'entity_id' => $this->t('Entity ID'),
diff --git a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
index 4e4bf7f..bcfd5fe 100644
--- a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
+++ b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
@@ -151,7 +151,7 @@ public function query() {
    */
   protected function addAdditionalFields($fields = NULL) {
     if (!isset($fields)) {
-      // notice check
+      // Notice check.
       if (empty($this->additional_fields)) {
         return;
       }
@@ -852,7 +852,6 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
 
 
       // Get a list of the available fields and arguments for token replacement.
-
       // Setup the tokens for fields.
       $previous = $this->getPreviousFieldLabels();
       $optgroup_arguments = (string) t('Arguments');
@@ -871,7 +870,6 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
       $this->documentSelfTokens($options[$optgroup_fields]);
 
       // Default text.
-
       $output = [];
       $output[] = [
         '#markup' => '<p>' . $this->t('You must add some additional fields to this display before using this field. These fields may be marked as <em>Exclude from display</em> if you prefer. Note that due to rendering order, you cannot use fields that come after this field; if you need a field not listed here, rearrange your fields.') . '</p>',
@@ -1464,7 +1462,7 @@ protected function renderAsLink($alter, $text, $tokens) {
     }
 
     $alt = $this->viewsTokenReplace($alter['alt'], $tokens);
-    // Set the title attribute of the link only if it improves accessibility
+    // Set the title attribute of the link only if it improves accessibility.
     if ($alt && $alt != $text) {
       $options['attributes']['title'] = Html::decodeEntities($alt);
     }
@@ -1528,7 +1526,7 @@ protected function renderAsLink($alter, $text, $tokens) {
     $final_url = CoreUrl::fromUri($path, $options);
 
     // Build the link based on our altered Url object, adding on the optional
-    // prefix and suffix
+    // prefix and suffix.
     $render = [
       '#type' => 'link',
       '#title' => $text,
@@ -1772,7 +1770,7 @@ public static function trimText($alter, $value) {
           $value = $matches[1];
         }
       }
-      // Remove scraps of HTML entities from the end of a strings
+      // Remove scraps of HTML entities from the end of a strings.
       $value = rtrim(preg_replace('/(?:<(?!.+>)|&(?!.+;)).*$/us', '', $value));
 
       if (!empty($alter['ellipsis'])) {
diff --git a/core/modules/views/src/Plugin/views/filter/BooleanOperator.php b/core/modules/views/src/Plugin/views/filter/BooleanOperator.php
index c6433d4..f6535da 100644
--- a/core/modules/views/src/Plugin/views/filter/BooleanOperator.php
+++ b/core/modules/views/src/Plugin/views/filter/BooleanOperator.php
@@ -41,11 +41,11 @@ class BooleanOperator extends FilterPluginBase {
    */
   const NOT_EQUAL = '<>';
 
-  // exposed filter options
+  // Exposed filter options.
   protected $alwaysMultiple = TRUE;
   // Don't display empty space where the operator would be.
   var $no_operator = TRUE;
-  // Whether to accept NULL as a false value or not
+  // Whether to accept NULL as a false value or not.
   var $accept_null = FALSE;
 
 
diff --git a/core/modules/views/src/Plugin/views/filter/Combine.php b/core/modules/views/src/Plugin/views/filter/Combine.php
index 10a3158..60b1f17 100644
--- a/core/modules/views/src/Plugin/views/filter/Combine.php
+++ b/core/modules/views/src/Plugin/views/filter/Combine.php
@@ -29,7 +29,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
     parent::buildOptionsForm($form, $form_state);
     $this->view->initStyle();
 
-    // Allow to choose all fields as possible
+    // Allow to choose all fields as possible.
     if ($this->view->style_plugin->usesFields()) {
       $options = array();
       foreach ($this->view->display_handler->getHandlers('field') as $name => $field) {
@@ -120,7 +120,6 @@ public function validate() {
 
   // By default things like opEqual uses add_where, that doesn't support
   // complex expressions, so override all operators.
-
   function opEqual($expression) {
     $placeholder = $this->placeholder();
     $operator = $this->operator();
diff --git a/core/modules/views/src/Plugin/views/filter/Date.php b/core/modules/views/src/Plugin/views/filter/Date.php
index 8ea3750..dbfb45a 100644
--- a/core/modules/views/src/Plugin/views/filter/Date.php
+++ b/core/modules/views/src/Plugin/views/filter/Date.php
@@ -16,7 +16,7 @@ class Date extends NumericFilter {
   protected function defineOptions() {
     $options = parent::defineOptions();
 
-    // value is already set up properly, we're just adding our new field to it.
+    // Value is already set up properly, we're just adding our new field to it.
     $options['value']['contains']['type']['default'] = 'date';
 
     return $options;
@@ -154,7 +154,7 @@ public function acceptExposedInput($input) {
       }
     }
 
-    // restore what got overwritten by the parent.
+    // Restore what got overwritten by the parent.
     $this->value['type'] = $type;
     return $rc;
   }
@@ -164,8 +164,8 @@ protected function opBetween($field) {
     $b = intval(strtotime($this->value['max'], 0));
 
     if ($this->value['type'] == 'offset') {
-      $a = '***CURRENT_TIME***' . sprintf('%+d', $a); // keep sign
-      $b = '***CURRENT_TIME***' . sprintf('%+d', $b); // keep sign
+      $a = '***CURRENT_TIME***' . sprintf('%+d', $a); // Keep sign
+      $b = '***CURRENT_TIME***' . sprintf('%+d', $b); // keep sign.
     }
     // This is safe because we are manually scrubbing the values.
     // It is necessary to do it this way because $a and $b are formulas when using an offset.
@@ -176,7 +176,7 @@ protected function opBetween($field) {
   protected function opSimple($field) {
     $value = intval(strtotime($this->value['value'], 0));
     if (!empty($this->value['type']) && $this->value['type'] == 'offset') {
-      $value = '***CURRENT_TIME***' . sprintf('%+d', $value); // keep sign
+      $value = '***CURRENT_TIME***' . sprintf('%+d', $value); // Keep sign.
     }
     // This is safe because we are manually scrubbing the value.
     // It is necessary to do it this way because $value is a formula when using an offset.
diff --git a/core/modules/views/src/Plugin/views/filter/Equality.php b/core/modules/views/src/Plugin/views/filter/Equality.php
index 748c60d..2d8e080 100644
--- a/core/modules/views/src/Plugin/views/filter/Equality.php
+++ b/core/modules/views/src/Plugin/views/filter/Equality.php
@@ -13,7 +13,7 @@
  */
 class Equality extends FilterPluginBase {
 
-  // exposed filter options
+  // Exposed filter options.
   protected $alwaysMultiple = TRUE;
 
   /**
diff --git a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
index f7cbf1b..acde8c2 100644
--- a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
+++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
@@ -696,7 +696,6 @@ protected function buildGroupSubmit($form, FormStateInterface $form_state) {
     $group_items = $form_state->getValue(array('options', 'group_info', 'group_items'));
     uasort($group_items, array('Drupal\Component\Utility\SortArray', 'sortByWeightElement'));
     // Filter out removed items.
-
     // Start from 1 to avoid problems with #default_value in the widget.
     $new_id = 1;
     $new_default = 'All';
@@ -961,7 +960,7 @@ protected function buildExposedFiltersGroupForm(&$form, FormStateInterface $form
       '#default_value' => $this->options['group_info']['remember'],
     );
 
-    $groups = array('All' => $this->t('- Any -')); // The string '- Any -' will not be rendered see @theme_views_ui_build_group_filter_form
+    $groups = array('All' => $this->t('- Any -')); // The string '- Any -' will not be rendered see @theme_views_ui_build_group_filter_form.
 
     // Provide 3 options to start when we are in a new group.
     if (count($this->options['group_info']['group_items']) == 0) {
@@ -977,8 +976,7 @@ protected function buildExposedFiltersGroupForm(&$form, FormStateInterface $form
       // Each rows contains three widgets:
       // a) The title, where users define how they identify a pair of operator | value
       // b) The operator
-      // c) The value (or values) to use in the filter with the selected operator
-
+      // c) The value (or values) to use in the filter with the selected operator.
       // In each row, we have to display the operator form and the value from
       // $row acts as a fake form to render each widget in a row.
       $row = array();
@@ -1399,7 +1397,7 @@ public function storeExposedInput($input, $status) {
     // know where to look for session stored values.
     $display_id = ($this->view->display_handler->isDefaulted('filters')) ? 'default' : $this->view->current_display;
 
-    // shortcut test.
+    // Shortcut test.
     $operator = !empty($this->options['expose']['use_operator']) && !empty($this->options['expose']['operator_id']);
 
     // False means that we got a setting that means to recurse ourselves,
diff --git a/core/modules/views/src/Plugin/views/filter/InOperator.php b/core/modules/views/src/Plugin/views/filter/InOperator.php
index f3f1ca4..06dd66f 100644
--- a/core/modules/views/src/Plugin/views/filter/InOperator.php
+++ b/core/modules/views/src/Plugin/views/filter/InOperator.php
@@ -88,7 +88,7 @@ public function buildExposeForm(&$form, FormStateInterface $form_state) {
       '#type' => 'checkbox',
       '#title' => $this->t('Limit list to selected items'),
       '#description' => $this->t('If checked, the only items presented to the user will be the ones selected here.'),
-      '#default_value' => !empty($this->options['expose']['reduce']), // safety
+      '#default_value' => !empty($this->options['expose']['reduce']), // Safety.
     );
   }
 
@@ -124,7 +124,7 @@ function operators() {
         'values' => 1,
       ),
     );
-    // if the definition allows for the empty operator, add it.
+    // If the definition allows for the empty operator, add it.
     if (!empty($this->definition['allow empty'])) {
       $operators += array(
         'empty' => array(
@@ -190,7 +190,7 @@ protected function valueForm(&$form, FormStateInterface $form_state) {
       $identifier = $this->options['expose']['identifier'];
 
       if (empty($this->options['expose']['use_operator']) || empty($this->options['expose']['operator_id'])) {
-        // exposed and locked.
+        // Exposed and locked.
         $which = in_array($this->operator, $this->operatorValues(1)) ? 'value' : 'none';
       }
       else {
@@ -306,11 +306,9 @@ protected function valueSubmit($form, FormStateInterface $form_state) {
     // was not set, and the key to the checkbox if it is set.
     // Unfortunately, this means that if the key to that checkbox is 0,
     // we are unable to tell if that checkbox was set or not.
-
     // Luckily, the '#value' on the checkboxes form actually contains
     // *only* a list of checkboxes that were set, and we can use that
     // instead.
-
     $form_state->setValue(array('options', 'value'), $form['value']['#value']);
   }
 
diff --git a/core/modules/views/src/Plugin/views/filter/ManyToOne.php b/core/modules/views/src/Plugin/views/filter/ManyToOne.php
index 8e49cd5..cdea70d 100644
--- a/core/modules/views/src/Plugin/views/filter/ManyToOne.php
+++ b/core/modules/views/src/Plugin/views/filter/ManyToOne.php
@@ -81,7 +81,7 @@ function operators() {
         'ensure_my_table' => 'helper',
       ),
     );
-    // if the definition allows for the empty operator, add it.
+    // If the definition allows for the empty operator, add it.
     if (!empty($this->definition['allow empty'])) {
       $operators += array(
         'empty' => array(
diff --git a/core/modules/views/src/Plugin/views/filter/NumericFilter.php b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
index e1ad6b3..3b68c47 100644
--- a/core/modules/views/src/Plugin/views/filter/NumericFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
@@ -87,7 +87,7 @@ function operators() {
       ),
     );
 
-    // if the definition allows for the empty operator, add it.
+    // If the definition allows for the empty operator, add it.
     if (!empty($this->definition['allow empty'])) {
       $operators += array(
         'empty' => array(
@@ -149,7 +149,7 @@ protected function valueForm(&$form, FormStateInterface $form_state) {
       $identifier = $this->options['expose']['identifier'];
 
       if (empty($this->options['expose']['use_operator']) || empty($this->options['expose']['operator_id'])) {
-        // exposed and locked.
+        // Exposed and locked.
         $which = in_array($this->operator, $this->operatorValues(2)) ? 'minmax' : 'value';
       }
       else {
@@ -304,7 +304,7 @@ public function acceptExposedInput($input) {
       return TRUE;
     }
 
-    // rewrite the input value so that it's in the correct format so that
+    // Rewrite the input value so that it's in the correct format so that
     // the parent gets the right data.
     if (!empty($this->options['expose']['identifier'])) {
       $value = &$input[$this->options['expose']['identifier']];
diff --git a/core/modules/views/src/Plugin/views/filter/StringFilter.php b/core/modules/views/src/Plugin/views/filter/StringFilter.php
index 10c4070..2008dd3 100644
--- a/core/modules/views/src/Plugin/views/filter/StringFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/StringFilter.php
@@ -14,7 +14,7 @@
  */
 class StringFilter extends FilterPluginBase {
 
-  // exposed filter options
+  // Exposed filter options.
   protected $alwaysMultiple = TRUE;
 
   protected function defineOptions() {
@@ -111,7 +111,7 @@ function operators() {
         'values' => 1,
       ),
     );
-    // if the definition allows for the empty operator, add it.
+    // If the definition allows for the empty operator, add it.
     if (!empty($this->definition['allow empty'])) {
       $operators += array(
         'empty' => array(
@@ -190,7 +190,7 @@ protected function valueForm(&$form, FormStateInterface $form_state) {
       $identifier = $this->options['expose']['identifier'];
 
       if (empty($this->options['expose']['use_operator']) || empty($this->options['expose']['operator_id'])) {
-        // exposed and locked.
+        // Exposed and locked.
         $which = in_array($this->operator, $this->operatorValues(1)) ? 'value' : 'none';
       }
       else {
@@ -270,7 +270,7 @@ protected function opContainsWord($field) {
     preg_match_all('/ (-?)("[^"]+"|[^" ]+)/i', ' ' . $this->value, $matches, PREG_SET_ORDER);
     foreach ($matches as $match) {
       $phrase = FALSE;
-      // Strip off phrase quotes
+      // Strip off phrase quotes.
       if ($match[2]{0} == '"') {
         $match[2] = substr($match[2], 1, -1);
         $phrase = TRUE;
@@ -286,7 +286,7 @@ protected function opContainsWord($field) {
       return;
     }
 
-    // previously this was a call_user_func_array but that's unnecessary
+    // Previously this was a call_user_func_array but that's unnecessary
     // as views will unpack an array that is a single arg.
     $this->query->addWhere($this->options['group'], $where);
   }
diff --git a/core/modules/views/src/Plugin/views/join/JoinPluginBase.php b/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
index 36b6e42..0cc4645 100644
--- a/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
+++ b/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
@@ -299,7 +299,7 @@ public function buildJoin($select_query, $table, $view_query) {
           }
 
           // Convert a single-valued array of values to the single-value case,
-          // and transform from IN() notation to = notation
+          // and transform from IN() notation to = notation.
           if (is_array($info['value']) && count($info['value']) == 1) {
             $info['value'] = array_shift($info['value']);
           }
diff --git a/core/modules/views/src/Plugin/views/query/QueryPluginBase.php b/core/modules/views/src/Plugin/views/query/QueryPluginBase.php
index 5ebb3c5..0b4b919 100644
--- a/core/modules/views/src/Plugin/views/query/QueryPluginBase.php
+++ b/core/modules/views/src/Plugin/views/query/QueryPluginBase.php
@@ -171,7 +171,7 @@ public function setWhereGroup($type = 'AND', $group = NULL, $where = 'where') {
       $group = empty($groups) ? 1 : max(array_keys($groups)) + 1;
     }
 
-    // Create an empty group
+    // Create an empty group.
     if (empty($groups[$group])) {
       $groups[$group] = array('conditions' => array(), 'args' => array());
     }
diff --git a/core/modules/views/src/Plugin/views/query/Sql.php b/core/modules/views/src/Plugin/views/query/Sql.php
index d55ae56..56c2b86 100644
--- a/core/modules/views/src/Plugin/views/query/Sql.php
+++ b/core/modules/views/src/Plugin/views/query/Sql.php
@@ -121,7 +121,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
       'base' => $base_table
     );
 
-    // init the table queue with our primary table.
+    // Init the table queue with our primary table.
     $this->tableQueue[$base_table] = array(
       'alias' => $base_table,
       'table' => $base_table,
@@ -129,7 +129,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
       'join' => NULL,
     );
 
-    // init the tables with our primary table
+    // Init the tables with our primary table.
     $this->tables[$base_table][$base_table] = array(
       'count' => 1,
       'alias' => $base_table,
@@ -451,7 +451,7 @@ protected function markTable($table, $relationship, $alias) {
       if (!isset($alias)) {
         $alias = '';
         if ($relationship != $this->view->storage->get('base_table')) {
-          // double underscore will help prevent accidental name
+          // Double underscore will help prevent accidental name
           // space collisions.
           $alias = $relationship . '__';
         }
@@ -488,7 +488,7 @@ protected function markTable($table, $relationship, $alias) {
    *   cannot be ensured.
    */
   public function ensureTable($table, $relationship = NULL, JoinPluginBase $join = NULL) {
-    // ensure a relationship
+    // Ensure a relationship.
     if (empty($relationship)) {
       $relationship = $this->view->storage->get('base_table');
     }
@@ -537,10 +537,8 @@ public function ensureTable($table, $relationship = NULL, JoinPluginBase $join =
       // the same table with the same join multiple times.  For
       // example, a view that filters on 3 taxonomy terms using AND
       // needs to join taxonomy_term_data 3 times with the same join.
-
-      // scan through the table queue to see if a matching join and
+      // Scan through the table queue to see if a matching join and
       // relationship exists.  If so, use it instead of this join.
-
       // TODO: Scanning through $this->tableQueue results in an
       // O(N^2) algorithm, and this code runs every time the view is
       // instantiated (Views 2 does not currently cache queries).
@@ -631,7 +629,6 @@ protected function adjustJoin($join, $relationship) {
     if ($relationship != $this->view->storage->get('base_table')) {
       // If we're linking to the primary table, the relationship to use will
       // be the prior relationship. Unless it's a direct link.
-
       // Safety! Don't modify an original here.
       $join = clone $join;
 
@@ -642,7 +639,7 @@ protected function adjustJoin($join, $relationship) {
         $this->ensureTable($join->leftTable, $relationship);
       }
 
-      // First, if this is our link point/anchor table, just use the relationship
+      // First, if this is our link point/anchor table, just use the relationship.
       if ($join->leftTable == $this->relationships[$relationship]['table']) {
         $join->leftTable = $relationship;
       }
@@ -740,14 +737,13 @@ public function addField($table, $field, $alias = '', $params = array()) {
       $alias = $table . '_' . $field;
     }
 
-    // Make sure an alias is assigned
+    // Make sure an alias is assigned.
     $alias = $alias ? $alias : $field;
 
     // PostgreSQL truncates aliases to 63 characters:
     //   https://www.drupal.org/node/571548.
-
     // We limit the length of the original alias up to 60 characters
-    // to get a unique alias later if its have duplicates
+    // to get a unique alias later if its have duplicates.
     $alias = strtolower(substr($alias, 0, 60));
 
     // Create a field info array.
@@ -1194,12 +1190,12 @@ public function query($get_count = FALSE) {
     $options = array();
     $target = 'default';
     $key = 'default';
-    // Detect an external database and set the
+    // Detect an external database and set the.
     if (isset($this->view->base_database)) {
       $key = $this->view->base_database;
     }
 
-    // Set the replica target if the replica option is set
+    // Set the replica target if the replica option is set.
     if (!empty($this->options['replica'])) {
       $target = 'replica';
     }
@@ -1280,7 +1276,7 @@ public function query($get_count = FALSE) {
     }
 
     if (!$this->getCountOptimized) {
-      // we only add the orderby if we're not counting.
+      // We only add the orderby if we're not counting.
       if ($this->orderby) {
         foreach ($this->orderby as $order) {
           if ($order['field'] == 'rand_') {
@@ -1407,7 +1403,7 @@ function execute(ViewExecutable $view) {
       // are used on the query. TODO: Find a better way to do this.
       if (!empty($additional_arguments)) {
         // $query->where('1 = 1', $additional_arguments);
-        // $count_query->where('1 = 1', $additional_arguments);
+        // $count_query->where('1 = 1', $additional_arguments);.
       }
 
       $start = microtime(TRUE);
@@ -1722,7 +1718,7 @@ public function getDateField($field) {
   public function setupTimezone() {
     $timezone = drupal_get_user_timezone();
 
-    // set up the database timezone
+    // Set up the database timezone.
     $db_type = Database::getConnection()->databaseType();
     if (in_array($db_type, array('mysql', 'pgsql'))) {
       $offset = '+00:00';
@@ -1815,7 +1811,7 @@ public function getDateFormat($field, $format, $string_date = FALSE) {
           'd' => '%d',
           // No format for full day name.
           'l' => '%d',
-          // no format for day of month number without leading zeros.
+          // No format for day of month number without leading zeros.
           'j' => '%d',
           'W' => '%W',
           'H' => '%H',
diff --git a/core/modules/views/src/Plugin/views/relationship/EntityReverse.php b/core/modules/views/src/Plugin/views/relationship/EntityReverse.php
index c1b8821..21e62b4 100644
--- a/core/modules/views/src/Plugin/views/relationship/EntityReverse.php
+++ b/core/modules/views/src/Plugin/views/relationship/EntityReverse.php
@@ -97,7 +97,7 @@ public function query() {
     $second_join = $this->joinManager->createInstance($id, $second);
     $second_join->adjusted = TRUE;
 
-    // use a short alias for this:
+    // Use a short alias for this:
     $alias = $this->definition['field_name'] . '_' . $this->table;
 
     $this->alias = $this->query->addRelationship($alias, $second_join, $this->definition['base'], $this->relationship);
diff --git a/core/modules/views/src/Plugin/views/relationship/GroupwiseMax.php b/core/modules/views/src/Plugin/views/relationship/GroupwiseMax.php
index 004e4e8..355b751 100644
--- a/core/modules/views/src/Plugin/views/relationship/GroupwiseMax.php
+++ b/core/modules/views/src/Plugin/views/relationship/GroupwiseMax.php
@@ -184,7 +184,7 @@ protected function leftQuery($options) {
     // Either load another view, or create one on the fly.
     if ($options['subquery_view']) {
       $temp_view = Views::getView($options['subquery_view']);
-      // Remove all fields from default display
+      // Remove all fields from default display.
       unset($temp_view->display['default']['display_options']['fields']);
     }
     else {
@@ -378,7 +378,7 @@ public function query() {
     }
     $join = Views::pluginManager('join')->createInstance($id, $def);
 
-    // use a short alias for this:
+    // Use a short alias for this:
     $alias = $def['table'] . '_' . $this->table;
 
     $this->alias = $this->query->addRelationship($alias, $join, $this->definition['base'], $this->relationship);
diff --git a/core/modules/views/src/Plugin/views/relationship/RelationshipPluginBase.php b/core/modules/views/src/Plugin/views/relationship/RelationshipPluginBase.php
index 25a0001..9f62aa5 100644
--- a/core/modules/views/src/Plugin/views/relationship/RelationshipPluginBase.php
+++ b/core/modules/views/src/Plugin/views/relationship/RelationshipPluginBase.php
@@ -153,7 +153,7 @@ public function query() {
     }
     $join = Views::pluginManager('join')->createInstance($id, $def);
 
-    // use a short alias for this:
+    // Use a short alias for this:
     $alias = $def['table'] . '_' . $this->table;
 
     $this->alias = $this->query->addRelationship($alias, $join, $this->definition['base'], $this->relationship);
diff --git a/core/modules/views/src/Plugin/views/sort/SortPluginBase.php b/core/modules/views/src/Plugin/views/sort/SortPluginBase.php
index cd9555e..10a257f 100644
--- a/core/modules/views/src/Plugin/views/sort/SortPluginBase.php
+++ b/core/modules/views/src/Plugin/views/sort/SortPluginBase.php
@@ -95,7 +95,7 @@ public function showExposeButton(&$form, FormStateInterface $form_state) {
     $form['expose_button'] = array(
       '#prefix' => '<div class="views-expose clearfix">',
       '#suffix' => '</div>',
-      // Should always come first
+      // Should always come first.
       '#weight' => -1000,
     );
 
diff --git a/core/modules/views/src/Plugin/views/style/StylePluginBase.php b/core/modules/views/src/Plugin/views/style/StylePluginBase.php
index 648b178..1d27a04 100644
--- a/core/modules/views/src/Plugin/views/style/StylePluginBase.php
+++ b/core/modules/views/src/Plugin/views/style/StylePluginBase.php
@@ -576,7 +576,7 @@ public function renderGrouping($records, $groupings = array(), $group_rendered =
       $groupings = array(array('field' => $groupings, 'rendered' => $rendered));
     }
 
-    // Make sure fields are rendered
+    // Make sure fields are rendered.
     $this->renderFields($this->view->result);
     $sets = array();
     if ($groupings) {
@@ -708,7 +708,7 @@ protected function renderFields(array $result) {
           // - HTML views are rendered inside a render context: then we want to
           //   use ::render(), so that attachments and cacheability are bubbled.
           // - non-HTML views are rendered outside a render context: then we
-          //   want to use ::renderPlain(), so that no bubbling happens
+          //   want to use ::renderPlain(), so that no bubbling happens.
           if ($renderer->hasRenderContext()) {
             $renderer->render($data);
           }
diff --git a/core/modules/views/src/Plugin/views/style/Table.php b/core/modules/views/src/Plugin/views/style/Table.php
index c49f6e9..c7721d4 100644
--- a/core/modules/views/src/Plugin/views/style/Table.php
+++ b/core/modules/views/src/Plugin/views/style/Table.php
@@ -104,7 +104,7 @@ public function buildSortPost() {
     $query = $this->view->getRequest()->query;
     $order = $query->get('order');
     if (!isset($order)) {
-      // check for a 'default' clicksort. If there isn't one, exit gracefully.
+      // Check for a 'default' clicksort. If there isn't one, exit gracefully.
       if (empty($this->options['default'])) {
         return;
       }
@@ -183,7 +183,7 @@ public function sanitizeColumns($columns, $fields = NULL) {
       }
 
       // If the field is the column, mark it so, or the column
-      // it's set to is a column, that's ok
+      // it's set to is a column, that's ok.
       if ($field == $column || $columns[$column] == $column && !empty($sanitized[$column])) {
         $sanitized[$field] = $column;
       }
@@ -317,7 +317,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
           '#return_value' => $field,
           '#parents' => array('style_options', 'default'),
           '#id' => $radio_id,
-          // because 'radio' doesn't fully support '#id' =(
+          // Because 'radio' doesn't fully support '#id' =(.
           '#attributes' => array('id' => $radio_id),
           '#default_value' => $default,
           '#states' => array(
@@ -380,13 +380,13 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
         ),
       );
 
-      // markup for the field name
+      // Markup for the field name.
       $form['info'][$field]['name'] = array(
         '#markup' => $field_names[$field],
       );
     }
 
-    // Provide a radio for no default sort
+    // Provide a radio for no default sort.
     $form['default'][-1] = array(
       '#title' => $this->t('No default sort'),
       '#title_display' => 'invisible',
diff --git a/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php b/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
index fce2937..bce50fd 100644
--- a/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
+++ b/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
@@ -678,7 +678,7 @@ protected function instantiateView($form, FormStateInterface $form_state) {
    *   arrays of options for that display.
    */
   protected function buildDisplayOptions($form, FormStateInterface $form_state) {
-    // Display: Master
+    // Display: Master.
     $display_options['default'] = $this->defaultDisplayOptions();
     $display_options['default'] += array(
       'filters' => array(),
@@ -687,7 +687,7 @@ protected function buildDisplayOptions($form, FormStateInterface $form_state) {
     $display_options['default']['filters'] += $this->defaultDisplayFilters($form, $form_state);
     $display_options['default']['sorts'] += $this->defaultDisplaySorts($form, $form_state);
 
-    // Display: Page
+    // Display: Page.
     if (!$form_state->isValueEmpty(array('page', 'create'))) {
       $display_options['page'] = $this->pageDisplayOptions($form, $form_state);
 
@@ -697,7 +697,7 @@ protected function buildDisplayOptions($form, FormStateInterface $form_state) {
       }
     }
 
-    // Display: Block
+    // Display: Block.
     if (!$form_state->isValueEmpty(array('block', 'create'))) {
       $display_options['block'] = $this->blockDisplayOptions($form, $form_state);
     }
@@ -729,13 +729,13 @@ protected function addDisplays(View $view, $display_options, $form, FormStateInt
     // instances.
     $executable = $view->getExecutable();
 
-    // Display: Master
+    // Display: Master.
     $default_display = $executable->newDisplay('default', 'Master', 'default');
     foreach ($display_options['default'] as $option => $value) {
       $default_display->setOption($option, $value);
     }
 
-    // Display: Page
+    // Display: Page.
     if (isset($display_options['page'])) {
       $display = $executable->newDisplay('page', 'Page', 'page_1');
       // The page display is usually the main one (from the user's point of
diff --git a/core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php b/core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php
index 123a9cb..a6d1c55 100644
--- a/core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php
+++ b/core/modules/views/src/Tests/AssertViewsCacheTagsTrait.php
@@ -62,7 +62,6 @@ protected function assertViewsCacheTags(ViewExecutable $view, $expected_results_
       $cache_plugin = $view->display_handler->getPlugin('cache');
 
       // Results cache.
-
       // Ensure that the views query is built.
       $view->build();
       $results_cache_item = \Drupal::cache('data')->get($cache_plugin->generateResultsKey());
diff --git a/core/modules/views/src/Tests/DefaultViewsTest.php b/core/modules/views/src/Tests/DefaultViewsTest.php
index 5c1f601..c2ed9ee9 100644
--- a/core/modules/views/src/Tests/DefaultViewsTest.php
+++ b/core/modules/views/src/Tests/DefaultViewsTest.php
@@ -165,16 +165,16 @@ public function testArchiveView() {
     // Create additional nodes compared to the one in the setup method.
     // Create two nodes in the same month, and one in each following month.
     $node = array(
-      'created' => 280299600, // Sun, 19 Nov 1978 05:00:00 GMT
+      'created' => 280299600, // Sun, 19 Nov 1978 05:00:00 GMT.
     );
     $this->drupalCreateNode($node);
     $this->drupalCreateNode($node);
     $node = array(
-      'created' => 282891600, // Tue, 19 Dec 1978 05:00:00 GMT
+      'created' => 282891600, // Tue, 19 Dec 1978 05:00:00 GMT.
     );
     $this->drupalCreateNode($node);
     $node = array(
-      'created' => 285570000, // Fri, 19 Jan 1979 05:00:00 GMT
+      'created' => 285570000, // Fri, 19 Jan 1979 05:00:00 GMT.
     );
     $this->drupalCreateNode($node);
 
diff --git a/core/modules/views/src/Tests/Entity/FieldEntityTest.php b/core/modules/views/src/Tests/Entity/FieldEntityTest.php
index 215b631..532ed9c 100644
--- a/core/modules/views/src/Tests/Entity/FieldEntityTest.php
+++ b/core/modules/views/src/Tests/Entity/FieldEntityTest.php
@@ -51,7 +51,6 @@ protected function setUp($import_test_views = TRUE) {
   public function testGetEntity() {
     // The view is a view of comments, their nodes and their authors, so there
     // are three layers of entities.
-
     $account = User::create(['name' => $this->randomMachineName(), 'bundle' => 'user']);
     $account->save();
 
diff --git a/core/modules/views/src/Tests/GlossaryTest.php b/core/modules/views/src/Tests/GlossaryTest.php
index 508a4eb..9499f73 100644
--- a/core/modules/views/src/Tests/GlossaryTest.php
+++ b/core/modules/views/src/Tests/GlossaryTest.php
@@ -50,7 +50,7 @@ public function testGlossaryView() {
       }
     }
 
-    // Execute glossary view
+    // Execute glossary view.
     $view = Views::getView('glossary');
     $view->setDisplay('attachment_1');
     $view->executeDisplay('attachment_1');
@@ -80,7 +80,7 @@ public function testGlossaryView() {
       ],
       [
         'config:views.view.glossary',
-        // Listed for letter 'a'
+        // Listed for letter 'a'.
         'node:' . $nodes_by_char['a'][0]->id(), 'node:' . $nodes_by_char['a'][1]->id(), 'node:' . $nodes_by_char['a'][2]->id(),
         // Link for letter 'd'.
         'node:1',
diff --git a/core/modules/views/src/Tests/Handler/FieldWebTest.php b/core/modules/views/src/Tests/Handler/FieldWebTest.php
index a6ff1b4..c6c5629 100644
--- a/core/modules/views/src/Tests/Handler/FieldWebTest.php
+++ b/core/modules/views/src/Tests/Handler/FieldWebTest.php
@@ -428,7 +428,6 @@ public function testFieldClasses() {
     }
 
     // Tests the label class/element.
-
     // Set some common label element types and see whether they appear with and without a custom class set.
     foreach (array('h1', 'span', 'p', 'div') as $element_type) {
       $id_field->options['element_label_type'] = $element_type;
@@ -448,7 +447,6 @@ public function testFieldClasses() {
     }
 
     // Tests the element classes/element.
-
     // Set some common element element types and see whether they appear with and without a custom class set.
     foreach (array('h1', 'span', 'p', 'div') as $element_type) {
       $id_field->options['element_type'] = $element_type;
diff --git a/core/modules/views/src/Tests/Handler/HandlerTest.php b/core/modules/views/src/Tests/Handler/HandlerTest.php
index 8ff4033..e090452 100644
--- a/core/modules/views/src/Tests/Handler/HandlerTest.php
+++ b/core/modules/views/src/Tests/Handler/HandlerTest.php
@@ -70,7 +70,7 @@ public function testBreakString() {
     // Check defaults.
     $this->assertEqual((object) array('value' => array(), 'operator' => NULL), HandlerBase::breakString(''));
 
-    // Test ors
+    // Test ors.
     $handler = HandlerBase::breakString('word1 word2+word');
     $this->assertEqualValue(array('word1', 'word2', 'word'), $handler);
     $this->assertEqual('or', $handler->operator);
@@ -104,13 +104,13 @@ public function testBreakString() {
     $this->assertEqualValue(array('wõrd1', 'wõrd2', 'wõrd'), $handler);
     $this->assertEqual('and', $handler->operator);
 
-    // Test a single word
+    // Test a single word.
     $handler = HandlerBase::breakString('word');
     $this->assertEqualValue(array('word'), $handler);
     $this->assertEqual('and', $handler->operator);
 
     $s1 = $this->randomMachineName();
-    // Generate three random numbers which can be used below;
+    // Generate three random numbers which can be used below;.
     $n1 = rand(0, 100);
     $n2 = rand(0, 100);
     $n3 = rand(0, 100);
@@ -158,7 +158,7 @@ public function testBreakString() {
     $this->assertEqualValue(array((int) $s1, $n2, $n3), $handlerBase);
     $this->assertEqual('or', $handlerBase->operator);
 
-    // Generate three random decimals which can be used below;
+    // Generate three random decimals which can be used below;.
     $d1 = rand(0, 10) / 10;
     $d2 = rand(0, 10) / 10;
     $d3 = rand(0, 10) / 10;
@@ -254,7 +254,6 @@ public function testRelationshipUI() {
 
     // The test view has a relationship to node_revision so the field should
     // show a relationship selection.
-
     $this->drupalGet($handler_options_path);
     $relationship_name = 'options[relationship]';
     $this->assertFieldByName($relationship_name);
diff --git a/core/modules/views/src/Tests/Plugin/ArgumentDefaultTest.php b/core/modules/views/src/Tests/Plugin/ArgumentDefaultTest.php
index 0708b86..eab41bc 100644
--- a/core/modules/views/src/Tests/Plugin/ArgumentDefaultTest.php
+++ b/core/modules/views/src/Tests/Plugin/ArgumentDefaultTest.php
@@ -117,7 +117,7 @@ public function testArgumentDefaultFixed() {
 
     $this->assertEqual($view->argument['null']->getDefaultArgument(), $random, 'Fixed argument should be used by default.');
 
-    // Make sure that a normal argument provided is used
+    // Make sure that a normal argument provided is used.
     $random_string = $this->randomMachineName();
     $view->executeDisplay('default', array($random_string));
 
@@ -127,8 +127,7 @@ public function testArgumentDefaultFixed() {
   /**
    * @todo Test php default argument.
    */
-  //function testArgumentDefaultPhp() {}
-
+  // Function testArgumentDefaultPhp() {}.
   /**
    * Test node default argument.
    */
diff --git a/core/modules/views/src/Tests/Plugin/DisplayTest.php b/core/modules/views/src/Tests/Plugin/DisplayTest.php
index 3bbfd66..90b542a 100644
--- a/core/modules/views/src/Tests/Plugin/DisplayTest.php
+++ b/core/modules/views/src/Tests/Plugin/DisplayTest.php
@@ -140,7 +140,7 @@ public function testFilterGroupsOverriding() {
     $view = Views::getView('test_filter_groups');
     $view->initDisplay();
 
-    // mark is as overridden, yes FALSE, means overridden.
+    // Mark is as overridden, yes FALSE, means overridden.
     $view->displayHandlers->get('page')->setOverride('filter_groups', FALSE);
     $this->assertFalse($view->displayHandlers->get('page')->isDefaulted('filter_groups'), "Make sure that 'filter_groups' is marked as overridden.");
     $this->assertFalse($view->displayHandlers->get('page')->isDefaulted('filters'), "Make sure that 'filters'' is marked as overridden.");
@@ -322,7 +322,7 @@ public function testMissingRelationship() {
 
     // Remove the relationship used by other handlers.
     $view->removeHandler('default', 'relationship', 'uid');
-    // Validate display
+    // Validate display.
     $errors = $view->validate();
     // Check that the error messages are shown.
     $this->assertTrue(count($errors['default']) == 2, 'Error messages found for required relationship');
diff --git a/core/modules/views/src/Tests/Plugin/PagerTest.php b/core/modules/views/src/Tests/Plugin/PagerTest.php
index e3282a3..b492425 100644
--- a/core/modules/views/src/Tests/Plugin/PagerTest.php
+++ b/core/modules/views/src/Tests/Plugin/PagerTest.php
@@ -49,7 +49,6 @@ public function testStorePagerSettings() {
     $this->drupalLogin($admin_user);
     // Test behavior described in
     //   https://www.drupal.org/node/652712#comment-2354918.
-
     $this->drupalGet('admin/structure/views/view/test_view/edit');
 
     $edit = array(
@@ -91,7 +90,7 @@ public function testStorePagerSettings() {
     $this->drupalPostForm('admin/structure/views/nojs/display/test_store_pager_settings/default/pager_options', $edit, t('Apply'));
     $this->assertText('20 items');
 
-    // add new display and test the settings again, by override it.
+    // Add new display and test the settings again, by override it.
     $edit = array( );
     // Add a display and override the pager settings.
     $this->drupalPostForm('admin/structure/views/view/test_store_pager_settings/edit', $edit, t('Add Page'));
@@ -232,14 +231,13 @@ public function testNormalPager() {
     $this->executeView($view);
     $this->assertEqual(count($view->result), 3, 'Make sure that only a certain count of items is returned');
 
-    // Test items per page = 0
+    // Test items per page = 0.
     $view = Views::getView('test_view_pager_full_zero_items_per_page');
     $this->executeView($view);
 
     $this->assertEqual(count($view->result), 11, 'All items are return');
 
     // TODO test number of pages.
-
     // Test items per page = 0.
     // Setup and test a offset.
     $view = Views::getView('test_pager_full');
@@ -289,7 +287,6 @@ function testPagerApi() {
     $view = Views::getView('test_pager_full');
     $view->setDisplay();
     // On the first round don't initialize the pager.
-
     $this->assertEqual($view->getItemsPerPage(), NULL, 'If the pager is not initialized and no manual override there is no items per page.');
     $rand_number = rand(1, 5);
     $view->setItemsPerPage($rand_number);
diff --git a/core/modules/views/src/Tests/SearchIntegrationTest.php b/core/modules/views/src/Tests/SearchIntegrationTest.php
index e71e159..f6ecd08 100644
--- a/core/modules/views/src/Tests/SearchIntegrationTest.php
+++ b/core/modules/views/src/Tests/SearchIntegrationTest.php
@@ -58,7 +58,6 @@ public function testSearchIntegration() {
     // Test the various views filters by visiting their pages.
     // These are in the test view 'test_search', and they just display the
     // titles of the nodes in the result, as links.
-
     // Page with a keyword filter of 'pizza'.
     $this->drupalGet('test-filter');
     $this->assertLink('pizza');
diff --git a/core/modules/views/src/Tests/SearchMultilingualTest.php b/core/modules/views/src/Tests/SearchMultilingualTest.php
index 5f583f0..008dd99 100644
--- a/core/modules/views/src/Tests/SearchMultilingualTest.php
+++ b/core/modules/views/src/Tests/SearchMultilingualTest.php
@@ -69,7 +69,6 @@ public function testMultilingualSearchFilter() {
     // Test the keyword filter by visiting the page.
     // The views are in the test view 'test_search', and they just display the
     // titles of the nodes in the result, as links.
-
     // Page with a keyword filter of 'pizza'. This should find the Spanish
     // translated node, which has 'pizza' in the title, but not the English
     // one, which does not have the word 'pizza' in it.
diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php
index 7a0d402..ecbbb6e 100644
--- a/core/modules/views/src/ViewExecutable.php
+++ b/core/modules/views/src/ViewExecutable.php
@@ -78,7 +78,6 @@ class ViewExecutable implements \Serializable {
   public $result = array();
 
   // May be used to override the current pager info.
-
   /**
    * The current page. If the view uses pagination.
    *
@@ -128,8 +127,7 @@ class ViewExecutable implements \Serializable {
    */
   public $feedIcons = array();
 
-  // Exposed widget input
-
+  // Exposed widget input.
   /**
    * All the form data from $form_state->getValues().
    *
@@ -253,7 +251,6 @@ class ViewExecutable implements \Serializable {
   public $base_database = NULL;
 
   // Handlers which are active on this view.
-
   /**
    * Stores the field handlers which are initialized on this view.
    *
@@ -673,7 +670,7 @@ public function getExposedInput() {
       $this->initDisplay();
 
       $this->exposed_input = \Drupal::request()->query->all();
-      // unset items that are definitely not our input:
+      // Unset items that are definitely not our input:
       foreach (array('page', 'q') as $key) {
         if (isset($this->exposed_input[$key])) {
           unset($this->exposed_input[$key]);
@@ -681,7 +678,6 @@ public function getExposedInput() {
       }
 
       // If we have no input at all, check for remembered input via session.
-
       // If filters are not overridden, store the 'remember' settings on the
       // default display. If they are, store them on this display. This way,
       // multiple displays in the same view can share the same filters and
@@ -1025,7 +1021,7 @@ protected function _buildArguments() {
       return TRUE;
     }
 
-    // build arguments.
+    // Build arguments.
     $position = -1;
     $substitutions = array();
     $status = TRUE;
@@ -1050,11 +1046,11 @@ protected function _buildArguments() {
       if (isset($arg) || $argument->hasDefaultArgument()) {
         if (!isset($arg)) {
           $arg = $argument->getDefaultArgument();
-          // make sure default args get put back.
+          // Make sure default args get put back.
           if (isset($arg)) {
             $this->args[$position] = $arg;
           }
-          // remember that this argument was computed, not passed on the URL.
+          // Remember that this argument was computed, not passed on the URL.
           $argument->is_default = TRUE;
         }
 
@@ -1072,17 +1068,17 @@ protected function _buildArguments() {
           $argument->query($this->display_handler->useGroupBy());
         }
 
-        // Add this argument's substitution
+        // Add this argument's substitution.
         $substitutions["{{ arguments.$id }}"] = $arg_title;
         $substitutions["{{ raw_arguments.$id }}"] = strip_tags(Html::decodeEntities($arg));
 
-        // Test to see if we should use this argument's title
+        // Test to see if we should use this argument's title.
         if (!empty($argument->options['title_enable']) && !empty($argument->options['title'])) {
           $title = $argument->options['title'];
         }
       }
       else {
-        // determine default condition and handle.
+        // Determine default condition and handle.
         $status = $argument->defaultAction();
         break;
       }
@@ -1091,7 +1087,7 @@ protected function _buildArguments() {
       unset($argument);
     }
 
-    // set the title in the build info.
+    // Set the title in the build info.
     if (!empty($title)) {
       $this->build_info['title'] = $title;
     }
@@ -1126,7 +1122,7 @@ public function initQuery() {
     if (!empty($this->query)) {
       $class = get_class($this->query);
       if ($class && $class != 'stdClass') {
-        // return if query is already initialized.
+        // Return if query is already initialized.
         return TRUE;
       }
     }
@@ -1246,7 +1242,7 @@ public function build($display_id = NULL) {
       if ($this->style_plugin->buildSort()) {
         $this->_build('sort');
       }
-      // allow the plugin to build second sorts as well.
+      // Allow the plugin to build second sorts as well.
       $this->style_plugin->buildSortPost();
     }
 
@@ -1282,7 +1278,7 @@ public function build($display_id = NULL) {
     $this->built = TRUE;
     $this->build_time = microtime(TRUE) - $start;
 
-    // Attach displays
+    // Attach displays.
     $this->attachDisplays();
 
     // Let modules modify the view just after building it.
@@ -1583,7 +1579,7 @@ public function executeDisplay($display_id = NULL, $args = array()) {
 
     $this->preExecute($args);
 
-    // Execute the view
+    // Execute the view.
     $output = $this->display_handler->execute();
 
     $this->postExecute();
@@ -1645,7 +1641,7 @@ public function preExecute($args = array()) {
     // Allow hook_views_pre_view() to set the dom_id, then ensure it is set.
     $this->dom_id = !empty($this->dom_id) ? $this->dom_id : hash('sha256', $this->storage->id() . REQUEST_TIME . mt_rand());
 
-    // Allow the display handler to set up for execution
+    // Allow the display handler to set up for execution.
     $this->display_handler->preExecute();
   }
 
@@ -1653,9 +1649,8 @@ public function preExecute($args = array()) {
    * Unsets the current view, mostly.
    */
   public function postExecute() {
-    // unset current view so we can be properly destructed later on.
+    // Unset current view so we can be properly destructed later on.
     // Return the previous value in case we're an attachment.
-
     if ($this->old_view) {
       $old_view = array_pop($this->old_view);
     }
@@ -2236,10 +2231,10 @@ public function getHandlers($type, $display_id = NULL) {
   public function getHandler($display_id, $type, $id) {
     // Get info about the types so we can get the right data.
     $types = static::getHandlerTypes();
-    // Initialize the display
+    // Initialize the display.
     $this->setDisplay($display_id);
 
-    // Get the existing configuration
+    // Get the existing configuration.
     $fields = $this->displayHandlers->get($display_id)->getOption($types[$type]['plural']);
 
     return isset($fields[$id]) ? $fields[$id] : NULL;
diff --git a/core/modules/views/src/Views.php b/core/modules/views/src/Views.php
index 10d8240..bf02e7d 100644
--- a/core/modules/views/src/Views.php
+++ b/core/modules/views/src/Views.php
@@ -221,7 +221,6 @@ public static function getApplicableViews($type) {
     $result = array();
     foreach (\Drupal::entityManager()->getStorage('view')->loadMultiple($entity_ids) as $view) {
       // Check each display to see if it meets the criteria and is enabled.
-
       foreach ($view->get('display') as $id => $display) {
         // If the key doesn't exist, enabled is assumed.
         $enabled = !empty($display['display_options']['enabled']) || !array_key_exists('enabled', $display['display_options']);
@@ -425,13 +424,13 @@ public static function getHandlerTypes() {
     if (!isset(static::$handlerTypes)) {
       static::$handlerTypes = array(
         'field' => array(
-          // title
+          // Title.
           'title' => static::t('Fields'),
           // Lowercase title for mid-sentence.
           'ltitle' => static::t('fields'),
           // Singular title.
           'stitle' => static::t('Field'),
-          // Singular lowercase title for mid sentence
+          // Singular lowercase title for mid sentence.
           'lstitle' => static::t('field'),
           'plural' => 'fields',
         ),
diff --git a/core/modules/views/src/ViewsDataHelper.php b/core/modules/views/src/ViewsDataHelper.php
index 791cd37..e888fca 100644
--- a/core/modules/views/src/ViewsDataHelper.php
+++ b/core/modules/views/src/ViewsDataHelper.php
@@ -62,15 +62,14 @@ public function fetchFields($base, $type, $grouping = FALSE, $sub_type = NULL) {
       // can appear in different places in the actual data structure so that
       // the data doesn't have to be repeated a lot. This essentially lets
       // each field have a cheap kind of inheritance.
-
       foreach ($data as $table => $table_data) {
         $bases = array();
         $strings = array();
         $skip_bases = array();
         foreach ($table_data as $field => $info) {
-          // Collect table data from this table
+          // Collect table data from this table.
           if ($field == 'table') {
-            // calculate what tables this table can join to.
+            // Calculate what tables this table can join to.
             if (!empty($info['join'])) {
               $bases = array_keys($info['join']);
             }
@@ -97,15 +96,15 @@ public function fetchFields($base, $type, $grouping = FALSE, $sub_type = NULL) {
                 }
               }
               foreach (array('title', 'group', 'help', 'base', 'aliases') as $string) {
-                // First, try the lowest possible level
+                // First, try the lowest possible level.
                 if (!empty($info[$key][$string])) {
                   $strings[$field][$key][$string] = $info[$key][$string];
                 }
-                // Then try the field level
+                // Then try the field level.
                 elseif (!empty($info[$string])) {
                   $strings[$field][$key][$string] = $info[$string];
                 }
-                // Finally, try the table level
+                // Finally, try the table level.
                 elseif (!empty($table_data['table'][$string])) {
                   $strings[$field][$key][$string] = $table_data['table'][$string];
                 }
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 449474a..11328ac 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
@@ -106,7 +106,7 @@ public function execute(ViewExecutable $view) {
       }
       if ($match) {
         // If the query explicit defines fields to use, filter all others out.
-        // Filter out fields
+        // Filter out fields.
         if ($this->fields) {
           $element = array_intersect_key($element, $this->fields);
         }
diff --git a/core/modules/views/tests/src/Kernel/BasicTest.php b/core/modules/views/tests/src/Kernel/BasicTest.php
index 49f4398..32fcac7 100644
--- a/core/modules/views/tests/src/Kernel/BasicTest.php
+++ b/core/modules/views/tests/src/Kernel/BasicTest.php
@@ -99,7 +99,7 @@ public function testSimpleFiltering() {
    * Tests simple argument.
    */
   public function testSimpleArgument() {
-    // Execute with a view
+    // Execute with a view.
     $view = Views::getView('test_simple_argument');
     $view->setArguments(array(27));
     $this->executeView($view);
diff --git a/core/modules/views/tests/src/Kernel/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php b/core/modules/views/tests/src/Kernel/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php
index 3c46c9e..5708078 100644
--- a/core/modules/views/tests/src/Kernel/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php
+++ b/core/modules/views/tests/src/Kernel/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php
@@ -290,9 +290,8 @@ public function testVariousTableUpdates() {
     // base + translation <-> base + translation + revision
     // base + revision <-> base + translation + revision
     // base <-> base + revision
-    // base <-> base + translation + revision
-
-    // base <-> base + translation
+    // base <-> base + translation + revision.
+    // Base <-> base + translation.
     $this->updateEntityTypeToTranslatable();
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
@@ -311,7 +310,7 @@ public function testVariousTableUpdates() {
 
     $this->resetEntityType();
 
-    // base + translation <-> base + translation + revision
+    // Base + translation <-> base + translation + revision.
     $this->updateEntityTypeToTranslatable();
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
@@ -338,7 +337,7 @@ public function testVariousTableUpdates() {
 
     $this->resetEntityType();
 
-    // base + revision <-> base + translation + revision
+    // Base + revision <-> base + translation + revision.
     $this->updateEntityTypeToRevisionable();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
 
@@ -364,7 +363,7 @@ public function testVariousTableUpdates() {
 
     $this->resetEntityType();
 
-    // base <-> base + revision
+    // Base <-> base + revision.
     $this->updateEntityTypeToRevisionable();
     $this->entityDefinitionUpdateManager->applyUpdates();
     list($view, $display) = $this->getUpdatedViewAndDisplay();
@@ -383,7 +382,7 @@ public function testVariousTableUpdates() {
 
     $this->resetEntityType();
 
-    // base <-> base + translation + revision
+    // Base <-> base + translation + revision.
     $this->updateEntityTypeToRevisionable();
     $this->updateEntityTypeToTranslatable();
     $this->entityDefinitionUpdateManager->applyUpdates();
@@ -407,7 +406,7 @@ public function testVariousTableUpdates() {
    * Tests some possible entity table updates for a revision view.
    */
   public function testVariousTableUpdatesForRevisionView() {
-    // base + revision <-> base + translation + revision
+    // Base + revision <-> base + translation + revision.
     $this->updateEntityTypeToRevisionable();
     // Multiple changes, so we have to invalidate the caches, otherwise
     // the second update will revert the first.
diff --git a/core/modules/views/tests/src/Kernel/Handler/AreaTextTest.php b/core/modules/views/tests/src/Kernel/Handler/AreaTextTest.php
index 5ccacd8..1f7e71c 100644
--- a/core/modules/views/tests/src/Kernel/Handler/AreaTextTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/AreaTextTest.php
@@ -35,7 +35,7 @@ public function testAreaText() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // add a text header
+    // Add a text header.
     $string = $this->randomMachineName();
     $view->displayHandlers->get('default')->overrideOption('header', array(
       'area' => array(
diff --git a/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php b/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php
index e90ec85..0853d27 100644
--- a/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php
@@ -27,7 +27,7 @@ function viewsData() {
   }
 
   public function testAreaText() {
-    // Test validation
+    // Test validation.
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -45,7 +45,7 @@ public function testAreaText() {
     // Make sure that the argument is not validated yet.
     unset($view->argument['null']->argument_validated);
     $this->assertTrue($view->argument['null']->validateArgument(26));
-    // test must_not_be option.
+    // Test must_not_be option.
     unset($view->argument['null']->argument_validated);
     $view->argument['null']->options['must_not_be'] = TRUE;
     $this->assertFalse($view->argument['null']->validateArgument(26), 'must_not_be returns FALSE, if there is an argument');
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php
index 1a5551c..f115392 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php
@@ -20,7 +20,7 @@ class FieldBooleanTest extends ViewsKernelTestBase {
   public static $testViews = array('test_view');
 
   function dataSet() {
-    // Use default dataset but remove the age from john and paul
+    // Use default dataset but remove the age from john and paul.
     $data = parent::dataSet();
     $data[0]['age'] = 0;
     $data[3]['age'] = 0;
@@ -64,7 +64,7 @@ public function testFieldBoolean() {
     $this->assertEqual(t('False'), $view->field['age']->advancedRender($view->result[0]));
     $this->assertEqual(t('True'), $view->field['age']->advancedRender($view->result[1]));
 
-    // test awesome unicode.
+    // Test awesome unicode.
     $view->field['age']->options['type'] = 'unicode-yes-no';
     $this->assertEqual('✖', $view->field['age']->advancedRender($view->result[0]));
     $this->assertEqual('✔', $view->field['age']->advancedRender($view->result[1]));
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
index a57e478..84a0ce8 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
@@ -770,7 +770,7 @@ public function testTrimText() {
       $this->assertEqual($result_text, $expect[$key]);
     }
 
-    // Test also word_boundary
+    // Test also word_boundary.
     $alter['word_boundary'] = TRUE;
     $expect = array(
       'Tuy nhiên',
diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php
index a4bd6c8..b6d719e 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php
@@ -40,7 +40,7 @@ function testEqual() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'name' => array(
         'id' => 'name',
@@ -66,7 +66,7 @@ public function testEqualGroupedExposed() {
     $view = Views::getView('test_view');
     $view->newDisplay('page', 'Page', 'page_1');
 
-    // Filter: Name, Operator: =, Value: Ringo
+    // Filter: Name, Operator: =, Value: Ringo.
     $filters['name']['group_info']['default_group'] = 1;
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -86,7 +86,7 @@ function testNotEqual() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'name' => array(
         'id' => 'name',
@@ -121,7 +121,7 @@ public function testEqualGroupedNotExposed() {
     $view = Views::getView('test_view');
     $view->newDisplay('page', 'Page', 'page_1');
 
-    // Filter: Name, Operator: !=, Value: Ringo
+    // Filter: Name, Operator: !=, Value: Ringo.
     $filters['name']['group_info']['default_group'] = 2;
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php
index 9ab08e1..6dd676a 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php
@@ -107,7 +107,7 @@ public function testFilterInOperatorGroupedExposedSimple() {
     $filters = $this->getGroupedExposedFilters();
     $view = Views::getView('test_view');
 
-    // Filter: Age, Operator: in, Value: 26, 30
+    // Filter: Age, Operator: in, Value: 26, 30.
     $filters['age']['group_info']['default_group'] = 1;
     $view->setDisplay();
     $view->displayHandlers->get('default')->overrideOption('filters', $filters);
@@ -133,7 +133,7 @@ public function testFilterNotInOperatorGroupedExposedSimple() {
     $filters = $this->getGroupedExposedFilters();
     $view = Views::getView('test_view');
 
-    // Filter: Age, Operator: in, Value: 26, 30
+    // Filter: Age, Operator: in, Value: 26, 30.
     $filters['age']['group_info']['default_group'] = 2;
     $view->setDisplay();
     $view->displayHandlers->get('default')->overrideOption('filters', $filters);
diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterNumericTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterNumericTest.php
index 7721479..75d02ca 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FilterNumericTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FilterNumericTest.php
@@ -43,7 +43,7 @@ public function testFilterNumericSimple() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'age' => array(
         'id' => 'age',
@@ -70,7 +70,7 @@ public function testFilterNumericExposedGroupedSimple() {
     $view = Views::getView('test_view');
     $view->newDisplay('page', 'Page', 'page_1');
 
-    // Filter: Age, Operator: =, Value: 28
+    // Filter: Age, Operator: =, Value: 28.
     $filters['age']['group_info']['default_group'] = 1;
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -91,7 +91,7 @@ public function testFilterNumericBetween() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'age' => array(
         'id' => 'age',
@@ -123,11 +123,11 @@ public function testFilterNumericBetween() {
     );
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
 
-    // test not between
+    // Test not between.
     $view->destroy();
     $view->setDisplay();
 
-      // Change the filtering
+      // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'age' => array(
         'id' => 'age',
@@ -165,7 +165,7 @@ public function testFilterNumericExposedGroupedBetween() {
     $view = Views::getView('test_view');
     $view->newDisplay('page', 'Page', 'page_1');
 
-    // Filter: Age, Operator: between, Value: 26 and 29
+    // Filter: Age, Operator: between, Value: 26 and 29.
     $filters['age']['group_info']['default_group'] = 2;
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -195,7 +195,7 @@ public function testFilterNumericExposedGroupedNotBetween() {
     $view = Views::getView('test_view');
     $view->newDisplay('page', 'Page', 'page_1');
 
-    // Filter: Age, Operator: between, Value: 26 and 29
+    // Filter: Age, Operator: between, Value: 26 and 29.
     $filters['age']['group_info']['default_group'] = 3;
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -224,7 +224,7 @@ public function testFilterNumericEmpty() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'age' => array(
         'id' => 'age',
@@ -243,7 +243,7 @@ public function testFilterNumericEmpty() {
     $view->destroy();
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'age' => array(
         'id' => 'age',
diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php
index e8c4977..5d29d50 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php
@@ -85,7 +85,7 @@ function testFilterStringEqual() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'name' => array(
         'id' => 'name',
@@ -110,7 +110,7 @@ function testFilterStringGroupedExposedEqual() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
-    // Filter: Name, Operator: =, Value: Ringo
+    // Filter: Name, Operator: =, Value: Ringo.
     $filters['name']['group_info']['default_group'] = 1;
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -132,7 +132,7 @@ function testFilterStringNotEqual() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'name' => array(
         'id' => 'name',
@@ -166,7 +166,7 @@ function testFilterStringGroupedExposedNotEqual() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
-    // Filter: Name, Operator: !=, Value: Ringo
+    // Filter: Name, Operator: !=, Value: Ringo.
     $filters['name']['group_info']['default_group'] = '2';
 
     $view->setDisplay('page_1');
@@ -198,7 +198,7 @@ function testFilterStringContains() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'name' => array(
         'id' => 'name',
@@ -224,7 +224,7 @@ function testFilterStringGroupedExposedContains() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
-    // Filter: Name, Operator: contains, Value: ing
+    // Filter: Name, Operator: contains, Value: ing.
     $filters['name']['group_info']['default_group'] = '3';
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -247,7 +247,7 @@ function testFilterStringWord() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'description' => array(
         'id' => 'description',
@@ -274,7 +274,7 @@ function testFilterStringWord() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'description' => array(
         'id' => 'description',
@@ -300,7 +300,7 @@ function testFilterStringGroupedExposedWord() {
       $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
-    // Filter: Name, Operator: contains, Value: ing
+    // Filter: Name, Operator: contains, Value: ing.
     $filters['name']['group_info']['default_group'] = '3';
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -321,7 +321,7 @@ function testFilterStringGroupedExposedWord() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
-    // Filter: Description, Operator: contains, Value: actor
+    // Filter: Description, Operator: contains, Value: actor.
     $filters['description']['group_info']['default_group'] = '1';
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -342,7 +342,7 @@ function testFilterStringStarts() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'description' => array(
         'id' => 'description',
@@ -367,7 +367,7 @@ function testFilterStringGroupedExposedStarts() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
-    // Filter: Name, Operator: starts, Value: George
+    // Filter: Name, Operator: starts, Value: George.
     $filters['description']['group_info']['default_group'] = 2;
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -388,7 +388,7 @@ function testFilterStringNotStarts() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'description' => array(
         'id' => 'description',
@@ -411,7 +411,7 @@ function testFilterStringNotStarts() {
       array(
         'name' => 'Paul',
       ),
-      // There is no Meredith returned because his description is empty
+      // There is no Meredith returned because his description is empty.
     );
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
@@ -420,7 +420,7 @@ function testFilterStringGroupedExposedNotStarts() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
-    // Filter: Name, Operator: not_starts, Value: George
+    // Filter: Name, Operator: not_starts, Value: George.
     $filters['description']['group_info']['default_group'] = 3;
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -439,7 +439,7 @@ function testFilterStringGroupedExposedNotStarts() {
       array(
         'name' => 'Paul',
       ),
-      // There is no Meredith returned because his description is empty
+      // There is no Meredith returned because his description is empty.
     );
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
@@ -448,7 +448,7 @@ function testFilterStringEnds() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'description' => array(
         'id' => 'description',
@@ -476,7 +476,7 @@ function testFilterStringGroupedExposedEnds() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
-    // Filter: Description, Operator: ends, Value: Beatles
+    // Filter: Description, Operator: ends, Value: Beatles.
     $filters['description']['group_info']['default_group'] = 4;
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -500,7 +500,7 @@ function testFilterStringNotEnds() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'description' => array(
         'id' => 'description',
@@ -520,7 +520,7 @@ function testFilterStringNotEnds() {
       array(
         'name' => 'Paul',
       ),
-      // There is no Meredith returned because his description is empty
+      // There is no Meredith returned because his description is empty.
     );
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
@@ -529,7 +529,7 @@ function testFilterStringGroupedExposedNotEnds() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
-    // Filter: Description, Operator: not_ends, Value: Beatles
+    // Filter: Description, Operator: not_ends, Value: Beatles.
     $filters['description']['group_info']['default_group'] = 5;
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -545,7 +545,7 @@ function testFilterStringGroupedExposedNotEnds() {
       array(
         'name' => 'Paul',
       ),
-      // There is no Meredith returned because his description is empty
+      // There is no Meredith returned because his description is empty.
     );
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
@@ -554,7 +554,7 @@ function testFilterStringNot() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'description' => array(
         'id' => 'description',
@@ -574,7 +574,7 @@ function testFilterStringNot() {
       array(
         'name' => 'Paul',
       ),
-      // There is no Meredith returned because his description is empty
+      // There is no Meredith returned because his description is empty.
     );
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
@@ -584,7 +584,7 @@ function testFilterStringGroupedExposedNot() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
-    // Filter: Description, Operator: not (does not contains), Value: Beatles
+    // Filter: Description, Operator: not (does not contains), Value: Beatles.
     $filters['description']['group_info']['default_group'] = 6;
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -600,7 +600,7 @@ function testFilterStringGroupedExposedNot() {
       array(
         'name' => 'Paul',
       ),
-      // There is no Meredith returned because his description is empty
+      // There is no Meredith returned because his description is empty.
     );
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
 
@@ -610,7 +610,7 @@ function testFilterStringShorter() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'name' => array(
         'id' => 'name',
@@ -638,7 +638,7 @@ function testFilterStringGroupedExposedShorter() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
-    // Filter: Name, Operator: shorterthan, Value: 5
+    // Filter: Name, Operator: shorterthan, Value: 5.
     $filters['name']['group_info']['default_group'] = 4;
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -661,7 +661,7 @@ function testFilterStringLonger() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'name' => array(
         'id' => 'name',
@@ -686,7 +686,7 @@ function testFilterStringGroupedExposedLonger() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
-    // Filter: Name, Operator: longerthan, Value: 4
+    // Filter: Name, Operator: longerthan, Value: 4.
     $filters['name']['group_info']['default_group'] = 5;
     $view->setDisplay('page_1');
     $view->displayHandlers->get('page_1')->overrideOption('filters', $filters);
@@ -707,7 +707,7 @@ function testFilterStringEmpty() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the filtering
+    // Change the filtering.
     $view->displayHandlers->get('default')->overrideOption('filters', array(
       'description' => array(
         'id' => 'description',
diff --git a/core/modules/views/tests/src/Kernel/Handler/SortDateTest.php b/core/modules/views/tests/src/Kernel/Handler/SortDateTest.php
index 8c454b7..1f2ac42 100644
--- a/core/modules/views/tests/src/Kernel/Handler/SortDateTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/SortDateTest.php
@@ -167,7 +167,7 @@ public function testDateOrdering() {
           ),
         ));
 
-        // Change the ordering
+        // Change the ordering.
         $view->displayHandlers->get('default')->overrideOption('sorts', array(
           'created' => array(
             'id' => 'created',
diff --git a/core/modules/views/tests/src/Kernel/Handler/SortTest.php b/core/modules/views/tests/src/Kernel/Handler/SortTest.php
index 38cbcd1..19e5f58 100644
--- a/core/modules/views/tests/src/Kernel/Handler/SortTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/SortTest.php
@@ -26,7 +26,7 @@ public function testNumericOrdering() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the ordering
+    // Change the ordering.
     $view->displayHandlers->get('default')->overrideOption('sorts', array(
       'age' => array(
         'order' => 'ASC',
@@ -50,7 +50,7 @@ public function testNumericOrdering() {
     $view->destroy();
     $view->setDisplay();
 
-    // Reverse the ordering
+    // Reverse the ordering.
     $view->displayHandlers->get('default')->overrideOption('sorts', array(
       'age' => array(
         'order' => 'DESC',
@@ -79,7 +79,7 @@ public function testStringOrdering() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
-    // Change the ordering
+    // Change the ordering.
     $view->displayHandlers->get('default')->overrideOption('sorts', array(
       'name' => array(
         'order' => 'ASC',
@@ -103,7 +103,7 @@ public function testStringOrdering() {
     $view->destroy();
     $view->setDisplay();
 
-    // Reverse the ordering
+    // Reverse the ordering.
     $view->displayHandlers->get('default')->overrideOption('sorts', array(
       'name' => array(
         'order' => 'DESC',
diff --git a/core/modules/views/tests/src/Kernel/QueryGroupByTest.php b/core/modules/views/tests/src/Kernel/QueryGroupByTest.php
index 594bd62..4c03b55 100644
--- a/core/modules/views/tests/src/Kernel/QueryGroupByTest.php
+++ b/core/modules/views/tests/src/Kernel/QueryGroupByTest.php
@@ -179,7 +179,6 @@ public function testGroupByNone() {
   public function testGroupByCountOnlyFilters() {
     // Check if GROUP BY and HAVING are included when a view
     // doesn't display SUM, COUNT, MAX, etc. functions in SELECT statement.
-
     for ($x = 0; $x < 10; $x++) {
       $this->storage->create(array('name' => 'name1'))->save();
     }
diff --git a/core/modules/views/tests/src/Kernel/ViewStorageTest.php b/core/modules/views/tests/src/Kernel/ViewStorageTest.php
index 5e999e0..15152d4 100644
--- a/core/modules/views/tests/src/Kernel/ViewStorageTest.php
+++ b/core/modules/views/tests/src/Kernel/ViewStorageTest.php
@@ -70,7 +70,7 @@ function testConfigurationEntityCRUD() {
     $this->createTests();
     $this->displayTests();
 
-    // Helper method tests
+    // Helper method tests.
     $this->displayMethodTests();
   }
 
diff --git a/core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php b/core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php
index f9d3add..0e8ebd9 100644
--- a/core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php
+++ b/core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php
@@ -122,7 +122,6 @@ public function testOnAlterRoutes() {
     // Ensure that even both the collectRoutes() and alterRoutes() methods
     // are called on the displays, we ensure that the route first defined by
     // views is dropped.
-
     $this->routeSubscriber->routes();
     $this->assertNull($this->routeSubscriber->onAlterRoutes($route_event));
 
diff --git a/core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php b/core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php
index 114638a..4e0a421 100644
--- a/core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php
@@ -63,7 +63,7 @@ class ViewsBlockTest extends UnitTestCase {
    * {@inheritdoc}
    */
   protected function setUp() {
-    parent::setUp(); // TODO: Change the autogenerated stub
+    parent::setUp(); // TODO: Change the autogenerated stub.
     $condition_plugin_manager = $this->getMock('Drupal\Core\Executable\ExecutableManagerInterface');
     $condition_plugin_manager->expects($this->any())
       ->method('getDefinitions')
diff --git a/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php b/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
index b70b55d..e20b343 100644
--- a/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
@@ -181,7 +181,7 @@ protected function setUpUrlIntegrationServices() {
       ->willReturnCallback(
         // Pretend to do a render.
         function (&$elements, $is_root_call = FALSE) {
-          // Mock the ability to theme links
+          // Mock the ability to theme links.
           $link = $this->linkGenerator->generate($elements['#title'], $elements['#url']);
           if (isset($elements['#prefix'])) {
             $link = $elements['#prefix'] . $link;
@@ -329,14 +329,13 @@ public function providerTestRenderAsLinkWithPathAndOptions() {
     // Note: In contrast to the testRenderAsLinkWithUrlAndOptions test we don't
     // test the language, because the path processor for the language won't be
     // executed for paths which aren't routed.
-
     // Entity flag.
     $entity = $this->getMock('Drupal\Core\Entity\EntityInterface');
     $data[] = ['test-path', ['entity' => $entity], '<a href="/test-path">value</a>'];
     // entity_type flag.
     $entity_type_id = 'node';
     $data[] = ['test-path', ['entity_type' => $entity_type_id], '<a href="/test-path">value</a>'];
-    // prefix
+    // Prefix.
     $data[] = ['test-path', ['prefix' => 'test_prefix'], '<a href="/test-path">value</a>', 'test_prefix<a href="/test-path">value</a>'];
     // suffix.
     $data[] = ['test-path', ['suffix' => 'test_suffix'], '<a href="/test-path">value</a>', '<a href="/test-path">value</a>test_suffix'];
diff --git a/core/modules/views/tests/src/Unit/ViewExecutableTest.php b/core/modules/views/tests/src/Unit/ViewExecutableTest.php
index d3e2222..a3d2227 100644
--- a/core/modules/views/tests/src/Unit/ViewExecutableTest.php
+++ b/core/modules/views/tests/src/Unit/ViewExecutableTest.php
@@ -302,7 +302,7 @@ public function testBuildThemeFunctions() {
     ];
     $this->assertEquals($expected, $view->buildThemeFunctions('test_hook'));
 
-    //Change the name of the display plugin and make sure that is in the array.
+    // Change the name of the display plugin and make sure that is in the array.
     $view->display_handler->display['display_plugin'] = 'default2';
 
     $expected = [
diff --git a/core/modules/views/views.api.php b/core/modules/views/views.api.php
index 29e5382..ea27f9b 100644
--- a/core/modules/views/views.api.php
+++ b/core/modules/views/views.api.php
@@ -142,7 +142,6 @@ function hook_views_data() {
   //   langcode VARCHAR(12)         COMMENT 'Language code field.',
   //   PRIMARY KEY(nid)
   // );
-
   // Define the return array.
   $data = array();
 
@@ -293,7 +292,6 @@ function hook_views_data() {
   // and you may also specify overrides for various settings that make up the
   // plugin definition. See examples below; the Boolean example demonstrates
   // setting overrides.
-
   // Node ID field, exposed as relationship only, since it is a foreign key
   // in this table.
   $data['example_table']['nid'] = array(
diff --git a/core/modules/views/views.module b/core/modules/views/views.module
index c6632a5..c20c7ba 100644
--- a/core/modules/views/views.module
+++ b/core/modules/views/views.module
@@ -89,7 +89,7 @@ function views_theme($existing, $type, $theme, $path) {
     'file' => 'views.theme.inc',
   );
 
-  // Our extra version of pager from pager.inc
+  // Our extra version of pager from pager.inc.
   $hooks['views_mini_pager'] = $base + array(
     'variables' => array('tags' => array(), 'quantity' => 9, 'element' => 0, 'parameters' => array()),
   );
@@ -122,7 +122,7 @@ function views_theme($existing, $type, $theme, $path) {
     ),
   );
 
-  // Default view themes
+  // Default view themes.
   $hooks['views_view_field'] = $base + array(
     'variables' => array('view' => NULL, 'field' => NULL, 'row' => NULL),
   );
@@ -376,7 +376,6 @@ function views_add_contextual_links(&$render_element, $location, $display_id, ar
     // If contextual_links_locations are not set, provide a sane default. (To
     // avoid displaying any contextual links at all, a display plugin can still
     // set 'contextual_links_locations' to, e.g., {""}.)
-
     if (!isset($plugin['contextual_links_locations'])) {
       $plugin['contextual_links_locations'] = array('view');
     }
diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc
index 94c519e..973ef7c 100644
--- a/core/modules/views/views.theme.inc
+++ b/core/modules/views/views.theme.inc
@@ -90,11 +90,11 @@ function template_preprocess_views_view_fields(&$variables) {
 
   // Loop through the fields for this view.
   $previous_inline = FALSE;
-  $variables['fields'] = array(); // ensure it's at least an empty array.
+  $variables['fields'] = array(); // Ensure it's at least an empty array.
   /** @var \Drupal\views\ResultRow $row */
   $row = $variables['row'];
   foreach ($view->field as $id => $field) {
-    // render this even if set to exclude so it can be used elsewhere.
+    // Render this even if set to exclude so it can be used elsewhere.
     $field_output = $view->style_plugin->getField($row->index, $id);
     $empty = $field->isValueEmpty($field_output, $field->options['empty_zero']);
     if (empty($field->options['exclude']) && (!$empty || (empty($field->options['hide_empty']) && empty($variables['options']['hide_empty'])))) {
@@ -123,7 +123,7 @@ function template_preprocess_views_view_fields(&$variables) {
         $object->raw = $row->{$view->field[$id]->field_alias};
       }
       else {
-        $object->raw = NULL; // make sure it exists to reduce NOTICE
+        $object->raw = NULL; // Make sure it exists to reduce NOTICE.
       }
 
       if (!empty($variables['options']['separator']) && $previous_inline && $object->inline && $object->content) {
@@ -153,7 +153,7 @@ function template_preprocess_views_view_fields(&$variables) {
         $object->wrapper_attributes = new Attribute($attributes);
       }
 
-      // Set up field label
+      // Set up field label.
       $object->label = $view->field[$id]->label();
 
       // Set up field label wrapper and its attributes.
@@ -297,7 +297,7 @@ function template_preprocess_views_view_summary(&$variables) {
         $url->setRouteParameters($parameters);
       }
       catch (Exception $e) {
-        // If the given route doesn't exist, default to <front>
+        // If the given route doesn't exist, default to <front>.
         $url = Url::fromRoute('<front>');
       }
     }
@@ -383,7 +383,7 @@ function template_preprocess_views_view_summary_unformatted(&$variables) {
         $url->setRouteParameters($parameters);
       }
       catch (Exception $e) {
-        // If the given route doesn't exist, default to <front>
+        // If the given route doesn't exist, default to <front>.
         $url = Url::fromRoute('<front>');
       }
     }
@@ -856,7 +856,7 @@ function template_preprocess_views_view_rss(&$variables) {
   $variables['title'] = $title;
 
   // Figure out which display which has a path we're using for this feed. If
-  // there isn't one, use the global $base_url
+  // there isn't one, use the global $base_url.
   $link_display_id = $view->display_handler->getLinkDisplay();
   if ($link_display_id && $display = $view->displayHandlers->get($link_display_id)) {
     $url = $view->getUrl(NULL, $link_display_id);
diff --git a/core/modules/views_ui/js/views-admin.js b/core/modules/views_ui/js/views-admin.js
index 3cc0f4c..fb06813 100644
--- a/core/modules/views_ui/js/views-admin.js
+++ b/core/modules/views_ui/js/views-admin.js
@@ -516,7 +516,7 @@
       // to lowercase.
       var search = this.$searchBox.val().toLowerCase();
       var words = search.split(' ');
-      // Get selected Group
+      // Get selected Group.
       var group = this.$controlGroup.val();
 
       // Search through the search texts in the form for matching text.
@@ -1131,7 +1131,7 @@
   Drupal.behaviors.viewsUiOverrideSelect = {
     attach: function (context) {
       $(context).find('[data-drupal-selector="edit-override-dropdown"]').once('views-ui-override-button-text').each(function () {
-        // Closures! :(
+        // Closures! :(.
         var $context = $(context);
         var $submit = $context.find('[id^=edit-submit]');
         var old_value = $submit.val();
diff --git a/core/modules/views_ui/src/Form/Ajax/AddHandler.php b/core/modules/views_ui/src/Form/Ajax/AddHandler.php
index 576ea43..205c505 100644
--- a/core/modules/views_ui/src/Form/Ajax/AddHandler.php
+++ b/core/modules/views_ui/src/Form/Ajax/AddHandler.php
@@ -163,7 +163,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
         '#markup' => '<div class="js-form-item form-item">' . $this->t('There are no @types available to add.', array('@types' =>  $ltitle)) . '</div>',
       );
     }
-    // Add a div to show the selected items
+    // Add a div to show the selected items.
     $form['selected'] = array(
       '#type' => 'item',
       '#markup' => '<span class="views-ui-view-title">' . $this->t('Selected:') . '</span> ' . '<div class="views-selected-options"></div>',
diff --git a/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php b/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php
index 3be2087..b717935 100644
--- a/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php
+++ b/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php
@@ -91,13 +91,13 @@ public function buildForm(array $form, FormStateInterface $form_state, Request $
         $relationship_options = array();
 
         foreach ($relationships as $relationship) {
-          // relationships can't link back to self. But also, due to ordering,
+          // Relationships can't link back to self. But also, due to ordering,
           // relationships can only link to prior relationships.
           if ($type == 'relationship' && $id == $relationship['id']) {
             break;
           }
           $relationship_handler = Views::handlerManager('relationship')->getHandler($relationship);
-          // ignore invalid/broken relationships.
+          // Ignore invalid/broken relationships.
           if (empty($relationship_handler)) {
             continue;
           }
@@ -243,7 +243,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
     // extra stuff on the form is not sent through.
     $handler->unpackOptions($handler->options, $options, NULL, FALSE);
 
-    // Store the item back on the view
+    // Store the item back on the view.
     $executable->setHandler($display_id, $type, $id, $handler->options);
 
     // Ensure any temporary options are removed.
@@ -251,7 +251,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
       unset($view->temporary_options[$type][$id]);
     }
 
-    // Write to cache
+    // Write to cache.
     $view->cacheSet();
   }
 
@@ -263,7 +263,7 @@ public function remove(&$form, FormStateInterface $form_state) {
     $display_id = $form_state->get('display_id');
     $type = $form_state->get('type');
     $id = $form_state->get('id');
-    // Store the item back on the view
+    // Store the item back on the view.
     list($was_defaulted, $is_defaulted) = $view->getOverrideValues($form, $form_state);
     $executable = $view->getExecutable();
     // If the display selection was changed toggle the override value.
@@ -273,7 +273,7 @@ public function remove(&$form, FormStateInterface $form_state) {
     }
     $executable->removeHandler($display_id, $type, $id);
 
-    // Write to cache
+    // Write to cache.
     $view->cacheSet();
   }
 
diff --git a/core/modules/views_ui/src/Form/Ajax/ConfigHandlerExtra.php b/core/modules/views_ui/src/Form/Ajax/ConfigHandlerExtra.php
index d38d832..2abc313 100644
--- a/core/modules/views_ui/src/Form/Ajax/ConfigHandlerExtra.php
+++ b/core/modules/views_ui/src/Form/Ajax/ConfigHandlerExtra.php
@@ -110,10 +110,10 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
       $item[$key] = $value;
     }
 
-    // Store the item back on the view
+    // Store the item back on the view.
     $view->getExecutable()->setHandler($form_state->get('display_id'), $form_state->get('type'), $form_state->get('id'), $item);
 
-    // Write to cache
+    // Write to cache.
     $view->cacheSet();
   }
 
diff --git a/core/modules/views_ui/src/Form/Ajax/ConfigHandlerGroup.php b/core/modules/views_ui/src/Form/Ajax/ConfigHandlerGroup.php
index e7c7a83..7218b40 100644
--- a/core/modules/views_ui/src/Form/Ajax/ConfigHandlerGroup.php
+++ b/core/modules/views_ui/src/Form/Ajax/ConfigHandlerGroup.php
@@ -103,10 +103,10 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
 
     $handler->submitGroupByForm($form, $form_state);
 
-    // Store the item back on the view
+    // Store the item back on the view.
     $executable->setHandler($form_state->get('display_id'), $form_state->get('type'), $form_state->get('id'), $item);
 
-    // Write to cache
+    // Write to cache.
     $view->cacheSet();
   }
 
diff --git a/core/modules/views_ui/src/Form/Ajax/Rearrange.php b/core/modules/views_ui/src/Form/Ajax/Rearrange.php
index 0487769..3aef6bc 100644
--- a/core/modules/views_ui/src/Form/Ajax/Rearrange.php
+++ b/core/modules/views_ui/src/Form/Ajax/Rearrange.php
@@ -68,7 +68,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
 
     $count = 0;
 
-    // Get relationship labels
+    // Get relationship labels.
     $relationships = array();
     foreach ($display->getHandlers('relationship') as $id => $handler) {
       $relationships[$id] = $handler->adminLabel();
@@ -154,16 +154,16 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
     $old_fields = $display->getOption($types[$type]['plural']);
     $new_fields = $order = array();
 
-    // Make an array with the weights
+    // Make an array with the weights.
     foreach ($form_state->getValue('fields') as $field => $info) {
-      // add each value that is a field with a weight to our list, but only if
+      // Add each value that is a field with a weight to our list, but only if
       // it has had its 'removed' checkbox checked.
       if (is_array($info) && isset($info['weight']) && empty($info['removed'])) {
         $order[$field] = $info['weight'];
       }
     }
 
-    // Sort the array
+    // Sort the array.
     asort($order);
 
     // Create a new list of fields in the new order.
@@ -172,7 +172,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
     }
     $display->setOption($types[$type]['plural'], $new_fields);
 
-    // Store in cache
+    // Store in cache.
     $view->cacheSet();
   }
 
diff --git a/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php b/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php
index e858a84..d934744 100644
--- a/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php
+++ b/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php
@@ -67,7 +67,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
     }
     $count = 0;
 
-    // Get relationship labels
+    // Get relationship labels.
     $relationships = array();
     foreach ($display->getHandlers('relationship') as $id => $handler) {
       $relationships[$id] = $handler->adminLabel();
@@ -119,7 +119,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
         ),
       );
 
-      $form['remove_groups'][$id] = array(); // to prevent a notice
+      $form['remove_groups'][$id] = array(); // To prevent a notice.
       if ($id != 1) {
         $form['remove_groups'][$id] = array(
           '#type' => 'submit',
@@ -238,9 +238,9 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
     // Whatever button was clicked, re-calculate field information.
     $new_fields = $order = array();
 
-    // Make an array with the weights
+    // Make an array with the weights.
     foreach ($form_state->getValue('filters') as $field => $info) {
-      // add each value that is a field with a weight to our list, but only if
+      // Add each value that is a field with a weight to our list, but only if
       // it has had its 'removed' checkbox checked.
       if (is_array($info) && empty($info['removed'])) {
         if (isset($info['weight'])) {
@@ -254,7 +254,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
       }
     }
 
-    // Sort the array
+    // Sort the array.
     asort($order);
 
     // Create a new list of fields in the new order.
@@ -267,7 +267,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
     $triggering_element = $form_state->getTriggeringElement();
     if (!empty($triggering_element['#group'])) {
       if ($triggering_element['#group'] == 'add') {
-        // Add a new group
+        // Add a new group.
         $groups['groups'][] = 'AND';
       }
       else {
diff --git a/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php b/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
index 58344bf..a4c7b38 100644
--- a/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
+++ b/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
@@ -93,7 +93,7 @@ public function getForm(ViewEntityInterface $view, $display_id, $js) {
     // being used.
     Html::resetSeenIds();
 
-    // check to see if this is the top form of the stack. If it is, pop
+    // Check to see if this is the top form of the stack. If it is, pop
     // it off; if it isn't, the user clicked somewhere else and the stack is
     // now irrelevant.
     if (!empty($view->stack)) {
@@ -144,7 +144,7 @@ public function getForm(ViewEntityInterface $view, $display_id, $js) {
       $response = $this->ajaxFormWrapper($form_class, $form_state);
     }
     elseif (!$form_state->get('ajax')) {
-      // if nothing on the stack, non-js forms just go back to the main view editor.
+      // If nothing on the stack, non-js forms just go back to the main view editor.
       $display_id = $form_state->get('display_id');
       return new RedirectResponse($this->url('entity.view.edit_display_form', ['view' => $view->id(), 'display_id' => $display_id], ['absolute' => TRUE]));
     }
diff --git a/core/modules/views_ui/src/Tests/AnalyzeTest.php b/core/modules/views_ui/src/Tests/AnalyzeTest.php
index 6cc9203..6dfe006 100644
--- a/core/modules/views_ui/src/Tests/AnalyzeTest.php
+++ b/core/modules/views_ui/src/Tests/AnalyzeTest.php
@@ -30,7 +30,7 @@ protected function setUp() {
 
     $this->enableViewsTestModule();
 
-    // Add an admin user will full rights;
+    // Add an admin user will full rights;.
     $this->admin = $this->drupalCreateUser(array('administer views'));
   }
 
diff --git a/core/modules/views_ui/src/Tests/DefaultViewsTest.php b/core/modules/views_ui/src/Tests/DefaultViewsTest.php
index 3b3f2a7..85a78b0 100644
--- a/core/modules/views_ui/src/Tests/DefaultViewsTest.php
+++ b/core/modules/views_ui/src/Tests/DefaultViewsTest.php
@@ -38,7 +38,6 @@ function testDefaultViews() {
     // @todo Disabled default views do now appear on the front page. Test this
     // behavior with templates instead.
     // $this->assertNoLinkByHref($edit_href);
-
     // Enable the view, and make sure it is now visible on the main listing
     // page.
     $this->drupalGet('admin/structure/views');
@@ -51,7 +50,6 @@ function testDefaultViews() {
     // $this->assertNoLink(t('Revert'));
     // $revert_href = 'admin/structure/views/view/glossary/revert';
     // $this->assertNoLinkByHref($revert_href);
-
     // Edit the view and change the title. Make sure that the new title is
     // displayed.
     $new_title = $this->randomMachineName(16);
@@ -81,7 +79,6 @@ function testDefaultViews() {
     // $this->drupalPostForm($revert_href, array(), t('Revert'));
     // $this->drupalGet('glossary');
     // $this->assertNoText($new_title);
-
     // Duplicate the view and check that the normal schema of duplicated views is used.
     $this->drupalGet('admin/structure/views');
     $this->clickViewsOperationLink(t('Duplicate'), '/glossary');
diff --git a/core/modules/views_ui/src/Tests/DisplayTest.php b/core/modules/views_ui/src/Tests/DisplayTest.php
index 63c45d3..1ca9b51 100644
--- a/core/modules/views_ui/src/Tests/DisplayTest.php
+++ b/core/modules/views_ui/src/Tests/DisplayTest.php
@@ -157,7 +157,7 @@ public function testLinkDisplay() {
     $path = 'admin/structure/views/view/test_display/edit/block_1';
     $link_display_path = 'admin/structure/views/nojs/display/test_display/block_1/link_display';
 
-    // Test the link text displays 'None' and not 'Block 1'
+    // Test the link text displays 'None' and not 'Block 1'.
     $this->drupalGet($path);
     $result = $this->xpath("//a[contains(@href, :path)]", array(':path' => $link_display_path));
     $this->assertEqual($result[0], t('None'), 'Make sure that the link option summary shows "None" by default.');
@@ -179,7 +179,7 @@ public function testLinkDisplay() {
 
     $this->assertLink(t('Custom URL'), 0, 'The link option has custom URL as summary.');
 
-    // Test the default link_url value for new display
+    // Test the default link_url value for new display.
     $this->drupalPostForm(NULL, array(), t('Add Block'));
     $this->assertUrl('admin/structure/views/view/test_display/edit/block_2');
     $this->clickLink(t('Custom URL'));
diff --git a/core/modules/views_ui/src/Tests/ExposedFormUITest.php b/core/modules/views_ui/src/Tests/ExposedFormUITest.php
index a74300d..e3d609c 100644
--- a/core/modules/views_ui/src/Tests/ExposedFormUITest.php
+++ b/core/modules/views_ui/src/Tests/ExposedFormUITest.php
@@ -51,7 +51,7 @@ function testExposedAdminUi() {
     $this->drupalPostForm('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type', $edit, t('Expose filter'));
     // Check the label of the expose button.
     $this->helperButtonHasLabel('edit-options-expose-button-button', t('Hide filter'));
-    // Check the label of the grouped exposed button
+    // Check the label of the grouped exposed button.
     $this->helperButtonHasLabel('edit-options-group-button-button', t('Grouped filters'));
 
     // After exposing the filter, Operator and Value should be still here.
@@ -91,7 +91,7 @@ function testExposedAdminUi() {
     // add more items to the list.
     $this->helperButtonHasLabel('edit-options-group-info-add-group', t('Add another item'));
 
-    // Create a grouped filter
+    // Create a grouped filter.
     $this->drupalGet('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type');
     $edit = array();
     $edit["options[group_info][group_items][1][title]"] = 'Is Article';
@@ -116,13 +116,13 @@ function testExposedAdminUi() {
     // Test the validation error message text is not shown.
     $this->assertNoText(t('The value is required if title for this item is defined.'));
 
-    // Validate that all the titles are defined for each group
+    // Validate that all the titles are defined for each group.
     $this->drupalGet('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type');
     $edit = array();
     $edit["options[group_info][group_items][1][title]"] = 'Is Article';
     $edit["options[group_info][group_items][1][value][article]"] = TRUE;
 
-    // This should trigger an error
+    // This should trigger an error.
     $edit["options[group_info][group_items][2][title]"] = '';
     $edit["options[group_info][group_items][2][value][page]"] = TRUE;
 
diff --git a/core/modules/views_ui/src/Tests/HandlerTest.php b/core/modules/views_ui/src/Tests/HandlerTest.php
index e4c628f..35fcbdb 100644
--- a/core/modules/views_ui/src/Tests/HandlerTest.php
+++ b/core/modules/views_ui/src/Tests/HandlerTest.php
@@ -127,7 +127,7 @@ public function testUICRUD() {
       $display = $view->getDisplay('default');
       $this->assertTrue(isset($display['display_options'][$type_info['plural']][$id]), 'Ensure the field was added to the view itself.');
 
-      // Remove the item and check that it's removed
+      // Remove the item and check that it's removed.
       $this->drupalPostForm($edit_handler_url, array(), t('Remove'));
       $this->assertNoLinkByHref($edit_handler_url, 0, 'The handler edit link does not appears in the UI after removing.');
 
@@ -164,7 +164,6 @@ public function testUICRUD() {
   public function testHandlerHelpEscaping() {
     // Setup a field with two instances using a different label.
     // Ensure that the label is escaped properly.
-
     $this->drupalCreateContentType(['type' => 'article']);
     $this->drupalCreateContentType(['type' => 'page']);
 
diff --git a/core/modules/views_ui/src/Tests/SettingsTest.php b/core/modules/views_ui/src/Tests/SettingsTest.php
index 30397f4..5198bb6 100644
--- a/core/modules/views_ui/src/Tests/SettingsTest.php
+++ b/core/modules/views_ui/src/Tests/SettingsTest.php
@@ -120,7 +120,6 @@ function testEditUI() {
     $this->assertTrue(strpos($xpath[0], "node_field_data.status = '1'") !== FALSE, 'The placeholders in the views sql is replace by the actual value.');
 
     // Test the advanced settings form.
-
     // Test the confirmation message.
     $this->drupalPostForm('admin/structure/views/settings/advanced', array(), t('Save configuration'));
     $this->assertText(t('The configuration options have been saved.'));
diff --git a/core/modules/views_ui/src/Tests/ViewEditTest.php b/core/modules/views_ui/src/Tests/ViewEditTest.php
index afa21df..5925473 100644
--- a/core/modules/views_ui/src/Tests/ViewEditTest.php
+++ b/core/modules/views_ui/src/Tests/ViewEditTest.php
@@ -68,7 +68,7 @@ public function testOtherOptions() {
     $machine_name_edit_url = 'admin/structure/views/nojs/display/test_view/test_1/display_id';
     $error_text = t('Display name must be letters, numbers, or underscores only.');
 
-    // Test that potential invalid display ID requests are detected
+    // Test that potential invalid display ID requests are detected.
     $this->drupalGet('admin/structure/views/ajax/handler/test_view/fake_display_name/filter/title');
     $this->assertText('Invalid display id fake_display_name');
 
diff --git a/core/modules/views_ui/src/ViewEditForm.php b/core/modules/views_ui/src/ViewEditForm.php
index 00ef836..54d879f 100644
--- a/core/modules/views_ui/src/ViewEditForm.php
+++ b/core/modules/views_ui/src/ViewEditForm.php
@@ -186,7 +186,7 @@ public function form(array $form, FormStateInterface $form_state) {
         }
       }
 
-      // Add the edit display content
+      // Add the edit display content.
       $tab_content = $this->getDisplayTab($view);
       $tab_content['#theme_wrappers'] = array('container');
       $tab_content['#attributes'] = array('class' => array('views-display-tab'));
@@ -197,7 +197,6 @@ public function form(array $form, FormStateInterface $form_state) {
         $tab_content['#attributes']['class'][] = 'views-display-deleted';
       }
       // Mark disabled displays as such.
-
       if ($view->getExecutable()->displayHandlers->has($display_id) && !$view->getExecutable()->displayHandlers->get($display_id)->isEnabled()) {
         $tab_content['#attributes']['class'][] = 'views-display-disabled';
       }
@@ -570,13 +569,13 @@ public function getDisplayDetails($view, $display) {
    */
   public function submitDisplayUndoDelete($form, FormStateInterface $form_state) {
     $view = $this->entity;
-    // Create the new display
+    // Create the new display.
     $id = $form_state->get('display_id');
     $displays = $view->get('display');
     $displays[$id]['deleted'] = FALSE;
     $view->set('display', $displays);
 
-    // Store in cache
+    // Store in cache.
     $view->cacheSet();
 
     // Redirect to the top-level edit page.
@@ -592,10 +591,10 @@ public function submitDisplayUndoDelete($form, FormStateInterface $form_state) {
   public function submitDisplayEnable($form, FormStateInterface $form_state) {
     $view = $this->entity;
     $id = $form_state->get('display_id');
-    // setOption doesn't work because this would might affect upper displays
+    // setOption doesn't work because this would might affect upper displays.
     $view->getExecutable()->displayHandlers->get($id)->setOption('enabled', TRUE);
 
-    // Store in cache
+    // Store in cache.
     $view->cacheSet();
 
     // Redirect to the top-level edit page.
@@ -613,7 +612,7 @@ public function submitDisplayDisable($form, FormStateInterface $form_state) {
     $id = $form_state->get('display_id');
     $view->getExecutable()->displayHandlers->get($id)->setOption('enabled', FALSE);
 
-    // Store in cache
+    // Store in cache.
     $view->cacheSet();
 
     // Redirect to the top-level edit page.
@@ -675,7 +674,7 @@ public function renderDisplayTop(ViewUI $view) {
     $element['#attributes']['class'] = array('views-display-top', 'clearfix');
     $element['#attributes']['id'] = array('views-display-top');
 
-    // Extra actions for the display
+    // Extra actions for the display.
     $element['extra_actions'] = array(
       '#type' => 'dropbutton',
       '#attributes' => array(
@@ -989,7 +988,7 @@ public function getFormBucket(ViewUI $view, $type, $display) {
       );
     }
 
-    // Render the array of links
+    // Render the array of links.
     $build['#actions'] = array(
       '#type' => 'dropbutton',
       '#links' => $actions,
diff --git a/core/modules/views_ui/src/ViewPreviewForm.php b/core/modules/views_ui/src/ViewPreviewForm.php
index 48e22c5..6c68eac 100644
--- a/core/modules/views_ui/src/ViewPreviewForm.php
+++ b/core/modules/views_ui/src/ViewPreviewForm.php
@@ -38,7 +38,7 @@ public function form(array $form, FormStateInterface $form_state) {
       '#default_value' => \Drupal::config('views.settings')->get('ui.always_live_preview'),
     );
 
-    // Add the arguments textfield
+    // Add the arguments textfield.
     $form['controls']['view_args'] = array(
       '#type' => 'textfield',
       '#title' => $this->t('Preview with contextual filters:'),
diff --git a/core/modules/views_ui/src/ViewUI.php b/core/modules/views_ui/src/ViewUI.php
index 6195c8c..d7ad513 100644
--- a/core/modules/views_ui/src/ViewUI.php
+++ b/core/modules/views_ui/src/ViewUI.php
@@ -214,7 +214,6 @@ public function isUninstalling() {
   public function standardSubmit($form, FormStateInterface $form_state) {
     // Determine whether the values the user entered are intended to apply to
     // the current display or the default display.
-
     list($was_defaulted, $is_defaulted, $revert) = $this->getOverrideValues($form, $form_state);
 
     // Based on the user's choice in the display dropdown, determine which display
@@ -457,7 +456,7 @@ public function submitItemAdd($form, FormStateInterface $form_state) {
         }
         $id = $this->getExecutable()->addHandler($display_id, $type, $table, $field);
 
-        // check to see if we have group by settings
+        // Check to see if we have group by settings.
         $key = $type;
         // Footer,header and empty text have a different internal handler type(area).
         if (isset($types[$type]['type'])) {
@@ -472,11 +471,11 @@ public function submitItemAdd($form, FormStateInterface $form_state) {
           $this->addFormToStack('handler-group', $display_id, $type, $id);
         }
 
-        // check to see if this type has settings, if so add the settings form first
+        // Check to see if this type has settings, if so add the settings form first.
         if ($handler && $handler->hasExtraOptions()) {
           $this->addFormToStack('handler-extra', $display_id, $type, $id);
         }
-        // Then add the form to the stack
+        // Then add the form to the stack.
         $this->addFormToStack('handler', $display_id, $type, $id);
       }
     }
@@ -485,7 +484,7 @@ public function submitItemAdd($form, FormStateInterface $form_state) {
       unset($this->form_cache);
     }
 
-    // Store in cache
+    // Store in cache.
     $this->cacheSet();
   }
 
@@ -566,7 +565,6 @@ public function renderPreview($display_id, $args = array()) {
       }
 
       // Make view links come back to preview.
-
       // Also override the current path so we get the pager, and make sure the
       // Request object gets all of the proper values from $_SERVER.
       $request = Request::createFromGlobals();
diff --git a/core/modules/views_ui/views_ui.module b/core/modules/views_ui/views_ui.module
index 60fdc51..49b58f9 100644
--- a/core/modules/views_ui/views_ui.module
+++ b/core/modules/views_ui/views_ui.module
@@ -62,7 +62,7 @@ function views_ui_entity_type_build(array &$entity_types) {
  */
 function views_ui_theme() {
   return array(
-    // edit a view
+    // Edit a view.
     'views_ui_display_tab_setting' => array(
       'variables' => array('description' => '', 'link' => '', 'settings_links' => array(), 'overridden' => FALSE, 'defaulted' => FALSE, 'description_separator' => TRUE, 'class' => array()),
       'file' => 'views_ui.theme.inc',
@@ -80,7 +80,7 @@ function views_ui_theme() {
       'file' => 'views_ui.theme.inc',
     ),
 
-    // list views
+    // List views.
     'views_ui_view_info' => array(
       'variables' => array('view' => NULL, 'displays' => NULL),
       'file' => 'views_ui.theme.inc',
@@ -92,7 +92,7 @@ function views_ui_theme() {
       'file' => 'views_ui.theme.inc',
     ),
 
-    // On behalf of a plugin
+    // On behalf of a plugin.
     'views_ui_style_plugin_table' => array(
       'render element' => 'form',
       'file' => 'views_ui.theme.inc',
diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist
index ab2081d..f8ba041 100644
--- a/core/phpcs.xml.dist
+++ b/core/phpcs.xml.dist
@@ -18,6 +18,7 @@
   <rule ref="Drupal.CSS.ColourDefinition"/>
   <rule ref="Drupal.Commenting.DocCommentStar"/>
   <rule ref="Drupal.Commenting.FileComment"/>
+  <rule ref="Drupal.Commenting.InlineComment"/>
   <rule ref="Drupal.ControlStructures.ElseIf"/>
   <rule ref="Drupal.Files.EndFileNewline"/>
   <rule ref="Drupal.Files.TxtFileLineLength"/>
diff --git a/core/profiles/standard/src/Tests/StandardTest.php b/core/profiles/standard/src/Tests/StandardTest.php
index 4a79ffd..1c3d5d5 100644
--- a/core/profiles/standard/src/Tests/StandardTest.php
+++ b/core/profiles/standard/src/Tests/StandardTest.php
@@ -189,11 +189,10 @@ function testStandard() {
     $this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Frontpage is cached by Dynamic Page Cache.');
 
     // @todo uncomment after https://www.drupal.org/node/2543334 has landed.
-    //url = Url::fromRoute('entity.node.canonical', ['node' => 1]);
-    //$this->drupalGet($url);
-    //$this->drupalGet($url);
-    //$this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Full node page is cached by Dynamic Page Cache.');
-
+    // url = Url::fromRoute('entity.node.canonical', ['node' => 1]);
+    // $this->drupalGet($url);
+    // $this->drupalGet($url);
+    // $this->assertEqual('HIT', $this->drupalGetHeader(DynamicPageCacheSubscriber::HEADER), 'Full node page is cached by Dynamic Page Cache.');
     $url = Url::fromRoute('entity.user.canonical', ['user' => 1]);
     $this->drupalGet($url);
     $this->drupalGet($url);
diff --git a/core/scripts/transliteration_data.php.txt b/core/scripts/transliteration_data.php.txt
index e87d2fa..c57b608 100644
--- a/core/scripts/transliteration_data.php.txt
+++ b/core/scripts/transliteration_data.php.txt
@@ -61,15 +61,12 @@
 // $data = read_nodejs_data();
 // $data = read_intl_data();
 // $data = read_junidecode_data();
-
 // After running a read_*_data() function, you can print out the data
 // (it will make a LOT of output):
 // print_r($data);
-
 // Command to read in all of data sources and output in CSV format, explaining
 // the differences:
 // read_all_to_csv();
-
 // Command to patch Drupal Core data, using the intl data set, and put the
 // resulting changed data files in the 'outdata' directory:
 patch_drupal('outdata');
@@ -102,8 +99,7 @@ function read_all_to_csv($print_all = FALSE, $print_missing = FALSE) {
 
   // Alternatively, if you just want to compare a couple of data sets, you can
   // uncomment and edit the following line:
-  // $types = array('drupal', 'intl');
-
+  // $types = array('drupal', 'intl');.
   // Read in all the data.
   foreach ($types as $type) {
     $data[$type] = call_user_func('read_' . $type . '_data');
@@ -573,14 +569,14 @@ function _junidecode_read_file($file) {
 
     // Some of the lines look like this:
     //      new String("" + (char) 0x00), // 0x00
-    // Transform to be '0x00,'
+    // Transform to be '0x00,'.
     $line = preg_replace('|^\s*new\s+String\s*\(\s*""\s*\+\s*\(char\)\s+0x([0-9]+).*$|', '0x$1,', $line);
 
     // Strings are in double quotes, yet many have \' in them.
     $line = str_replace("\'", "'", $line);
 
     // Everything else should probably be OK -- the lines are like:
-    //  "Ie", // 0x00
+    //  "Ie", // 0x00.
     $save .= $line;
   }
 
@@ -637,7 +633,7 @@ function write_data_file($data, $bank, $outdir) {
   $out = '';
   $out .= "<?php\n\n/**\n * @file\n * Generic transliteration data for the PhpTransliteration class.\n */\n\n\$base = array(\n";
 
-  // The 00 file skips the ASCII range
+  // The 00 file skips the ASCII range.
   $start = 0;
   if ($bank == 0) {
     $start = 0x80;
diff --git a/core/tests/Drupal/KernelTests/AssertLegacyTrait.php b/core/tests/Drupal/KernelTests/AssertLegacyTrait.php
index 1d1816a..2c4e29b 100644
--- a/core/tests/Drupal/KernelTests/AssertLegacyTrait.php
+++ b/core/tests/Drupal/KernelTests/AssertLegacyTrait.php
@@ -95,8 +95,7 @@ protected function assertNotIdentical($actual, $expected, $message = '') {
    */
   protected function assertIdenticalObject($actual, $expected, $message = '') {
     // Note: ::assertSame checks whether its the same object. ::assertEquals
-    // though compares
-
+    // though compares.
     $this->assertEquals($expected, $actual, $message);
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigDiffTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigDiffTest.php
index 7284802..bc06120 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigDiffTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigDiffTest.php
@@ -48,7 +48,7 @@ function testDiff() {
     $this->assertEqual($edits[0]->orig[0], $change_key . ': ' . $original_data[$change_key], format_string("The active value for key '%change_key' is '%original_data'.", array('%change_key' => $change_key, '%original_data' => $original_data[$change_key])));
     $this->assertEqual($edits[0]->closing[0], $change_key . ': ' . $change_data, format_string("The sync value for key '%change_key' is '%change_data'.", array('%change_key' => $change_key, '%change_data' => $change_data)));
 
-    // Reset data back to original, and remove a key
+    // Reset data back to original, and remove a key.
     $sync_data = $original_data;
     unset($sync_data[$remove_key]);
     $sync->write($config_name, $sync_data);
@@ -61,7 +61,7 @@ function testDiff() {
     $this->assertEqual($edits[1]->orig[0], $remove_key . ': ' . $original_data[$remove_key], format_string("The active value for key '%remove_key' is '%original_data'.", array('%remove_key' => $remove_key, '%original_data' => $original_data[$remove_key])));
     $this->assertFalse($edits[1]->closing, format_string("The key '%remove_key' does not exist in sync.", array('%remove_key' => $remove_key)));
 
-    // Reset data back to original and add a key
+    // Reset data back to original and add a key.
     $sync_data = $original_data;
     $sync_data[$add_key] = $add_data;
     $sync->write($config_name, $sync_data);
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
index 41bcab5..d901068 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
@@ -414,7 +414,7 @@ function testSchemaFallback() {
 
     $definition2 = \Drupal::service('config.typed')->getDefinition('config_schema_test.wildcard_fallback.something.something');
     // This should be the schema of config_schema_test.wildcard_fallback.* as
-    //well.
+    // well.
     $this->assertIdentical($definition, $definition2);
   }
 
diff --git a/core/tests/Drupal/KernelTests/Core/Database/InsertTest.php b/core/tests/Drupal/KernelTests/Core/Database/InsertTest.php
index 030c7e9..e0b5dce 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/InsertTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/InsertTest.php
@@ -163,7 +163,7 @@ function testInsertSelectFields() {
     // INSERT INTO test (age, name, job)
     // SELECT tp.age AS age, tp.name AS name, tp.job AS job
     // FROM test_people tp
-    // WHERE tp.name = 'Meredith'
+    // WHERE tp.name = 'Meredith'.
     db_insert('test')
       ->from($query)
       ->execute();
@@ -184,7 +184,7 @@ function testInsertSelectAll() {
     // INSERT INTO test_people_copy
     // SELECT *
     // FROM test_people tp
-    // WHERE tp.name = 'Meredith'
+    // WHERE tp.name = 'Meredith'.
     db_insert('test_people_copy')
       ->from($query)
       ->execute();
diff --git a/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php b/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
index af477d1..e305e40 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php
@@ -64,7 +64,7 @@ function testEnableTargetLogging() {
 
     db_query('SELECT name FROM {test} WHERE age > :age', array(':age' => 25))->fetchCol();
 
-    db_query('SELECT age FROM {test} WHERE name = :name', array(':name' => 'Ringo'), array('target' => 'replica'));//->fetchCol();
+    db_query('SELECT age FROM {test} WHERE name = :name', array(':name' => 'Ringo'), array('target' => 'replica'));// ->fetchCol();
 
     $queries1 = Database::getLog('testing1');
 
diff --git a/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php b/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php
index 8288198..14579b7 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php
@@ -311,7 +311,6 @@ function testIndexLength() {
     $table_specification_with_new_index['indexes']['test_separate'] = [['test_field_text', 200]];
 
     // Ensure that the exceptions of addIndex are thrown as expected.
-
     try {
       $schema_object->addIndex('test_table_index_length', 'test_separate', [['test_field_text', 200]], $table_specification);
       $this->fail('\Drupal\Core\Database\SchemaObjectExistsException exception missed.');
@@ -736,7 +735,6 @@ protected function assertFieldChange($old_spec, $new_spec, $test_data = NULL) {
   public function testFindTables() {
     // We will be testing with three tables, two of them using the default
     // prefix and the third one with an individually specified prefix.
-
     // Set up a new connection with different connection info.
     $connection_info = Database::getConnectionInfo();
 
diff --git a/core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php b/core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php
index 2835fcb..228057b 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php
@@ -29,7 +29,7 @@ function testSelectConditionSubQueryCloning() {
     $clone_result = $clone->countQuery()->execute()->fetchField();
     $query_result = $query->countQuery()->execute()->fetchField();
 
-    // Make sure the cloned query has not been modified
+    // Make sure the cloned query has not been modified.
     $this->assertEqual(3, $clone_result, 'The cloned query returns the expected number of rows');
     $this->assertEqual(2, $query_result, 'The query returns the expected number of rows');
   }
diff --git a/core/tests/Drupal/KernelTests/Core/Database/SelectSubqueryTest.php b/core/tests/Drupal/KernelTests/Core/Database/SelectSubqueryTest.php
index 46eb2d0..065d5ea 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/SelectSubqueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/SelectSubqueryTest.php
@@ -36,7 +36,7 @@ function testFromSubquerySelect() {
       // SELECT t.name
       // FROM (SELECT tt.pid AS pid, tt.task AS task FROM test_task tt WHERE priority=1) tt
       //   INNER JOIN test t ON t.id=tt.pid
-      // WHERE tt.task = 'code'
+      // WHERE tt.task = 'code'.
       $people = $select->execute()->fetchCol();
 
       $this->assertEqual(count($people), 1, 'Returned the correct number of rows.');
@@ -63,7 +63,7 @@ function testFromSubquerySelectWithLimit() {
     // The resulting query should be equivalent to:
     // SELECT t.name
     // FROM (SELECT tt.pid AS pid, tt.task AS task FROM test_task tt ORDER BY priority DESC LIMIT 1 OFFSET 0) tt
-    //   INNER JOIN test t ON t.id=tt.pid
+    //   INNER JOIN test t ON t.id=tt.pid.
     $people = $select->execute()->fetchCol();
 
     $this->assertEqual(count($people), 1, 'Returned the correct number of rows.');
@@ -110,7 +110,7 @@ function testJoinSubquerySelect() {
     // The resulting query should be equivalent to:
     // SELECT t.name
     // FROM test t
-    //   INNER JOIN (SELECT tt.pid AS pid FROM test_task tt WHERE priority=1) tt ON t.id=tt.pid
+    //   INNER JOIN (SELECT tt.pid AS pid FROM test_task tt WHERE priority=1) tt ON t.id=tt.pid.
     $people = $select->execute()->fetchCol();
 
     $this->assertEqual(count($people), 2, 'Returned the correct number of rows.');
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php b/core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php
index 53797cf..087b8e7 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php
@@ -487,28 +487,28 @@ public function testTableSort() {
     );
 
     // Sort key: id
-    // Sorting with 'DESC' upper case
+    // Sorting with 'DESC' upper case.
     $this->queryResults = $this->factory->get('config_query_test')
       ->tableSort($header)
       ->sort('id', 'DESC')
       ->execute();
     $this->assertIdentical(array_values($this->queryResults), array('5', '4', '3', '2', '1'));
 
-    // Sorting with 'ASC' upper case
+    // Sorting with 'ASC' upper case.
     $this->queryResults = $this->factory->get('config_query_test')
       ->tableSort($header)
       ->sort('id', 'ASC')
       ->execute();
     $this->assertIdentical(array_values($this->queryResults), array('1', '2', '3', '4', '5'));
 
-    // Sorting with 'desc' lower case
+    // Sorting with 'desc' lower case.
     $this->queryResults = $this->factory->get('config_query_test')
       ->tableSort($header)
       ->sort('id', 'desc')
       ->execute();
     $this->assertIdentical(array_values($this->queryResults), array('5', '4', '3', '2', '1'));
 
-    // Sorting with 'asc' lower case
+    // Sorting with 'asc' lower case.
     $this->queryResults = $this->factory->get('config_query_test')
       ->tableSort($header)
       ->sort('id', 'asc')
@@ -516,28 +516,28 @@ public function testTableSort() {
     $this->assertIdentical(array_values($this->queryResults), array('1', '2', '3', '4', '5'));
 
     // Sort key: number
-    // Sorting with 'DeSc' mixed upper and lower case
+    // Sorting with 'DeSc' mixed upper and lower case.
     $this->queryResults = $this->factory->get('config_query_test')
       ->tableSort($header)
       ->sort('number', 'DeSc')
       ->execute();
     $this->assertIdentical(array_values($this->queryResults), array('3', '5', '2', '1', '4'));
 
-    // Sorting with 'AsC' mixed upper and lower case
+    // Sorting with 'AsC' mixed upper and lower case.
     $this->queryResults = $this->factory->get('config_query_test')
       ->tableSort($header)
       ->sort('number', 'AsC')
       ->execute();
     $this->assertIdentical(array_values($this->queryResults), array('4', '1', '2', '5', '3'));
 
-    // Sorting with 'dEsC' mixed upper and lower case
+    // Sorting with 'dEsC' mixed upper and lower case.
     $this->queryResults = $this->factory->get('config_query_test')
       ->tableSort($header)
       ->sort('number', 'dEsC')
       ->execute();
     $this->assertIdentical(array_values($this->queryResults), array('3', '5', '2', '1', '4'));
 
-    // Sorting with 'aSc' mixed upper and lower case
+    // Sorting with 'aSc' mixed upper and lower case.
     $this->queryResults = $this->factory->get('config_query_test')
       ->tableSort($header)
       ->sort('number', 'aSc')
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php b/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
index a028675..9fd0923 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
@@ -239,7 +239,7 @@ public function testValidEntityAutocompleteElement() {
   public function testInvalidEntityAutocompleteElement() {
     $form_builder = $this->container->get('form_builder');
 
-    // Test 'single' with a entity label that doesn't exist
+    // Test 'single' with a entity label that doesn't exist.
     $form_state = (new FormState())
       ->setValues([
         'single' => 'single - non-existent label',
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
index a100c7d..b825b7e 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
@@ -104,7 +104,7 @@ public function testEntityTypeUpdateWithoutData() {
         t('The %entity_type entity type needs to be updated.', ['%entity_type' => $this->entityManager->getDefinition('entity_test_update')->getLabel()]),
       ),
     );
-    $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected); //, 'EntityDefinitionUpdateManager reports the expected change summary.');
+    $this->assertEqual($this->entityDefinitionUpdateManager->getChangeSummary(), $expected); // , 'EntityDefinitionUpdateManager reports the expected change summary.');.
 
     // Run the update and ensure the revision table is created.
     $this->entityDefinitionUpdateManager->applyUpdates();
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php
index ec3f87a..6eee687 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php
@@ -206,7 +206,7 @@ protected function doTestReadWrite($entity_type) {
     // Test emptying a field by assigning an empty value. NULL and array()
     // behave the same.
     foreach ([NULL, array(), 'unset'] as $empty) {
-      // Make sure a value is present
+      // Make sure a value is present.
       $entity->name->value = 'a value';
       $this->assertTrue(isset($entity->name->value), format_string('%entity_type: Name is set.', array('%entity_type' => $entity_type)));
       // Now, empty the field.
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php
index 4338aef..71f597e 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryAggregateTest.php
@@ -275,7 +275,6 @@ public function testAggregation() {
     ));
 
     // Test aggregation/groupby support for fieldapi fields.
-
     // Just group by a fieldapi field.
     $this->queryResult = $this->factory->getAggregate('entity_test')
       ->groupBy('field_test_1')
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
index 0d4e5c4..91441d7 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
@@ -338,36 +338,29 @@ function testSort() {
     // language codes, already in order, with the first occurrence of the
     // entity id marked with *:
     // 8  NULL pl *
-    // 12 NULL pl *
-
+    // 12 NULL pl *.
     // 4  NULL tr *
-    // 12 NULL tr
-
+    // 12 NULL tr.
     // 2  blue NULL *
-    // 3  blue NULL *
-
+    // 3  blue NULL *.
     // 10 blue pl *
     // 11 blue pl *
     // 14 blue pl *
-    // 15 blue pl *
-
+    // 15 blue pl *.
     // 6  blue tr *
     // 7  blue tr *
     // 14 blue tr
-    // 15 blue tr
-
+    // 15 blue tr.
     // 1  red  NULL
-    // 3  red  NULL
-
+    // 3  red  NULL.
     // 9  red  pl *
     // 11 red  pl
     // 13 red  pl *
-    // 15 red  pl
-
+    // 15 red  pl.
     // 5  red  tr *
     // 7  red  tr
     // 13 red  tr
-    // 15 red  tr
+    // 15 red  tr.
     $count_query = clone $query;
     $this->assertEqual(15, $count_query->count()->execute());
     $this->queryResults = $query->execute();
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php
index 923a13f..689b86b 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php
@@ -742,7 +742,7 @@ protected function doTestLanguageChange($entity_type) {
     $controller = $this->entityManager->getStorage($entity_type);
     $langcode = $this->langcodes[0];
 
-    // check that field languages match entity language regardless of field
+    // Check that field languages match entity language regardless of field
     // translatability.
     $values = array(
       $langcode_key => $langcode,
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityValidationTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityValidationTest.php
index dc7d94f..e173b1f 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityValidationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityValidationTest.php
@@ -82,10 +82,8 @@ protected function createTestEntity($entity_type) {
    */
   public function testValidation() {
     // Ensure that the constraint manager is marked as cached cleared.
-
     // Use the protected property on the cache_clearer first to check whether
     // the constraint manager is added there.
-
     // Ensure that the proxy class is initialized, which has the necessary
     // method calls attached.
     \Drupal::service('plugin.cache_clearer');
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php b/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
index 07c5ec5..fb2943b 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
@@ -482,7 +482,6 @@ public function testTableNames() {
     // Note: we need to test entity types with long names. We therefore use
     // fields on imaginary entity types (works as long as we don't actually save
     // them), and just check the generated table names.
-
     // Short entity type and field name.
     $entity_type = 'short_entity_type';
     $field_name = 'short_field_name';
@@ -496,7 +495,7 @@ public function testTableNames() {
     $expected = 'short_entity_type_revision__short_field_name';
     $this->assertEqual($this->tableMapping->getDedicatedRevisionTableName($field_storage), $expected);
 
-    // Short entity type, long field name
+    // Short entity type, long field name.
     $entity_type = 'short_entity_type';
     $field_name = 'long_field_name_abcdefghijklmnopqrstuvwxyz';
     $field_storage = FieldStorageConfig::create(array(
@@ -509,7 +508,7 @@ public function testTableNames() {
     $expected = 'short_entity_type_r__' . substr(hash('sha256', $field_storage->uuid()), 0, 10);
     $this->assertEqual($this->tableMapping->getDedicatedRevisionTableName($field_storage), $expected);
 
-    // Long entity type, short field name
+    // Long entity type, short field name.
     $entity_type = 'long_entity_type_abcdefghijklmnopqrstuvwxyz';
     $field_name = 'short_field_name';
     $field_storage = FieldStorageConfig::create(array(
diff --git a/core/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php
index 444234a..200e606 100644
--- a/core/tests/Drupal/KernelTests/KernelTestBase.php
+++ b/core/tests/Drupal/KernelTests/KernelTestBase.php
@@ -537,7 +537,7 @@ protected function initFileCache() {
         'cache_backend_configuration' => [],
       ];
       // @todo Use extension_loaded('apcu') for non-testbot
-      //  https://www.drupal.org/node/2447753.
+      //   https://www.drupal.org/node/2447753.
       if (function_exists('apcu_fetch')) {
         $configuration['default']['cache_backend_class'] = ApcuFileCacheBackend::class;
       }
diff --git a/core/tests/Drupal/Tests/Component/Graph/GraphTest.php b/core/tests/Drupal/Tests/Component/Graph/GraphTest.php
index e17c7ff..3486d80 100644
--- a/core/tests/Drupal/Tests/Component/Graph/GraphTest.php
+++ b/core/tests/Drupal/Tests/Component/Graph/GraphTest.php
@@ -20,7 +20,7 @@ public function testDepthFirstSearch() {
     //       |     ^     ^
     //       |     |     |
     //       |     |     |
-    //       +---> 4 <-- 7      8 ---> 9
+    //       +---> 4 <-- 7      8 ---> 9.
     $graph = $this->normalizeGraph(array(
       1 => array(2),
       2 => array(3, 4),
diff --git a/core/tests/Drupal/Tests/Component/Serialization/JsonTest.php b/core/tests/Drupal/Tests/Component/Serialization/JsonTest.php
index 9898a5f..d43c732 100644
--- a/core/tests/Drupal/Tests/Component/Serialization/JsonTest.php
+++ b/core/tests/Drupal/Tests/Component/Serialization/JsonTest.php
@@ -49,7 +49,7 @@ protected function setUp() {
     // Characters that must be escaped.
     // We check for unescaped " separately.
     $this->htmlUnsafe = array('<', '>', '\'', '&');
-    // The following are the encoded forms of: < > ' & "
+    // The following are the encoded forms of: < > ' & ".
     $this->htmlUnsafeEscaped = array('\u003C', '\u003E', '\u0027', '\u0026', '\u0022');
   }
 
@@ -105,7 +105,7 @@ public function testStructuredReversibility() {
     foreach ($this->htmlUnsafe as $char) {
       $this->assertTrue(strpos($json, $char) === FALSE, sprintf('A JSON encoded string does not contain %s.', $char));
     }
-    // Verify that JSON encoding escapes the HTML unsafe characters
+    // Verify that JSON encoding escapes the HTML unsafe characters.
     foreach ($this->htmlUnsafeEscaped as $char) {
       $this->assertTrue(strpos($json, $char) > 0, sprintf('A JSON encoded string contains %s.', $char));
     }
diff --git a/core/tests/Drupal/Tests/Component/Utility/VariableTest.php b/core/tests/Drupal/Tests/Component/Utility/VariableTest.php
index 0aef6d0..19aa214 100644
--- a/core/tests/Drupal/Tests/Component/Utility/VariableTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/VariableTest.php
@@ -64,17 +64,17 @@ public function providerTestExport() {
         "\n\r\t",
       ),
       array(
-        // 2 backslashes. \\
+        // 2 backslashes. \\.
         "'\\'",
         '\\',
       ),
       array(
-        // Double-quote "
+        // Double-quote ".
         "'\"'",
         "\"",
       ),
       array(
-        // Single-quote '
+        // Single-quote '.
         '"\'"',
         "'",
       ),
diff --git a/core/tests/Drupal/Tests/Component/Utility/XssTest.php b/core/tests/Drupal/Tests/Component/Utility/XssTest.php
index c41bf22..aabb3de 100644
--- a/core/tests/Drupal/Tests/Component/Utility/XssTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/XssTest.php
@@ -557,7 +557,7 @@ public function testFilterXssAdminNotNormalized($value, $expected, $message) {
    */
   public function providerTestFilterXssAdminNotNormalized() {
     return array(
-      // DRUPAL-SA-2008-044
+      // DRUPAL-SA-2008-044.
       array('<object />', 'object', 'Admin HTML filter -- should not allow object tag.'),
       array('<script />', 'script', 'Admin HTML filter -- should not allow script tag.'),
     );
diff --git a/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php b/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
index 287c344..0116bbd 100644
--- a/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
+++ b/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@@ -184,7 +184,7 @@ public function testAndIf() {
     $this->assertFalse($access->isNeutral());
     $this->assertDefaultCacheability($access);
 
-    // NEUTRAL && ALLOW == NEUTRAL
+    // NEUTRAL && ALLOW == NEUTRAL.
     $access = $neutral->andIf($allowed);
     $this->assertFalse($access->isAllowed());
     $this->assertFalse($access->isForbidden());
@@ -205,21 +205,21 @@ public function testAndIf() {
     $this->assertFalse($access->isNeutral());
     $this->assertDefaultCacheability($access);
 
-    // FORBIDDEN && ALLOWED = FORBIDDEN
+    // FORBIDDEN && ALLOWED = FORBIDDEN.
     $access = $forbidden->andif($allowed);
     $this->assertFalse($access->isAllowed());
     $this->assertTrue($access->isForbidden());
     $this->assertFalse($access->isNeutral());
     $this->assertDefaultCacheability($access);
 
-    // FORBIDDEN && NEUTRAL = FORBIDDEN
+    // FORBIDDEN && NEUTRAL = FORBIDDEN.
     $access = $forbidden->andif($neutral);
     $this->assertFalse($access->isAllowed());
     $this->assertTrue($access->isForbidden());
     $this->assertFalse($access->isNeutral());
     $this->assertDefaultCacheability($access);
 
-    // FORBIDDEN && FORBIDDEN = FORBIDDEN
+    // FORBIDDEN && FORBIDDEN = FORBIDDEN.
     $access = $forbidden->andif($forbidden);
     $this->assertFalse($access->isAllowed());
     $this->assertTrue($access->isForbidden());
diff --git a/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php b/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php
index ed0c9ce..465ba9a 100644
--- a/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php
@@ -288,7 +288,7 @@ public function testDefaultCssWeights() {
     // - CSS_LAYOUT: -100
     // - CSS_COMPONENT: 0
     // - CSS_STATE: 100
-    // - CSS_THEME: 200
+    // - CSS_THEME: 200.
     $this->assertEquals(200, $css[0]['weight']);
     $this->assertEquals(200 + 29, $css[1]['weight']);
     $this->assertEquals(-200, $css[2]['weight']);
diff --git a/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_mapping_url.min.js b/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_mapping_url.min.js
index 4e133bd..56ad4a2 100644
--- a/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_mapping_url.min.js
+++ b/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_mapping_url.min.js
@@ -1,2 +1,2 @@
 (function($) { "use strict"; })
-//# sourceMappingURL=source_mapping_url.min.map
+// # sourceMappingURL=source_mapping_url.min.map.
diff --git a/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_mapping_url_old.min.js b/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_mapping_url_old.min.js
index b937b86..da37f36 100644
--- a/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_mapping_url_old.min.js
+++ b/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_mapping_url_old.min.js
@@ -1,2 +1,2 @@
 (function($) { "use strict"; })
-//@ sourceMappingURL=source_mapping_url.min.map
+// @ sourceMappingURL=source_mapping_url.min.map
diff --git a/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_url.min.js b/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_url.min.js
index efb2032..564f2e6 100644
--- a/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_url.min.js
+++ b/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_url.min.js
@@ -1,2 +1,2 @@
 (function($) { "use strict"; })
-//# sourceURL=source_mapping_url.js
+// # sourceURL=source_mapping_url.js.
diff --git a/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_url_old.min.js b/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_url_old.min.js
index dd26bd5..a52ae60 100644
--- a/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_url_old.min.js
+++ b/core/tests/Drupal/Tests/Core/Asset/js_test_files/source_url_old.min.js
@@ -1,2 +1,2 @@
 (function($) { "use strict"; })
-//@ sourceURL=source_mapping_url.js
+// @ sourceURL=source_mapping_url.js
diff --git a/core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTest.php b/core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTest.php
index ccada29..20f4404 100644
--- a/core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTest.php
@@ -57,7 +57,6 @@ protected function setUp() {
     // Note that in all cases, when the same key is set on more than one
     // backend, the values are voluntarily different, this ensures in which
     // backend we actually fetched the key when doing get calls.
-
     // Set a key present on all backends (for delete).
     $this->firstBackend->set('t123', 1231);
     $this->secondBackend->set('t123', 1232);
diff --git a/core/tests/Drupal/Tests/Core/Config/ConfigTest.php b/core/tests/Drupal/Tests/Core/Config/ConfigTest.php
index 223d890..73d20ea 100644
--- a/core/tests/Drupal/Tests/Core/Config/ConfigTest.php
+++ b/core/tests/Drupal/Tests/Core/Config/ConfigTest.php
@@ -416,7 +416,7 @@ public function validateNameProvider() {
         'Config object name ' . str_repeat('a', Config::MAX_NAME_LENGTH) . '. exceeds maximum allowed length of ' . Config::MAX_NAME_LENGTH . ' characters.',
       ),
     );
-    // Name must not contain : ? * < > " ' / \
+    // Name must not contain : ? * < > " ' / \.
     foreach (array(':', '?', '*', '<', '>', '"', "'", '/', '\\') as $char) {
       $name = 'name.' . $char;
       $return[] = array(
diff --git a/core/tests/Drupal/Tests/Core/Database/ConditionTest.php b/core/tests/Drupal/Tests/Core/Database/ConditionTest.php
index 6a05726..366a55b 100644
--- a/core/tests/Drupal/Tests/Core/Database/ConditionTest.php
+++ b/core/tests/Drupal/Tests/Core/Database/ConditionTest.php
@@ -103,22 +103,21 @@ public function dataProviderTestCompileWithKnownOperators() {
     $data[] = [' (name > :db_condition_placeholder_0) ', 'name', 'value', '>'];
     $data[] = [' (name <= :db_condition_placeholder_0) ', 'name', 'value', '<='];
     $data[] = [' (name < :db_condition_placeholder_0) ', 'name', 'value', '<'];
-    // $data[] = [' ( GREATEST (1, 2, 3) ) ', '', [1, 2, 3], 'GREATEST'];
+    // $data[] = [' ( GREATEST (1, 2, 3) ) ', '', [1, 2, 3], 'GREATEST'];.
     $data[] = [' (name IN  (:db_condition_placeholder_0, :db_condition_placeholder_1, :db_condition_placeholder_2)) ', 'name', ['1', '2', '3'], 'IN'];
     $data[] = [' (name NOT IN  (:db_condition_placeholder_0, :db_condition_placeholder_1, :db_condition_placeholder_2)) ', 'name', ['1', '2', '3'], 'NOT IN'];
-    // $data[] = [' ( INTERVAL (1, 2, 3) ) ', '', [1, 2, 3], 'INTERVAL'];
+    // $data[] = [' ( INTERVAL (1, 2, 3) ) ', '', [1, 2, 3], 'INTERVAL'];.
     $data[] = [' (name IS NULL ) ', 'name', NULL, 'IS NULL'];
     $data[] = [' (name IS NOT NULL ) ', 'name', NULL, 'IS NOT NULL'];
     $data[] = [' (name IS :db_condition_placeholder_0) ', 'name', 'TRUE', 'IS'];
-    // $data[] = [' ( LEAST (1, 2, 3) ) ', '', [1, 2, 3], 'LEAST'];
+    // $data[] = [' ( LEAST (1, 2, 3) ) ', '', [1, 2, 3], 'LEAST'];.
     $data[] = [" (name LIKE :db_condition_placeholder_0 ESCAPE '\\\\') ", 'name', '%muh%', 'LIKE', [':db_condition_placeholder_0' => '%muh%']];
     $data[] = [" (name NOT LIKE :db_condition_placeholder_0 ESCAPE '\\\\') ", 'name', '%muh%', 'NOT LIKE', [':db_condition_placeholder_0' => '%muh%']];
     $data[] = [" (name BETWEEN :db_condition_placeholder_0 AND :db_condition_placeholder_1) ", 'name', [1, 2], 'BETWEEN', [':db_condition_placeholder_0' => 1, ':db_condition_placeholder_1' => 2]];
     // $data[] = [" (name NOT BETWEEN :db_condition_placeholder_0 AND :db_condition_placeholder_1) ", 'name', [1, 2], 'NOT BETWEEN', [':db_condition_placeholder_0' => 1, ':db_condition_placeholder_1' => 2]];
     // $data[] = [' ( STRCMP (name, :db_condition_placeholder_0) ) ', '', ['test-string'], 'STRCMP', [':db_condition_placeholder_0' => 'test-string']];
     // $data[] = [' (EXISTS ) ', '', NULL, 'EXISTS'];
-    // $data[] = [' (name NOT EXISTS ) ', 'name', NULL, 'NOT EXISTS'];
-
+    // $data[] = [' (name NOT EXISTS ) ', 'name', NULL, 'NOT EXISTS'];.
     return $data;
   }
 
diff --git a/core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php b/core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php
index 4c39b4c..4953638 100644
--- a/core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php
@@ -597,7 +597,7 @@ public function testGetFields($expected, $include_computed, $is_computed, $field
    * @covers ::set
    */
   public function testSet() {
-    // Exercise set(), check if it returns $this
+    // Exercise set(), check if it returns $this.
     $this->assertSame(
       $this->entity,
       $this->entity->set('id', 0)
diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php
index 6242322..34d2d34 100644
--- a/core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php
@@ -100,7 +100,7 @@ protected function setUp() {
 
     $container = $this->prophesize(ContainerInterface::class);
     $container->get('cache_tags.invalidator')->willReturn($this->cacheTagsInvalidator->reveal());
-    //$container->get('typed_data_manager')->willReturn($this->typedDataManager->reveal());
+    // $container->get('typed_data_manager')->willReturn($this->typedDataManager->reveal());
     \Drupal::setContainer($container->reveal());
 
     $this->entityTypeBundleInfo = new EntityTypeBundleInfo($this->entityTypeManager->reveal(), $this->languageManager->reveal(), $this->moduleHandler->reveal(), $this->typedDataManager->reveal(), $this->cacheBackend->reveal());
diff --git a/core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php b/core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php
index 3c337bb..8687a68 100644
--- a/core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php
@@ -684,7 +684,7 @@ public function testDeleteNothing() {
    */
   public function getMockEntity($class = 'Drupal\Core\Entity\Entity', array $arguments = array(), $methods = array()) {
     // Ensure the entity is passed at least an array of values and an entity
-    // type ID
+    // type ID.
     if (!isset($arguments[0])) {
       $arguments[0] = array();
     }
diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php
index 1ed9d35..25c8f5a 100644
--- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php
@@ -1119,7 +1119,7 @@ public function providerTestRequiresEntityDataMigration() {
       // Case 6: same storage class, ::hasData() === TRUE, no structure changes.
       [$updated_entity_type_definition, $original_entity_type_definition, TRUE, FALSE, FALSE],
       // Case 7: different storage class, original storage class exists,
-      //::hasData() === TRUE, no structure changes.
+      // ::hasData() === TRUE, no structure changes.
       [$updated_entity_type_definition, $original_entity_type_definition_other_existing, TRUE, FALSE, FALSE],
     ];
   }
diff --git a/core/tests/Drupal/Tests/Core/EventSubscriber/ActiveLinkResponseFilterTest.php b/core/tests/Drupal/Tests/Core/EventSubscriber/ActiveLinkResponseFilterTest.php
index 0597e8c..a7f4f7a 100644
--- a/core/tests/Drupal/Tests/Core/EventSubscriber/ActiveLinkResponseFilterTest.php
+++ b/core/tests/Drupal/Tests/Core/EventSubscriber/ActiveLinkResponseFilterTest.php
@@ -23,7 +23,7 @@ public function providerTestSetLinkActiveClass() {
     // "is-active" class is set, but that should remain unchanged:
     // - surrounding HTML
     // - tags for which to test the setting of the "is-active" class
-    // - content of said tags
+    // - content of said tags.
     $edge_case_html5 = '<audio src="foo.ogg">
   <track kind="captions" src="foo.en.vtt" srclang="en" label="English">
   <track kind="captions" src="foo.sv.vtt" srclang="sv" label="Svenska">
diff --git a/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php b/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
index 6fab8d7..7243533 100644
--- a/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
+++ b/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
@@ -444,7 +444,7 @@ public function testGetHookInfo() {
    */
   public function testResetImplementations() {
 
-    // Prime caches
+    // Prime caches.
     $this->moduleHandler->getImplementations('hook');
     $this->moduleHandler->getHookInfo();
 
@@ -456,7 +456,7 @@ public function testResetImplementations() {
     $this->cacheBackend
       ->expects($this->exactly(2))
       ->method('set')
-      // reset sets module_implements to array() and getHookInfo later
+      // Reset sets module_implements to array() and getHookInfo later
       // populates hook_info.
       ->with($this->logicalOr('module_implements', 'hook_info'));
     $this->moduleHandler->resetImplementations();
@@ -489,7 +489,7 @@ public function dependencyProvider() {
       array('views', array('name' => 'views')),
       array('views_ui(8.x-1.0)', array('name' => 'views_ui', 'original_version' => ' (8.x-1.0)', 'versions' => array(array('op' => '=', 'version' => '1.0')))),
       // Not supported?.
-      // array('views_ui(8.x-1.1-beta)', array('name' => 'views_ui', 'original_version' => ' (8.x-1.1-beta)', 'versions' => array(array('op' => '=', 'version' => '1.1-beta')))),
+      // array('views_ui(8.x-1.1-beta)', array('name' => 'views_ui', 'original_version' => ' (8.x-1.1-beta)', 'versions' => array(array('op' => '=', 'version' => '1.1-beta')))),.
       array('views_ui(8.x-1.1-alpha12)', array('name' => 'views_ui', 'original_version' => ' (8.x-1.1-alpha12)', 'versions' => array(array('op' => '=', 'version' => '1.1-alpha12')))),
       array('views_ui(8.x-1.1-beta8)', array('name' => 'views_ui', 'original_version' => ' (8.x-1.1-beta8)', 'versions' => array(array('op' => '=', 'version' => '1.1-beta8')))),
       array('views_ui(8.x-1.1-rc11)', array('name' => 'views_ui', 'original_version' => ' (8.x-1.1-rc11)', 'versions' => array(array('op' => '=', 'version' => '1.1-rc11')))),
diff --git a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module
index 1555aec..9e6b211 100644
--- a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module
+++ b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module
@@ -5,5 +5,5 @@
  * Test module.
  */
 
-// return an array to test nested merge in invoke all.
+// Return an array to test nested merge in invoke all.
 function module_handler_test_all1_hook($arg) { return array($arg); }
diff --git a/core/tests/Drupal/Tests/Core/Menu/ContextualLinkManagerTest.php b/core/tests/Drupal/Tests/Core/Menu/ContextualLinkManagerTest.php
index b3f0151..2890ca2 100644
--- a/core/tests/Drupal/Tests/Core/Menu/ContextualLinkManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/Menu/ContextualLinkManagerTest.php
@@ -194,7 +194,6 @@ public function testGetContextualLinkPluginsByGroupWithCache() {
     $this->assertEquals($definitions, $result);
 
     // Ensure that the static cache works, so no second cache get is executed.
-
     $result = $this->contextualLinkManager->getContextualLinkPluginsByGroup('group1');
     $this->assertEquals($definitions, $result);
   }
diff --git a/core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php b/core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php
index 2000fe6..7378121 100644
--- a/core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php
+++ b/core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php
@@ -318,7 +318,6 @@ public function testCheckNodeAccess() {
 
     // On top of the node access checking now run the ordinary route based
     // access checkers.
-
     // Ensure that the access manager is just called for the non-node routes.
     $this->accessManager->expects($this->at(0))
       ->method('checkNamedRoute')
diff --git a/core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php b/core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php
index 5537046..2e82d57 100644
--- a/core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php
+++ b/core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php
@@ -66,7 +66,7 @@ protected function getLocalTaskManager($module_dirs, $route_name, $route_params)
     $property->setAccessible(TRUE);
     $property->setValue($manager, $controllerResolver);
 
-    // todo mock a request with a route.
+    // Todo mock a request with a route.
     $request_stack = new RequestStack();
     $property = new \ReflectionProperty('Drupal\Core\Menu\LocalTaskManager', 'requestStack');
     $property->setAccessible(TRUE);
diff --git a/core/tests/Drupal/Tests/Core/Menu/StaticMenuLinkOverridesTest.php b/core/tests/Drupal/Tests/Core/Menu/StaticMenuLinkOverridesTest.php
index e09a56e..40a368d 100644
--- a/core/tests/Drupal/Tests/Core/Menu/StaticMenuLinkOverridesTest.php
+++ b/core/tests/Drupal/Tests/Core/Menu/StaticMenuLinkOverridesTest.php
@@ -65,7 +65,7 @@ public function providerTestLoadOverride() {
     $data[] = array(array('test1' => array('parent' => 'test0')), 'test1', array('parent' => 'test0'));
     // Non existing ID.
     $data[] = array(array('test1' => array('parent' => 'test0')), 'test2', array());
-    // Ensure that the ID is encoded properly
+    // Ensure that the ID is encoded properly.
     $data[] = array(array('test1__la___ma' => array('parent' => 'test0')), 'test1.la__ma', array('parent' => 'test0'));
 
     return $data;
diff --git a/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php b/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php
index 4bebf4c..37fb914 100644
--- a/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php
+++ b/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php
@@ -151,7 +151,7 @@ public function testLongPassword($password, $allowed) {
    * Provides the test matrix for testLongPassword().
    */
   public function providerLongPasswords() {
-    // '512 byte long password is allowed.'
+    // '512 byte long password is allowed.'.
     $passwords['allowed'] = array(str_repeat('x', PasswordInterface::PASSWORD_MAX_LENGTH), TRUE);
     // 513 byte long password is not allowed.
     $passwords['too_long'] = array(str_repeat('x', PasswordInterface::PASSWORD_MAX_LENGTH + 1), FALSE);
diff --git a/core/tests/Drupal/Tests/Core/Render/Element/HtmlTagTest.php b/core/tests/Drupal/Tests/Core/Render/Element/HtmlTagTest.php
index bef5cef..9914c8e 100644
--- a/core/tests/Drupal/Tests/Core/Render/Element/HtmlTagTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/Element/HtmlTagTest.php
@@ -149,7 +149,7 @@ public function providerPreRenderConditionalComments() {
     $expected['#suffix'] = "<!--<![endif]-->\n";
     $tags[] = array($element, $expected);
 
-    // IE gt 8
+    // IE gt 8.
     $element = array(
       '#tag' => 'link',
       '#browsers' => array(
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php b/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
index e8d11b7..7b30be1 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
@@ -578,7 +578,7 @@ public function testOverWriteCacheKeys() {
     $this->setUpRequest();
     $this->setupMemoryCache();
 
-    // Ensure a logic exception
+    // Ensure a logic exception.
     $data = [
       '#cache' => [
         'keys' => ['llama', 'bar'],
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
index 5fd49a7..6bd5c72 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
@@ -199,7 +199,7 @@ public function providerPlaceholders() {
 
     // Case one: render array that has a placeholder that is:
     // - automatically created, but manually triggered (#create_placeholder = TRUE)
-    // - uncacheable
+    // - uncacheable.
     $element_without_cache_keys = $base_element_a1;
     $expected_placeholder_render_array = $extract_placeholder_render_array($base_element_a1['placeholder']);
     $cases[] = [
@@ -214,7 +214,7 @@ public function providerPlaceholders() {
 
     // Case two: render array that has a placeholder that is:
     // - automatically created, but manually triggered (#create_placeholder = TRUE)
-    // - cacheable
+    // - cacheable.
     $element_with_cache_keys = $base_element_a1;
     $element_with_cache_keys['placeholder']['#cache']['keys'] = $keys;
     $expected_placeholder_render_array['#cache']['keys'] = $keys;
@@ -242,7 +242,7 @@ public function providerPlaceholders() {
 
     // Case three: render array that has a placeholder that is:
     // - automatically created, and automatically triggered due to max-age=0
-    // - uncacheable
+    // - uncacheable.
     $element_without_cache_keys = $base_element_a2;
     $expected_placeholder_render_array = $extract_placeholder_render_array($base_element_a2['placeholder']);
     $cases[] = [
@@ -257,7 +257,7 @@ public function providerPlaceholders() {
 
     // Case four: render array that has a placeholder that is:
     // - automatically created, but automatically triggered due to max-age=0
-    // - cacheable
+    // - cacheable.
     $element_with_cache_keys = $base_element_a2;
     $element_with_cache_keys['placeholder']['#cache']['keys'] = $keys;
     $expected_placeholder_render_array['#cache']['keys'] = $keys;
@@ -274,7 +274,7 @@ public function providerPlaceholders() {
     // Case five: render array that has a placeholder that is:
     // - automatically created, and automatically triggered due to high
     //   cardinality cache contexts
-    // - uncacheable
+    // - uncacheable.
     $element_without_cache_keys = $base_element_a3;
     $expected_placeholder_render_array = $extract_placeholder_render_array($base_element_a3['placeholder']);
     $cases[] = [
@@ -290,7 +290,7 @@ public function providerPlaceholders() {
     // Case six: render array that has a placeholder that is:
     // - automatically created, and automatically triggered due to high
     //   cardinality cache contexts
-    // - cacheable
+    // - cacheable.
     $element_with_cache_keys = $base_element_a3;
     $element_with_cache_keys['placeholder']['#cache']['keys'] = $keys;
     $expected_placeholder_render_array['#cache']['keys'] = $keys;
@@ -323,7 +323,7 @@ public function providerPlaceholders() {
     // Case seven: render array that has a placeholder that is:
     // - automatically created, and automatically triggered due to high
     //   invalidation frequency cache tags
-    // - uncacheable
+    // - uncacheable.
     $element_without_cache_keys = $base_element_a4;
     $expected_placeholder_render_array = $extract_placeholder_render_array($base_element_a4['placeholder']);
     $cases[] = [
@@ -339,7 +339,7 @@ public function providerPlaceholders() {
     // Case eight: render array that has a placeholder that is:
     // - automatically created, and automatically triggered due to high
     //   invalidation frequency cache tags
-    // - cacheable
+    // - cacheable.
     $element_with_cache_keys = $base_element_a4;
     $element_with_cache_keys['placeholder']['#cache']['keys'] = $keys;
     $expected_placeholder_render_array['#cache']['keys'] = $keys;
@@ -375,12 +375,12 @@ public function providerPlaceholders() {
     // Case ten: render array that has a placeholder that is:
     // - automatically created, and automatically triggered due to max-age=0
     //   that is bubbled
-    // - cacheable
+    // - cacheable.
     // @todo in https://www.drupal.org/node/2559847
 
     // Case eleven: render array that DOES NOT have a placeholder that is:
     // - NOT created, despite high cardinality cache contexts that are bubbled
-    // - uncacheable
+    // - uncacheable.
     $element_without_cache_keys = $base_element_a6;
     $expected_placeholder_render_array = $extract_placeholder_render_array($base_element_a6['placeholder']);
     $cases[] = [
@@ -396,7 +396,7 @@ public function providerPlaceholders() {
     // Case twelve: render array that has a placeholder that is:
     // - automatically created, and automatically triggered due to high
     //   cardinality cache contexts that are bubbled
-    // - cacheable
+    // - cacheable.
     $element_with_cache_keys = $base_element_a6;
     $element_with_cache_keys['placeholder']['#cache']['keys'] = $keys;
     $expected_placeholder_render_array['#cache']['keys'] = $keys;
@@ -425,7 +425,7 @@ public function providerPlaceholders() {
     // Case thirteen: render array that has a placeholder that is:
     // - automatically created, and automatically triggered due to high
     //   invalidation frequency cache tags that are bubbled
-    // - uncacheable
+    // - uncacheable.
     $element_without_cache_keys = $base_element_a7;
     $expected_placeholder_render_array = $extract_placeholder_render_array($base_element_a7['placeholder']);
     $cases[] = [
@@ -441,7 +441,7 @@ public function providerPlaceholders() {
     // Case fourteen: render array that has a placeholder that is:
     // - automatically created, and automatically triggered due to high
     //   invalidation frequency cache tags that are bubbled
-    // - cacheable
+    // - cacheable.
     $element_with_cache_keys = $base_element_a7;
     $element_with_cache_keys['placeholder']['#cache']['keys'] = $keys;
     $expected_placeholder_render_array['#cache']['keys'] = $keys;
@@ -469,7 +469,7 @@ public function providerPlaceholders() {
 
     // Case fifteen: render array that has a placeholder that is:
     // - manually created
-    // - uncacheable
+    // - uncacheable.
     $x = $base_element_b;
     $expected_placeholder_render_array = $x['#attached']['placeholders'][(string) $generate_placeholder_markup()];
     unset($x['#attached']['placeholders'][(string) $generate_placeholder_markup()]['#cache']);
@@ -485,7 +485,7 @@ public function providerPlaceholders() {
 
     // Case sixteen: render array that has a placeholder that is:
     // - manually created
-    // - cacheable
+    // - cacheable.
     $x = $base_element_b;
     $x['#markup'] = $placeholder_markup = $generate_placeholder_markup($keys);
     $placeholder_markup = (string) $placeholder_markup;
@@ -640,7 +640,7 @@ public function testCacheableParent($test_element, $args, array $expected_placeh
     // the parent (with CID 'placeholder_test_GET') is vastly different. These
     // are the cases where:
     // - the placeholder is uncacheable (because it has no #cache[keys]), and;
-    // - cacheability metadata that meets auto_placeholder_conditions is bubbled
+    // - cacheability metadata that meets auto_placeholder_conditions is bubbled.
     $has_uncacheable_lazy_builder = !isset($test_element['placeholder']['#cache']['keys']) && isset($test_element['placeholder']['#lazy_builder']);
     // Edge cases: always where both bubbling of an auto-placeholdering
     // condition happens from within a #lazy_builder that is uncacheable.
@@ -870,7 +870,7 @@ public function testNonScalarLazybuilderCallbackContext() {
       'int' => 1337,
       'float' => 3.14,
       'null' => NULL,
-      // array is not one of the scalar types.
+      // Array is not one of the scalar types.
       'array' => ['hi!'],
     ]];
 
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererTest.php b/core/tests/Drupal/Tests/Core/Render/RendererTest.php
index bed7d3d..b1da143 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererTest.php
@@ -67,8 +67,6 @@ public function providerTestRenderBasic() {
 
 
     // Part 1: the most simplistic render arrays possible, none using #theme.
-
-
     // Pass a NULL.
     $data[] = [NULL, ''];
     // Pass an empty string.
@@ -142,8 +140,6 @@ public function providerTestRenderBasic() {
     ], 'foo'];
 
     // Part 2: render arrays using #theme and #theme_wrappers.
-
-
     // Tests that #theme and #theme_wrappers can co-exist on an element.
     $build = [
       '#theme' => 'common_test_foo',
@@ -231,8 +227,6 @@ public function providerTestRenderBasic() {
 
 
     // Part 3: render arrays using #markup as a fallback for #theme hooks.
-
-
     // Theme suggestion is not implemented, #markup should be rendered.
     $build = [
       '#theme' => ['suggestionnotimplemented'],
@@ -286,8 +280,6 @@ public function providerTestRenderBasic() {
 
 
     // Part 4: handling of #children and child renderable elements.
-
-
     // #theme is implemented so the values of both #children and 'child' will
     // be ignored - it is the responsibility of the theme hook to render these
     // if appropriate.
diff --git a/core/tests/Drupal/Tests/Core/Route/RoleAccessCheckTest.php b/core/tests/Drupal/Tests/Core/Route/RoleAccessCheckTest.php
index dadf612..876d04b 100644
--- a/core/tests/Drupal/Tests/Core/Route/RoleAccessCheckTest.php
+++ b/core/tests/Drupal/Tests/Core/Route/RoleAccessCheckTest.php
@@ -92,7 +92,6 @@ public function roleAccessProvider() {
 
     // Setup one user with the first role, one with the second, one with both
     // and one final without any of these two roles.
-
     $account_1 = new UserSession(array(
       'uid' => 1,
       'roles' => array($rid_1),
diff --git a/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php b/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php
index 3b4a975..c4a6dc3 100644
--- a/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php
+++ b/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php
@@ -101,7 +101,7 @@ public function providerGet() {
     // A request with a destination query.
     $data[] = [$request, '/example'];
 
-      // A request without a destination query,
+      // A request without a destination query,.
     $request = Request::create('/');
     $data[] = [$request, '/current-path'];
 
diff --git a/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php b/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php
index d10c82d..50b5c90 100644
--- a/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php
+++ b/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php
@@ -198,7 +198,6 @@ public function testAliasGeneration() {
     $this->assertEquals('/hello/world', $url);
     // No cacheability to test; UrlGenerator::generate() doesn't support
     // collecting cacheability metadata.
-
     $this->routeProcessorManager->expects($this->exactly(3))
       ->method('processOutbound')
       ->with($this->anything());
@@ -219,7 +218,6 @@ public function testAliasGenerationUsingInterfaceConstants() {
     $this->assertEquals('/hello/world', $url);
     // No cacheability to test; UrlGenerator::generate() doesn't support
     // collecting cacheability metadata.
-
     $this->routeProcessorManager->expects($this->exactly(3))
       ->method('processOutbound')
       ->with($this->anything());
@@ -299,7 +297,6 @@ public function testAliasGenerationWithParameters() {
     $this->assertEquals('/goodbye/cruel/world', $url);
     // No cacheability to test; UrlGenerator::generate() doesn't support
     // collecting cacheability metadata.
-
     $this->routeProcessorManager->expects($this->exactly(7))
       ->method('processOutbound')
       ->with($this->anything());
@@ -381,7 +378,6 @@ public function testAbsoluteURLGeneration() {
     $this->assertEquals('http://localhost/hello/world', $url);
     // No cacheability to test; UrlGenerator::generate() doesn't support
     // collecting cacheability metadata.
-
     $this->routeProcessorManager->expects($this->exactly(2))
       ->method('processOutbound')
       ->with($this->anything());
@@ -399,7 +395,6 @@ public function testAbsoluteURLGenerationUsingInterfaceConstants() {
     $this->assertEquals('http://localhost/hello/world', $url);
     // No cacheability to test; UrlGenerator::generate() doesn't support
     // collecting cacheability metadata.
-
     $this->routeProcessorManager->expects($this->exactly(2))
       ->method('processOutbound')
       ->with($this->anything());
@@ -439,7 +434,6 @@ public function testUrlGenerationWithHttpsRequirement() {
     $this->assertEquals('https://localhost/test/four', $url);
     // No cacheability to test; UrlGenerator::generate() doesn't support
     // collecting cacheability metadata.
-
     $this->routeProcessorManager->expects($this->exactly(2))
       ->method('processOutbound')
       ->with($this->anything());
diff --git a/core/tests/Drupal/Tests/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidatorTest.php b/core/tests/Drupal/Tests/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidatorTest.php
index 4c09f59..f7fd5ff 100644
--- a/core/tests/Drupal/Tests/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidatorTest.php
+++ b/core/tests/Drupal/Tests/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidatorTest.php
@@ -61,7 +61,7 @@ public function provideTestValidate() {
     $data[] = [new StringData(DataDefinition::create('string')), 'test', TRUE];
     $data[] = [new StringData(DataDefinition::create('string')), new TranslatableMarkup('test'), TRUE];
     // It is odd that 1 is a valid string.
-    // $data[] = [$this->getMock('Drupal\Core\TypedData\Type\StringInterface'), 1, FALSE];
+    // $data[] = [$this->getMock('Drupal\Core\TypedData\Type\StringInterface'), 1, FALSE];.
     $data[] = [new StringData(DataDefinition::create('string')), [], FALSE];
     $data[] = [new Uri(DataDefinition::create('uri')), 'http://www.drupal.org', TRUE];
     $data[] = [new Uri(DataDefinition::create('uri')), 'https://www.drupal.org', TRUE];
