diff --git a/core/includes/batch.inc b/core/includes/batch.inc
index f84c01b..130a73d 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 f74859e..f670edd 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -969,7 +969,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 037c5b0..74ccb5c 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 e3ad1c8..7ddd161 100644
--- a/core/includes/errors.inc
+++ b/core/includes/errors.inc
@@ -229,7 +229,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.
@@ -237,7 +236,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 0dcd141..e93d609 100644
--- a/core/includes/file.inc
+++ b/core/includes/file.inc
@@ -695,7 +695,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
@@ -761,7 +761,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 b4c6a71..6f511d8 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 1616f18..68e0f5a 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -1134,7 +1134,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 e243c18..22c52e9 100644
--- a/core/includes/install.inc
+++ b/core/includes/install.inc
@@ -993,10 +993,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 d80d74b..2d2c979 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 f180cbd..69957b4 100644
--- a/core/includes/theme.inc
+++ b/core/includes/theme.inc
@@ -446,7 +446,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'];
@@ -894,7 +893,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']);
@@ -989,7 +988,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;
@@ -1406,8 +1405,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 2e35611..f29307d 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 b27886d..3b3740d 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 532c701..923deb5 100644
--- a/core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php
+++ b/core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php
@@ -47,7 +47,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 a19c687..273496f 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 750f122..f0e494d 100644
--- a/core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php
+++ b/core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php
@@ -106,7 +106,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.
@@ -301,7 +301,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 6ebdc4a..d0ff822 100644
--- a/core/lib/Drupal/Component/Utility/Crypt.php
+++ b/core/lib/Drupal/Component/Utility/Crypt.php
@@ -126,7 +126,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 2fc67d6..11bd5fb 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 33f4de6..f3be211 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 87575e0..3059c78 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 c517fb4..9caf85c 100644
--- a/core/lib/Drupal/Core/Cache/MemoryBackend.php
+++ b/core/lib/Drupal/Core/Cache/MemoryBackend.php
@@ -75,7 +75,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 25071b0..2b95301 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 74d2866..4f6d24a 100644
--- a/core/lib/Drupal/Core/Cron.php
+++ b/core/lib/Drupal/Core/Cron.php
@@ -124,7 +124,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 f081eff..405e4dd 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
@@ -111,7 +111,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 4a5f404..98ad39f 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
@@ -488,7 +488,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 267a8c9..cbff674 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/Condition.php b/core/lib/Drupal/Core/Database/Query/Condition.php
index 52a5700..48afd81 100644
--- a/core/lib/Drupal/Core/Database/Query/Condition.php
+++ b/core/lib/Drupal/Core/Database/Query/Condition.php
@@ -201,14 +201,14 @@ public function compile(Connection $connection, PlaceholderInterface $queryPlace
             $field_fragment = '(' . $field_fragment . ')';
           }
           $arguments += $condition['field']->arguments();
-          // If the operator and value were not passed in to the
+          // If the operator and value were not passed in to the.
           // @see ConditionInterface::condition() method (and thus have the
           // default value as defined over there) it is assumed to be a valid
           // condition on its own: ignore the operator and value parts.
           $ignore_operator = $condition['operator'] === '=' && $condition['value'] === NULL;
         }
         elseif (!isset($condition['operator'])) {
-          // Left hand part is a literal string added with the
+          // Left hand part is a literal string added with the.
           // @see ConditionInterface::where() method. Put brackets around
           // the snippet and collect the arguments from the value part.
           // Also ignore the operator and value parts.
diff --git a/core/lib/Drupal/Core/Database/Query/Insert.php b/core/lib/Drupal/Core/Database/Query/Insert.php
index c8f9921..aaa9804 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 b7db605..a47f1c9 100644
--- a/core/lib/Drupal/Core/Database/Query/Select.php
+++ b/core/lib/Drupal/Core/Database/Query/Select.php
@@ -787,13 +787,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'])) {
@@ -843,18 +843,18 @@ 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;
@@ -868,7 +868,7 @@ public function __toString() {
       }
     }
 
-    // ORDER BY
+    // ORDER BY.
     if ($this->order) {
       $query .= "\nORDER BY ";
       $fields = array();
@@ -901,7 +901,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 8b9eb7e..046dfee 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 971d031..5e3cacf 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/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php
index 274a3fa..3e03334 100644
--- a/core/lib/Drupal/Core/DrupalKernel.php
+++ b/core/lib/Drupal/Core/DrupalKernel.php
@@ -451,7 +451,7 @@ public function boot() {
     // Provide a default configuration, if not set.
     if (!isset($configuration['default'])) {
       // @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';
       }
@@ -950,7 +950,6 @@ public static function bootEnvironment($app_root = NULL) {
     // 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');
@@ -1202,7 +1201,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 1d69be2..f749ca3 100644
--- a/core/lib/Drupal/Core/Entity/ContentEntityBase.php
+++ b/core/lib/Drupal/Core/Entity/ContentEntityBase.php
@@ -480,7 +480,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])) {
@@ -1245,7 +1244,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 1530693..30e7ddb 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 9f6ef8b..a3fc8a7 100644
--- a/core/lib/Drupal/Core/Entity/entity.api.php
+++ b/core/lib/Drupal/Core/Entity/entity.api.php
@@ -1905,7 +1905,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 38cb895..1e72f22 100644
--- a/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php
@@ -146,13 +146,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 4737e80..d0f70ad 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/EventSubscriber/MaintenanceModeSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php
index 57d43ec..65b0be1 100644
--- a/core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php
@@ -99,7 +99,6 @@ public function onKernelRequestMaintenance(GetResponseEvent $event) {
       if (!$this->maintenanceMode->exempt($this->account)) {
         // Deliver the 503 page if the site is in maintenance mode and the
         // logged in user is not allowed to bypass it.
-
         // If the request format is not 'html' then show default maintenance
         // mode page else show a text/plain page with maintenance message.
         if ($request->getRequestFormat() !== 'html') {
diff --git a/core/lib/Drupal/Core/Extension/ExtensionDiscovery.php b/core/lib/Drupal/Core/Extension/ExtensionDiscovery.php
index 177f011..d3d9619 100644
--- a/core/lib/Drupal/Core/Extension/ExtensionDiscovery.php
+++ b/core/lib/Drupal/Core/Extension/ExtensionDiscovery.php
@@ -352,7 +352,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 f857bf1..eac9027 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 74fc766..fff02db 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);
@@ -930,7 +928,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'),
@@ -939,7 +937,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(),
@@ -949,7 +947,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 ca00bcc..271ae8c 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 8e5c95a..ad4139b 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 3617a63..9cbd912 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 e687931..4a33641 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 878967b..51a2c94 100644
--- a/core/lib/Drupal/Core/Form/FormBuilder.php
+++ b/core/lib/Drupal/Core/Form/FormBuilder.php
@@ -336,7 +336,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
@@ -515,7 +515,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.
@@ -1134,7 +1134,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 701871f..2ed057a 100644
--- a/core/lib/Drupal/Core/Form/form.api.php
+++ b/core/lib/Drupal/Core/Form/form.api.php
@@ -246,7 +246,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',
@@ -296,7 +295,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 6d5fe65..cc4ae49 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 32322d4..0899897 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 4bbffc3..4898c92 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.
@@ -339,7 +339,7 @@ protected function doRender(&$elements, $is_root_call = FALSE) {
     // present (without such a callback, it would be impossible to replace the
     // placeholder), replace the current element with a placeholder.
     // @todo remove the isMethodSafe() check when
-    //       https://www.drupal.org/node/2367555 lands.
+    //   https://www.drupal.org/node/2367555 lands.
     if (isset($elements['#create_placeholder']) && $elements['#create_placeholder'] === TRUE && $this->requestStack->getCurrentRequest()->isMethodSafe()) {
       if (!isset($elements['#lazy_builder'])) {
         throw new \LogicException('When #create_placeholder is set, a #lazy_builder callback must be present as well.');
diff --git a/core/lib/Drupal/Core/Render/theme.api.php b/core/lib/Drupal/Core/Render/theme.api.php
index 322761e..f529168 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 36ed0f6..cf1a210 100644
--- a/core/lib/Drupal/Core/Routing/UrlGenerator.php
+++ b/core/lib/Drupal/Core/Routing/UrlGenerator.php
@@ -62,7 +62,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.
@@ -175,7 +175,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));
     }
@@ -192,11 +192,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);
@@ -207,7 +207,7 @@ protected function doGenerate(array $variables, array $defaults, array $tokens,
         }
       }
       else {
-        // Static text
+        // Static text.
         $url = $token[1] . $url;
         $optional = FALSE;
       }
@@ -301,11 +301,11 @@ public function generateFromRoute($name, $parameters = array(), $options = array
 
     // Drupal paths rarely include dots, so skip this processing if possible.
     if (strpos($path, '/.') !== 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.
       $path = strtr($path, array('/../' => '/%2E%2E/', '/./' => '/%2E/'));
       if ('/..' === substr($path, -3)) {
         $path = substr($path, 0, -2) . '%2E%2E';
diff --git a/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php b/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
index 55d896a..976822b 100644
--- a/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
+++ b/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
@@ -57,7 +57,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 343b461..f11a564 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 7d67ff9..65929f2 100644
--- a/core/lib/Drupal/Core/Template/TwigExtension.php
+++ b/core/lib/Drupal/Core/Template/TwigExtension.php
@@ -139,7 +139,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')),
@@ -480,7 +480,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/Test/TestStatus.php b/core/lib/Drupal/Core/Test/TestStatus.php
index b70dcdd..d12e807 100644
--- a/core/lib/Drupal/Core/Test/TestStatus.php
+++ b/core/lib/Drupal/Core/Test/TestStatus.php
@@ -55,7 +55,7 @@ public static function label($status) {
       static::EXCEPTION => 'exception',
       static::SYSTEM => 'error',
     ];
-    // For status 3 and higher, we want 'error.'
+    // For status 3 and higher, we want 'error.'.
     $label = $statusMap[$status > static::SYSTEM ? static::SYSTEM : $status];
     return $label;
   }
diff --git a/core/lib/Drupal/Core/Theme/Registry.php b/core/lib/Drupal/Core/Theme/Registry.php
index 0cb00a6..c0d2b23 100644
--- a/core/lib/Drupal/Core/Theme/Registry.php
+++ b/core/lib/Drupal/Core/Theme/Registry.php
@@ -449,7 +449,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 4d4bbf5..6d7ab0c 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 53432e8..a441d2f 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/modules/ban/tests/src/Functional/IpAddressBlockingTest.php b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
index 9738915..f9927b0 100644
--- a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
+++ b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
@@ -74,8 +74,7 @@ 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.'));.
     // Test duplicate ip address are not present in the 'blocked_ips' table.
     // when they are entered programmatically.
     $connection = Database::getConnection();
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 7e39da4..112e92b 100644
--- a/core/modules/block/block.module
+++ b/core/modules/block/block.module
@@ -172,7 +172,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 d3544e8..1ae0005 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/src/BlockForm.php b/core/modules/block/src/BlockForm.php
index 42dfbc3..24cb04a 100644
--- a/core/modules/block/src/BlockForm.php
+++ b/core/modules/block/src/BlockForm.php
@@ -384,7 +384,7 @@ protected function submitVisibility(array $form, FormStateInterface $form_state)
       // Setting conditions' context mappings is the plugins' responsibility.
       // This code exists for backwards compatibility, because
       // \Drupal\Core\Condition\ConditionPluginBase::submitConfigurationForm()
-      // did not set its own mappings until Drupal 8.2
+      // did not set its own mappings until Drupal 8.2.
       // @todo Remove the code that sets context mappings in Drupal 9.0.0.
       if ($condition instanceof ContextAwarePluginInterface) {
         $context_mapping = isset($values['context_mapping']) ? $values['context_mapping'] : [];
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 c5dfba2..0d45da3 100644
--- a/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php
+++ b/core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php
@@ -94,7 +94,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;
@@ -122,18 +122,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_fifth', '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 e45892c..392fbdd 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, ['region' => 'content'], 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 60754be..64e290a 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);
     }
@@ -1111,7 +1111,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 5011282..6a1d717 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php
@@ -242,7 +242,7 @@ public function getButtons() {
         'image_alternative' => $button('blockquote'),
         'image_alternative_rtl' => $button('blockquote', 'rtl'),
       ),
-      // "horizontalrule" plugin
+      // "horizontalrule" plugin.
       'HorizontalRule' => array(
         'label' => $this->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 d10180d..5033cdf 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 6efe647..15337e6 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 3711a54..6fd85fa 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 1dbc1da..7c1d0c6 100644
--- a/core/modules/color/color.module
+++ b/core/modules/color/color.module
@@ -544,7 +544,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';
@@ -655,7 +654,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.
@@ -681,8 +680,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/tests/src/Functional/ColorSafePreviewTest.php b/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php
index e80202f..56997dd 100644
--- a/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php
+++ b/core/modules/color/tests/src/Functional/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 b0f1550..980f638 100644
--- a/core/modules/comment/comment.module
+++ b/core/modules/comment/comment.module
@@ -201,7 +201,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 4a935c2..95e3145 100644
--- a/core/modules/comment/comment.tokens.inc
+++ b/core/modules/comment/comment.tokens.inc
@@ -44,7 +44,7 @@ function comment_token_info() {
     }
   }
 
-  // Core comment tokens
+  // Core comment tokens.
   $comment['cid'] = array(
     'name' => t("Comment ID"),
     'description' => t("The unique ID of the comment."),
@@ -82,7 +82,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 5f1b504..2acd6a3 100644
--- a/core/modules/comment/src/Controller/CommentController.php
+++ b/core/modules/comment/src/Controller/CommentController.php
@@ -288,7 +288,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 a244163..f0ef4a2 100644
--- a/core/modules/comment/src/Entity/Comment.php
+++ b/core/modules/comment/src/Entity/Comment.php
@@ -108,7 +108,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 5ae57cb..f44f2c9 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 e43e0bc..8226069 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 aa7d099..a1ea0b2 100644
--- a/core/modules/comment/src/Tests/CommentPagerTest.php
+++ b/core/modules/comment/src/Tests/CommentPagerTest.php
@@ -166,8 +166,7 @@ function testCommentOrderingThreading() {
     //   - 3
     //     - 6
     // - 2
-    //   - 5
-
+    //   - 5.
     $this->setCommentSettings('default_mode', CommentManagerInterface::COMMENT_MODE_FLAT, 'Comment paging changed.');
 
     $expected_order = array(
@@ -261,8 +260,7 @@ function testCommentNewPageIndicator() {
     // - 1
     //   - 3
     // - 2
-    //   - 5
-
+    //   - 5.
     $this->setCommentSettings('default_mode', CommentManagerInterface::COMMENT_MODE_FLAT, 'Comment paging changed.');
 
     $expected_pages = array(
@@ -271,7 +269,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());
@@ -289,7 +287,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 c99dd32..dffd8fe 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 a8a8f0f..b60de1b 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 baeacb9..2a9eb01 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 8bd3d71..ca626f6 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 b69357e..f4b0005 100644
--- a/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php
+++ b/core/modules/config_translation/src/Tests/ConfigTranslationUiTest.php
@@ -647,7 +647,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(
@@ -840,7 +840,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',
     );
@@ -857,7 +857,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')));
 
@@ -868,7 +868,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 9e5c82c..ad8b472 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/content_moderation/src/Entity/ContentModerationState.php b/core/modules/content_moderation/src/Entity/ContentModerationState.php
index 978408f..5b44607 100644
--- a/core/modules/content_moderation/src/Entity/ContentModerationState.php
+++ b/core/modules/content_moderation/src/Entity/ContentModerationState.php
@@ -79,7 +79,6 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
     // @todo https://www.drupal.org/node/2779931 Add constraint that enforces
     //   unique content_entity_type_id, content_entity_id and
     //   content_entity_revision_id.
-
     $fields['content_entity_revision_id'] = BaseFieldDefinition::create('integer')
       ->setLabel(t('Content entity revision ID'))
       ->setDescription(t('The revision ID of the content entity this moderation state is for.'))
diff --git a/core/modules/content_moderation/src/Tests/ModerationLocaleTest.php b/core/modules/content_moderation/src/Tests/ModerationLocaleTest.php
index 0d40356..73ebec9 100644
--- a/core/modules/content_moderation/src/Tests/ModerationLocaleTest.php
+++ b/core/modules/content_moderation/src/Tests/ModerationLocaleTest.php
@@ -202,7 +202,7 @@ public function testTranslateModeratedContent() {
     $this->assertTrue($french_node->isPublished());
     $this->assertFalse($english_node->isPublished());
 
-    // Create a forward revision
+    // Create a forward revision.
     $this->drupalPostForm('fr/node/' . $english_node->id() . '/edit', [], t('Save and Create New Draft (this translation)'));
     $english_node = $this->drupalGetNodeByTitle('An english node', TRUE);
     $french_node = $english_node->getTranslation('fr');
diff --git a/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeWidgetBase.php b/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeWidgetBase.php
index aa6175a..71b91af 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 afd629a..481e0d4 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/DateTestBase.php b/core/modules/datetime/src/Tests/DateTestBase.php
index 0f1277e..6464b9c 100644
--- a/core/modules/datetime/src/Tests/DateTestBase.php
+++ b/core/modules/datetime/src/Tests/DateTestBase.php
@@ -59,7 +59,7 @@
   protected static $timezones = [
     // UTC-12, no DST.
     'Pacific/Kwajalein',
-    // UTC-11, no DST
+    // UTC-11, no DST.
     'Pacific/Midway',
     // UTC-7, no DST.
     'America/Phoenix',
@@ -67,7 +67,7 @@
     'UTC',
     // UTC+5:30, no DST.
     'Asia/Kolkata',
-    // UTC+12, no DST
+    // UTC+12, no DST.
     'Pacific/Funafuti',
     // UTC+13, no DST.
     'Pacific/Tongatapu',
diff --git a/core/modules/datetime/src/Tests/DateTimeFieldTest.php b/core/modules/datetime/src/Tests/DateTimeFieldTest.php
index f7aeae8..7d81825 100644
--- a/core/modules/datetime/src/Tests/DateTimeFieldTest.php
+++ b/core/modules/datetime/src/Tests/DateTimeFieldTest.php
@@ -353,11 +353,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);
 
@@ -383,7 +383,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/datetime_range/src/Tests/DateRangeFieldTest.php b/core/modules/datetime_range/src/Tests/DateRangeFieldTest.php
index 759352e..917e7b9 100644
--- a/core/modules/datetime_range/src/Tests/DateRangeFieldTest.php
+++ b/core/modules/datetime_range/src/Tests/DateRangeFieldTest.php
@@ -165,7 +165,7 @@ public function testDateRangeField() {
       $this->renderTestEntity($id);
       $this->assertText($expected, new FormattableMarkup('Formatted date field using daterange_custom format displayed as %expected.', array('%expected' => $expected)));
 
-      // Test formatters when start date and end date are the same
+      // Test formatters when start date and end date are the same.
       $this->drupalGet('entity_test/add');
       $value = '2012-12-31 00:00:00';
       $start_date = new DrupalDateTime($value, 'UTC');
@@ -335,7 +335,7 @@ public function testDatetimeRangeField() {
     $this->renderTestEntity($id);
     $this->assertText($expected, new FormattableMarkup('Formatted date field using daterange_custom format displayed as %expected.', array('%expected' => $expected)));
 
-    // Test formatters when start date and end date are the same
+    // Test formatters when start date and end date are the same.
     $this->drupalGet('entity_test/add');
     $value = '2012-12-31 00:00:00';
     $start_date = new DrupalDateTime($value, 'UTC');
@@ -496,7 +496,7 @@ public function testAlldayRangeField() {
     $this->renderTestEntity($id);
     $this->assertText($expected, new FormattableMarkup('Formatted date field using daterange_custom format displayed as %expected.', array('%expected' => $expected)));
 
-    // Test formatters when start date and end date are the same
+    // Test formatters when start date and end date are the same.
     $this->drupalGet('entity_test/add');
 
     $value = '2012-12-31 00:00:00';
diff --git a/core/modules/dblog/src/Tests/DbLogTest.php b/core/modules/dblog/src/Tests/DbLogTest.php
index 886f768..6406599 100644
--- a/core/modules/dblog/src/Tests/DbLogTest.php
+++ b/core/modules/dblog/src/Tests/DbLogTest.php
@@ -197,7 +197,7 @@ private function generateLogEntries($count, $options = array()) {
     // percent-encoded Chinese characters.
     $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/src/Tests/EditorSecurityTest.php b/core/modules/editor/src/Tests/EditorSecurityTest.php
index c771439..8dbf1a0 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 d62cb68..8cd411d 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(
@@ -154,7 +153,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 8133007..72f78ea 100644
--- a/core/modules/field/field.module
+++ b/core/modules/field/field.module
@@ -230,7 +230,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 3803029..4efb30a 100644
--- a/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
+++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceAdminTest.php
@@ -539,7 +539,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 e69e04f..355f860 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 16625a9..1c748ce 100644
--- a/core/modules/field/src/Tests/FormTest.php
+++ b/core/modules/field/src/Tests/FormTest.php
@@ -121,8 +121,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,
@@ -210,7 +209,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,
@@ -256,7 +255,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'));
 
@@ -282,7 +280,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");
@@ -310,8 +308,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.
   }
 
   /**
@@ -599,7 +596,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 8b3402d..b6fe986 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 14777ec..2bda2a2 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 0ac5748..bb94cb9 100644
--- a/core/modules/field/src/Tests/String/StringFieldTest.php
+++ b/core/modules/field/src/Tests/String/StringFieldTest.php
@@ -37,7 +37,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 7eda288..0c0625b 100644
--- a/core/modules/field/tests/modules/field_test/field_test.module
+++ b/core/modules/field/tests/modules/field_test/field_test.module
@@ -143,7 +143,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 e00848c..582b8ab 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/EntityReference/Views/EntityReferenceRelationshipTest.php b/core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php
index 5dc096f..d9b5a73 100644
--- a/core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php
+++ b/core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php
@@ -267,8 +267,7 @@ public function testDataTableRelationshipWithLongFieldName() {
       $this->assertEqual($row->_entity->id(), $this->entities[$index]->id());
 
       // Test the forward relationship.
-      //$this->assertEqual($row->entity_test_entity_test_mul__field_data_test_id, 1);
-
+      // $this->assertEqual($row->entity_test_entity_test_mul__field_data_test_id, 1);
       // Test that the correct relationship entity is on the row.
       $this->assertEqual($row->_relationship_entities['field_test_data_with_a_long_name']->id(), 1);
       $this->assertEqual($row->_relationship_entities['field_test_data_with_a_long_name']->bundle(), 'entity_test');
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 8237ef4..4643eba 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 a61d645..f25dcae 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 b536fe8..cd18a47 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 dab6e0d..655903e 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 21cc3aa..bf85c43 100644
--- a/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php
+++ b/core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php
@@ -132,7 +132,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 25b99bb..a54f57c 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 902a193..786edcb 100644
--- a/core/modules/field_ui/src/Tests/ManageDisplayTest.php
+++ b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
@@ -190,7 +190,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");
 
@@ -571,7 +571,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 cbe9f53..b3f24d6 100644
--- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php
+++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
@@ -440,7 +440,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.');
 
@@ -498,7 +498,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.
@@ -678,7 +678,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 c63fff4..d4bf615 100644
--- a/core/modules/file/file.module
+++ b/core/modules/file/file.module
@@ -763,7 +763,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;
@@ -869,7 +869,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;
@@ -971,7 +971,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;
@@ -1433,7 +1433,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/source/d7/File.php b/core/modules/file/src/Plugin/migrate/source/d7/File.php
index 247a6cf..4ab97e7 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 e92cef3..ef2ac9f 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 414c86b..e33daed 100644
--- a/core/modules/file/src/Tests/FileFieldWidgetTest.php
+++ b/core/modules/file/src/Tests/FileFieldWidgetTest.php
@@ -483,7 +483,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/src/Tests/FileListingTest.php b/core/modules/file/src/Tests/FileListingTest.php
index 708f138..945a968 100644
--- a/core/modules/file/src/Tests/FileListingTest.php
+++ b/core/modules/file/src/Tests/FileListingTest.php
@@ -188,7 +188,7 @@ function testFileListingUsageNoLink() {
 
     $this->assertResponse(200);
     // Entity name should be displayed, but not linked if Entity::toUrl
-    // throws an exception
+    // throws an exception.
     $this->assertText($entity_name, 'Entity name is added to file usage listing.');
     $this->assertNoLink($entity_name, 'Linked entity name not added to file usage listing.');
     $this->assertLink($node->getTitle());
diff --git a/core/modules/file/tests/file_test/file_test.module b/core/modules/file/tests/file_test/file_test.module
index 4a6fbcb..e9bd9a7 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 b880571..58a0287 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 747d5da..89ee45b 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 f8752c4..b7ded03 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.module b/core/modules/filter/filter.module
index f52614a..24e770f 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 b4ce50c..0a3cebb 100644
--- a/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
@@ -20,7 +20,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/FilterKernelTest.php b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
index 06c1e4b..ac2b688 100644
--- a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
@@ -329,7 +329,7 @@ function testLineBreakFilter() {
         "<p>aaa<br />\nbbb</p>\n<p>ccc</p>" => TRUE,
       ),
       // Skip contents of certain block tags entirely.
-      "<script>aaa\nbbb\n\nccc</script>
+      "<script>aaa;\nbbb;\n\nccc</script>
 <style>aaa\nbbb\n\nccc</style>
 <pre>aaa\nbbb\n\nccc</pre>
 <object>aaa\nbbb\n\nccc</object>
@@ -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';
@@ -1033,14 +1032,14 @@ function testHtmlCorrectorFilter() {
     $f = Html::normalize('<script>alert("test")</script>');
     $this->assertEqual($f, '<script>
 <!--//--><![CDATA[// ><!--
-alert("test")
+alert("test");
 //--><!]]>
 </script>', 'HTML corrector -- CDATA added to script element');
 
     $f = Html::normalize('<p><script>alert("test")</script></p>');
     $this->assertEqual($f, '<p><script>
 <!--//--><![CDATA[// ><!--
-alert("test")
+alert("test");
 //--><!]]>
 </script></p>', 'HTML corrector -- CDATA added to a nested script element');
 
diff --git a/core/modules/forum/src/Tests/ForumTest.php b/core/modules/forum/src/Tests/ForumTest.php
index df21f69..1413cc9 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(Link::createFromRoute(t('General discussion'), 'forum.page', ['taxonomy_term' => 1])->toString(), "Found the default forum at the /forum listing");
     // Check the presence of expected cache tags.
     $this->assertCacheTag('config:forum.settings');
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 80d78bd..c415f7d 100644
--- a/core/modules/history/src/Plugin/views/filter/HistoryUserTimestamp.php
+++ b/core/modules/history/src/Plugin/views/filter/HistoryUserTimestamp.php
@@ -70,7 +70,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 85e764b..8864e30 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 2ae9032..0edeef0 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 4f4c7d4..6cf3913 100644
--- a/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php
+++ b/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php
@@ -103,7 +103,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 cf049f1..ce45794 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 d407530..44fa56e 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 e85ad53..29f7fe6 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 ec06ca6..57d29e3 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 41ecd4a..8031796 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
@@ -45,7 +45,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 1181b50..26dd29f 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 00fe8d5..bf2a590 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 aad0119..ef4a41c 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 84fecde..6ea3dc5 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 eea87db..6b0112c 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 92254c2..6d94b9f 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 e9464ab..dc1b0b6 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 0488d96..1ba1dcb 100644
--- a/core/modules/migrate/src/MigrateExecutable.php
+++ b/core/modules/migrate/src/MigrateExecutable.php
@@ -106,7 +106,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;
@@ -486,7 +486,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(
diff --git a/core/modules/migrate/src/Plugin/Migration.php b/core/modules/migrate/src/Plugin/Migration.php
index be79d0d..d77c331 100644
--- a/core/modules/migrate/src/Plugin/Migration.php
+++ b/core/modules/migrate/src/Plugin/Migration.php
@@ -570,7 +570,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/Kernel/process/DownloadTest.php b/core/modules/migrate/tests/src/Kernel/process/DownloadTest.php
index 69e3aa0..e5e09d0 100644
--- a/core/modules/migrate/tests/src/Kernel/process/DownloadTest.php
+++ b/core/modules/migrate/tests/src/Kernel/process/DownloadTest.php
@@ -100,7 +100,7 @@ public function testWriteProectedDestination() {
    *   The local URI of the downloaded file.
    */
   protected function doTransform($destination_uri, $configuration = []) {
-    // The HTTP client will return a file with contents 'It worked!'
+    // The HTTP client will return a file with contents 'It worked!'.
     $body = fopen('data://text/plain;base64,SXQgd29ya2VkIQ==', 'r');
 
     // Prepare a mock HTTP client.
diff --git a/core/modules/migrate/tests/src/Unit/MigrateSourceTest.php b/core/modules/migrate/tests/src/Unit/MigrateSourceTest.php
index 4a462e9..f06341f 100644
--- a/core/modules/migrate/tests/src/Unit/MigrateSourceTest.php
+++ b/core/modules/migrate/tests/src/Unit/MigrateSourceTest.php
@@ -422,7 +422,7 @@ public function testDefaultPropertiesValues() {
     $migration = $this->getMigration();
     $source = new StubSourceGeneratorPlugin([], '', [], $migration);
 
-    // Test the default value of the skipCount Value;
+    // Test the default value of the skipCount Value;.
     $this->assertTrue($source->getSkipCount());
     $this->assertTrue($source->getCacheCounts());
     $this->assertTrue($source->getTrackChanges());
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 e5d63c4..ff7360c 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
@@ -70,7 +70,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 a4937f7..cb73ff1 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 5c86a13..1e3bc4d 100644
--- a/core/modules/node/node.module
+++ b/core/modules/node/node.module
@@ -647,7 +647,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(
@@ -1159,7 +1159,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 193e479..8132660 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 2828030..dfc7b2c 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 d161a0a..2cc5df1 100644
--- a/core/modules/node/src/Plugin/Search/NodeSearch.php
+++ b/core/modules/node/src/Plugin/Search/NodeSearch.php
@@ -719,7 +719,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 8686415..5260598 100644
--- a/core/modules/node/src/Plugin/migrate/source/d6/Node.php
+++ b/core/modules/node/src/Plugin/migrate/source/d6/Node.php
@@ -113,7 +113,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 097655a..84afe29 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 ce267e6..3a5600c 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:ASC' => $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 74e2340..1ca4d30 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 1ee5bc2..452be8e 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 0609b7b..3911d61 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/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 00cff3b..0d861b0 100644
--- a/core/modules/node/tests/modules/node_test/node_test.module
+++ b/core/modules/node/tests/modules/node_test/node_test.module
@@ -124,7 +124,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/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/outside_in/outside_in.module b/core/modules/outside_in/outside_in.module
index a7fab7b..c68bf13 100644
--- a/core/modules/outside_in/outside_in.module
+++ b/core/modules/outside_in/outside_in.module
@@ -115,7 +115,6 @@ function outside_in_toolbar_alter(&$items) {
     // Set a class on items to mark whether they should be active in edit mode.
     // @todo Create a dynamic method for modules to set their own items.
     //   https://www.drupal.org/node/2784589
-
     $edit_mode_items = ['contextual', 'block_place'];
     foreach ($items as $key => $item) {
       if (!in_array($key, $edit_mode_items) && (!isset($items[$key]['#wrapper_attributes']['class']) || !in_array('hidden', $items[$key]['#wrapper_attributes']['class']))) {
diff --git a/core/modules/page_cache/src/StackMiddleware/PageCache.php b/core/modules/page_cache/src/StackMiddleware/PageCache.php
index 3a031db..001eba2 100644
--- a/core/modules/page_cache/src/StackMiddleware/PageCache.php
+++ b/core/modules/page_cache/src/StackMiddleware/PageCache.php
@@ -160,8 +160,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 28c582d..3decf1b 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..28fba43 100644
--- a/core/modules/quickedit/js/models/EntityModel.js
+++ b/core/modules/quickedit/js/models/EntityModel.js
@@ -643,7 +643,7 @@
      */
     sync: function () {
       // We don't use REST updates to sync.
-      return;
+
     }
 
   }, /** @lends Drupal.quickedit.EntityModel */{
diff --git a/core/modules/quickedit/js/models/FieldModel.js b/core/modules/quickedit/js/models/FieldModel.js
index 8aeff10..088d1dc 100644
--- a/core/modules/quickedit/js/models/FieldModel.js
+++ b/core/modules/quickedit/js/models/FieldModel.js
@@ -148,7 +148,7 @@
      */
     sync: function () {
       // We don't use REST updates to sync.
-      return;
+
     },
 
     /**
@@ -223,11 +223,11 @@
         .forEach(function (field) {
           // Ignore the current field.
           if (field === currentField) {
-            return;
+
           }
           // Also ignore other fields with the same view mode.
           else if (field.get('fieldID') === currentField.get('fieldID')) {
-            return;
+
           }
           else {
             otherViewModes.push(field.getViewMode());
diff --git a/core/modules/quickedit/js/views/AppView.js b/core/modules/quickedit/js/views/AppView.js
index b09a110..a0afdac 100644
--- a/core/modules/quickedit/js/views/AppView.js
+++ b/core/modules/quickedit/js/views/AppView.js
@@ -527,7 +527,7 @@
         .forEach(function (field) {
           // Ignore the field that was already updated.
           if (field === updatedField) {
-            return;
+
           }
           // If this other instance of the field has the same view mode, we can
           // update it easily.
diff --git a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
index 2a91fec..6255b08 100644
--- a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
+++ b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php
@@ -86,7 +86,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')));
@@ -186,7 +186,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', '', $post, ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_ajax']]);
     $ajax_commands = Json::decode($response);
@@ -320,7 +320,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 0b3820c..37be83c 100644
--- a/core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php
+++ b/core/modules/quickedit/tests/src/Kernel/EditorSelectionTest.php
@@ -70,7 +70,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 7fdc8fb..71f3ea6 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 d8aa1b1..7218a8e 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 d654c81..7c82789 100644
--- a/core/modules/responsive_image/responsive_image.module
+++ b/core/modules/responsive_image/responsive_image.module
@@ -147,7 +147,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 aef5ec0..841ca0d 100644
--- a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
+++ b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
@@ -471,7 +471,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 95dc475..0e0b8bc 100644
--- a/core/modules/rest/src/Tests/NodeTest.php
+++ b/core/modules/rest/src/Tests/NodeTest.php
@@ -186,7 +186,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/RESTTestBase.php b/core/modules/rest/src/Tests/RESTTestBase.php
index b939bae..a04b56f 100644
--- a/core/modules/rest/src/Tests/RESTTestBase.php
+++ b/core/modules/rest/src/Tests/RESTTestBase.php
@@ -372,7 +372,7 @@ protected function enableService($resource_type, $method = 'GET', $format = NULL
     if ($resource_type) {
       // Enable REST API for this entity type.
       $resource_config_id = str_replace(':', '.', $resource_type);
-      // get entity by id
+      // Get entity by id.
       /** @var \Drupal\rest\RestResourceConfigInterface $resource_config */
       $resource_config = $this->resourceConfigStorage->load($resource_config_id);
       if (!$resource_config) {
diff --git a/core/modules/rest/src/Tests/UpdateTest.php b/core/modules/rest/src/Tests/UpdateTest.php
index 287c2df..07fad40 100644
--- a/core/modules/rest/src/Tests/UpdateTest.php
+++ b/core/modules/rest/src/Tests/UpdateTest.php
@@ -359,7 +359,7 @@ protected function patchEntity(EntityInterface $entity, array $read_only_fields,
       if ($format !== 'hal_json') {
         // The default normalizer always keeps fields, even if they are unset
         // here because they should be omitted during a PATCH request. Therefore
-        // manually strip them
+        // manually strip them.
         // @see \Drupal\Core\Entity\ContentEntityBase::__unset()
         // @see \Drupal\serialization\Normalizer\EntityNormalizer::normalize()
         // @see \Drupal\hal\Normalizer\ContentEntityNormalizer::normalize()
diff --git a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
index 4c004fc..d6f7e2f 100644
--- a/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
+++ b/core/modules/rest/src/Tests/Views/StyleSerializerTest.php
@@ -117,7 +117,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 c36aa44..90ee255 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 48f8bb6..0bd277d 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 f67637f..144da6e 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 9ca87d6..c310ec2 100644
--- a/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
+++ b/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
@@ -109,7 +109,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 e133101..a9b207d 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 f8b3ccb..4ac470c 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 fddf08a..cdffd26 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 b4776d5..a740950 100644
--- a/core/modules/simpletest/simpletest.module
+++ b/core/modules/simpletest/simpletest.module
@@ -349,7 +349,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);
 
@@ -528,7 +528,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 f1f3a11..063699e 100644
--- a/core/modules/simpletest/src/InstallerTestBase.php
+++ b/core/modules/simpletest/src/InstallerTestBase.php
@@ -127,7 +127,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 fbf58a5..992332c 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 3b2061e..bdc28ab 100644
--- a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
+++ b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php
@@ -125,7 +125,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\KernelTests\KernelTestBaseTest',
diff --git a/core/modules/simpletest/src/Tests/SimpleTestTest.php b/core/modules/simpletest/src/Tests/SimpleTestTest.php
index ff20f5e..d044393 100644
--- a/core/modules/simpletest/src/Tests/SimpleTestTest.php
+++ b/core/modules/simpletest/src/Tests/SimpleTestTest.php
@@ -185,7 +185,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 3622642..cecc6cf 100644
--- a/core/modules/simpletest/src/WebTestBase.php
+++ b/core/modules/simpletest/src/WebTestBase.php
@@ -531,7 +531,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 df98377..aa934b9 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\FunctionalTests\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 7831c38..e518d1f 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 a06810e..ef0fe16 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 37b5ea1..8afe2b8 100644
--- a/core/modules/system/src/Form/ThemeSettingsForm.php
+++ b/core/modules/system/src/Form/ThemeSettingsForm.php
@@ -113,7 +113,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();
@@ -141,7 +141,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'),
@@ -149,7 +149,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 e07204c..729a1c5 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/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/FileTransfer/FileTransferTest.php b/core/modules/system/src/Tests/FileTransfer/FileTransferTest.php
index e8a6789..e11d328 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 5d8a180..86ab535 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 53ede0d..3a08ba3 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 84dfad3..2c23e74 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/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/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/Pager/PagerTest.php b/core/modules/system/src/Tests/Pager/PagerTest.php
index 4c13c0f..d085442 100644
--- a/core/modules/system/src/Tests/Pager/PagerTest.php
+++ b/core/modules/system/src/Tests/Pager/PagerTest.php
@@ -161,7 +161,7 @@ protected function testMultiplePagers() {
 
     // We loop through the page with the test data query parameters, and check
     // that the active page for each pager element has the expected page
-    // (1-indexed) and resulting query parameter
+    // (1-indexed) and resulting query parameter.
     foreach ($test_data as $data) {
       $input_query = str_replace(' ', '%20', $data['input_query']);
       $this->drupalGet($GLOBALS['base_root'] . parse_url($this->getUrl())['path'] . $input_query, ['external' => TRUE]);
diff --git a/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php b/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php
index b881386..c1101e6 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/Session/SessionTest.php b/core/modules/system/src/Tests/Session/SessionTest.php
index 139fba5..6e076dc 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 e7f17d7..eaf2d40 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();
     $block->disable()->save();
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 f54c651..f00d03f 100644
--- a/core/modules/system/src/Tests/System/ResponseGeneratorTest.php
+++ b/core/modules/system/src/Tests/System/ResponseGeneratorTest.php
@@ -40,13 +40,13 @@ 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'));
@@ -60,7 +60,7 @@ function testGeneratorHeaderAdded() {
     $resource_config->set('configuration', $configuration)->save();
     $this->rebuildCache();
 
-    // 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' => 'hal_json']), 'GET');
     $this->assertResponse(200);
     $this->assertEqual('application/hal+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 059d6ad..73ac065 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), 8, '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 afced8e..406f8e9 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 b80ef82..b4585e7 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 e8f45eb..aa27f73 100644
--- a/core/modules/system/system.install
+++ b/core/modules/system/system.install
@@ -26,7 +26,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'),
@@ -98,7 +98,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;
       }
@@ -151,7 +151,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') {
@@ -350,7 +350,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'),
@@ -734,7 +734,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(
@@ -799,7 +799,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());
 
@@ -871,7 +871,7 @@ function system_requirements($phase) {
     }
   }
 
-  // Warning for httpoxy on IIS with affected PHP versions
+  // Warning for httpoxy on IIS with affected PHP versions.
   // @see https://www.drupal.org/node/2783079
   if (strpos($software, 'Microsoft-IIS') !== FALSE
     && (
diff --git a/core/modules/system/system.module b/core/modules/system/system.module
index 3c858f9..933c4c6 100644
--- a/core/modules/system/system.module
+++ b/core/modules/system/system.module
@@ -728,7 +728,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 4a271b0..c3e9cc0 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 b0c8cbf..62dec7e 100644
--- a/core/modules/system/tests/modules/entity_test/entity_test.module
+++ b/core/modules/system/tests/modules/entity_test/entity_test.module
@@ -142,7 +142,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 10c0810..552d37d 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 aebb473..8103585 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/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php b/core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php
index 59d7b01..82a1e95 100644
--- a/core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php
+++ b/core/modules/system/tests/src/Kernel/Migrate/d7/MigrateSystemConfigurationTest.php
@@ -19,8 +19,8 @@ class MigrateSystemConfigurationTest extends MigrateDrupal7TestBase {
     ],
     'system.cron' => [
       'threshold' => [
-        // autorun is not handled by the migration.
-        // 'autorun' => 0,
+        // Autorun is not handled by the migration.
+        // 'autorun' => 0,.
         'requirements_warning' => 172800,
         'requirements_error' => 1209600,
       ],
@@ -66,7 +66,7 @@ class MigrateSystemConfigurationTest extends MigrateDrupal7TestBase {
     ],
     'system.maintenance' => [
       'message' => 'This is a custom maintenance mode message.',
-      // langcode is not handled by the migration.
+      // Langcode is not handled by the migration.
       'langcode' => 'en',
     ],
     'system.performance' => [
@@ -77,7 +77,7 @@ class MigrateSystemConfigurationTest extends MigrateDrupal7TestBase {
       ],
       'css' => [
         'preprocess' => TRUE,
-        // gzip is not handled by the migration.
+        // Gzip is not handled by the migration.
         'gzip' => TRUE,
       ],
       // fast_404 is not handled by the migration.
@@ -89,7 +89,7 @@ class MigrateSystemConfigurationTest extends MigrateDrupal7TestBase {
       ],
       'js' => [
         'preprocess' => FALSE,
-        // gzip is not handled by the migration.
+        // Gzip is not handled by the migration.
         'gzip' => TRUE,
       ],
       // stale_file_threshold is not handled by the migration.
@@ -109,7 +109,7 @@ class MigrateSystemConfigurationTest extends MigrateDrupal7TestBase {
       'langcode' => 'en',
     ],
     'system.site' => [
-      // uuid is not handled by the migration.
+      // Uuid is not handled by the migration.
       'uuid' => '',
       'name' => 'The Site Name',
       'mail' => 'joseph@flattandsons.com',
@@ -121,7 +121,7 @@ class MigrateSystemConfigurationTest extends MigrateDrupal7TestBase {
       ],
       'admin_compact_mode' => TRUE,
       'weight_select_max' => 40,
-      // langcode and default_langcode are not handled by the migration.
+      // Langcode and default_langcode are not handled by the migration.
       'langcode' => 'en',
       'default_langcode' => 'en',
     ],
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 513ed7e..4044447 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 0158881..d762047 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 40c8fc7..45682e4 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 00bc589..6727cba 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 4737b98..f2a301e 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 7dff50a..894c452 100644
--- a/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php
+++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyIndexTidUiTest.php
@@ -60,7 +60,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 f7452b0..9a6f35f 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 993346a..09698d5 100644
--- a/core/modules/text/src/Tests/TextFieldTest.php
+++ b/core/modules/text/src/Tests/TextFieldTest.php
@@ -30,7 +30,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 906b461..a2345ee 100644
--- a/core/modules/text/text.module
+++ b/core/modules/text/text.module
@@ -66,7 +66,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.
@@ -97,7 +97,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 a927e89..5f30d7c 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 1b2f648..3257130 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 88cf378..ee93efa 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 39b6944..d816351 100644
--- a/core/modules/update/src/Tests/UpdateUploadTest.php
+++ b/core/modules/update/src/Tests/UpdateUploadTest.php
@@ -158,7 +158,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 f45b589..e1c77d5 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 81a98ae..5fa1622 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 43b29e5..1031d79 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 fa71464..03d6699 100644
--- a/core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraintValidator.php
+++ b/core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraintValidator.php
@@ -31,23 +31,23 @@ public function validate($items, Constraint $constraint) {
     }
     if (preg_match('/[^\x{80}-\x{F7} a-z0-9@+_.\'-]/i', $name)
       || preg_match(
-        // Non-printable ISO-8859-1 + NBSP
+        // Non-printable ISO-8859-1 + NBSP.
         '/[\x{80}-\x{A0}' .
-        // Soft-hyphen
+        // Soft-hyphen.
         '\x{AD}' .
-        // Various space characters
+        // Various space characters.
         '\x{2000}-\x{200F}' .
-        // Bidirectional text overrides
+        // Bidirectional text overrides.
         '\x{2028}-\x{202F}' .
-        // Various text hinting characters
+        // Various text hinting characters.
         '\x{205F}-\x{206F}' .
-        // Byte order mark
+        // Byte order mark.
         '\x{FEFF}' .
-        // Full-width latin
+        // Full-width latin.
         '\x{FF01}-\x{FF60}' .
-        // Replacement characters
+        // Replacement characters.
         '\x{FFF9}-\x{FFFD}' .
-        // NULL byte and control characters
+        // NULL byte and control characters.
         '\x{0}-\x{1F}]/u',
         $name)
     ) {
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 fa61dbf..e8e57ad 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 e241e87..0317ae6 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 8d4a22b..0eedff6 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 dbb3002..b71e27e 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 af00c74..9c88dda 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 d154030..d9665d4 100644
--- a/core/modules/user/src/Tests/UserSearchTest.php
+++ b/core/modules/user/src/Tests/UserSearchTest.php
@@ -72,7 +72,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 3aa5f93..d26fc3f 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 5b6e95d..4b829ad 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/Plugin/migrate/source/ProfileFieldTest.php b/core/modules/user/tests/src/Kernel/Plugin/migrate/source/ProfileFieldTest.php
index c321185..ddd7438 100644
--- a/core/modules/user/tests/src/Kernel/Plugin/migrate/source/ProfileFieldTest.php
+++ b/core/modules/user/tests/src/Kernel/Plugin/migrate/source/ProfileFieldTest.php
@@ -104,7 +104,7 @@ public function providerSource() {
 
     // Expected options are:
     //  for "checkbox" fields - array with NULL options
-    //  for "selection" fields - options in both keys and values
+    //  for "selection" fields - options in both keys and values.
     $expected_field_options = [
       '',
       '',
diff --git a/core/modules/user/tests/src/Kernel/UserValidationTest.php b/core/modules/user/tests/src/Kernel/UserValidationTest.php
index b27b00f..e8fa077 100644
--- a/core/modules/user/tests/src/Kernel/UserValidationTest.php
+++ b/core/modules/user/tests/src/Kernel/UserValidationTest.php
@@ -40,23 +40,23 @@ 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'),
       'foo+bar'                => array('Valid username', 'assertNull'), // '+' symbol is allowed
-      'ᚠᛇᚻ᛫ᛒᛦᚦ'                => 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 69edf3b..c1ccb61 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
@@ -239,7 +239,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 d4a093e..f6931b1 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 61def5a..5080feb 100644
--- a/core/modules/views/src/EntityViewsData.php
+++ b/core/modules/views/src/EntityViewsData.php
@@ -464,7 +464,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.
@@ -507,7 +506,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 bacd554..17b9637 100644
--- a/core/modules/views/src/Form/ViewsExposedForm.php
+++ b/core/modules/views/src/Form/ViewsExposedForm.php
@@ -69,7 +69,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 a3c4834..4b928e4 100644
--- a/core/modules/views/src/ManyToOneHelper.php
+++ b/core/modules/views/src/ManyToOneHelper.php
@@ -72,7 +72,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');
     }
@@ -118,7 +118,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;
@@ -158,7 +158,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)) {
@@ -331,7 +331,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 b6b5a5b..0808b1d 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 6d5aec1..f503fc9 100644
--- a/core/modules/views/src/Plugin/views/PluginBase.php
+++ b/core/modules/views/src/Plugin/views/PluginBase.php
@@ -351,7 +351,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 12f417c..8d4aa4a 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 7abd1df..71c8a1b 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 b314836..15fb765 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 87465ca..51af681 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 94e9200..2dfb936 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 d79b75b..994f03c 100644
--- a/core/modules/views/src/Plugin/views/display/Page.php
+++ b/core/modules/views/src/Plugin/views/display/Page.php
@@ -471,7 +471,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 3654d63..63e9645 100644
--- a/core/modules/views/src/Plugin/views/display/PathPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display/PathPluginBase.php
@@ -286,7 +286,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);
@@ -328,7 +327,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 62cb79c..3ab47f2 100644
--- a/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php
+++ b/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php
@@ -198,7 +198,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()) {
@@ -306,7 +306,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/EntityField.php b/core/modules/views/src/Plugin/views/field/EntityField.php
index 4c8032d..633868f 100644
--- a/core/modules/views/src/Plugin/views/field/EntityField.php
+++ b/core/modules/views/src/Plugin/views/field/EntityField.php
@@ -188,7 +188,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;
       }
@@ -624,7 +624,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 c8e4d7a..98ecafc 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>',
@@ -1483,7 +1481,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);
     }
@@ -1547,7 +1545,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,
@@ -1791,7 +1789,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 7078032..57a4e36 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.
   public $no_operator = TRUE;
-  // Whether to accept NULL as a false value or not
+  // Whether to accept NULL as a false value or not.
   public $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 1b4ab9c..5ae3365 100644
--- a/core/modules/views/src/Plugin/views/filter/Combine.php
+++ b/core/modules/views/src/Plugin/views/filter/Combine.php
@@ -30,7 +30,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) {
diff --git a/core/modules/views/src/Plugin/views/filter/Date.php b/core/modules/views/src/Plugin/views/filter/Date.php
index 84a1c42..a5c0e6e 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;
@@ -145,7 +145,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;
   }
@@ -155,8 +155,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.
@@ -167,7 +167,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 5c2a8d8..942014f 100644
--- a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
+++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
@@ -724,7 +724,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';
@@ -989,7 +988,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) {
@@ -1005,8 +1004,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();
@@ -1438,7 +1436,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 aa3e21f..d06b6ff 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 {
@@ -308,11 +308,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 7fa1fbc..69fa441 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 e7720df..6931a00 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 618b584..d01e690 100644
--- a/core/modules/views/src/Plugin/views/filter/StringFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/StringFilter.php
@@ -19,7 +19,7 @@ class StringFilter extends FilterPluginBase {
    */
   const WORDS_PATTERN = '/ (-?)("[^"]+"|[^" ]+)/i';
 
-  // exposed filter options
+  // Exposed filter options.
   protected $alwaysMultiple = TRUE;
 
   protected function defineOptions() {
@@ -116,7 +116,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(
@@ -195,7 +195,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 {
@@ -275,7 +275,7 @@ protected function opContainsWord($field) {
     preg_match_all(static::WORDS_PATTERN, ' ' . $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;
@@ -291,7 +291,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 37c1e06..aa076ff 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/pager/Mini.php b/core/modules/views/src/Plugin/views/pager/Mini.php
index c6520f4..e1c8c24 100644
--- a/core/modules/views/src/Plugin/views/pager/Mini.php
+++ b/core/modules/views/src/Plugin/views/pager/Mini.php
@@ -47,7 +47,7 @@ public function summaryTitle() {
   public function query() {
     parent::query();
 
-    // Only modify the query if we don't want to do a total row count
+    // Only modify the query if we don't want to do a total row count.
     if (!$this->view->get_total_rows) {
       // Don't query for the next page if we have a pager that has a limited
       // amount of pages.
@@ -72,7 +72,7 @@ public function useCountQuery() {
    * {@inheritdoc}
    */
   public function postExecute(&$result) {
-    // Only modify the result if we didn't do a total row count
+    // Only modify the result if we didn't do a total row count.
     if (!$this->view->get_total_rows) {
       $this->total_items = $this->getCurrentPage() * $this->getItemsPerPage() + count($result);
       // query() checks if we need a next link by setting limit 1 record past
diff --git a/core/modules/views/src/Plugin/views/query/QueryPluginBase.php b/core/modules/views/src/Plugin/views/query/QueryPluginBase.php
index d4e1b23..dddbb02 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 cfe593c..0dd29bc 100644
--- a/core/modules/views/src/Plugin/views/query/Sql.php
+++ b/core/modules/views/src/Plugin/views/query/Sql.php
@@ -157,7 +157,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,
@@ -165,7 +165,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,
@@ -487,7 +487,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 . '__';
         }
@@ -524,7 +524,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');
     }
@@ -573,10 +573,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).
@@ -667,7 +665,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;
 
@@ -678,7 +675,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;
       }
@@ -776,14 +773,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.
@@ -1230,12 +1226,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';
     }
@@ -1316,7 +1312,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_') {
@@ -1443,7 +1439,7 @@ public 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);
@@ -1792,7 +1788,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';
@@ -1885,7 +1881,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 42d6fa1..79f3ffc 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 dc23a68..ef7afc2 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 97122b1..660091d 100644
--- a/core/modules/views/src/Plugin/views/sort/SortPluginBase.php
+++ b/core/modules/views/src/Plugin/views/sort/SortPluginBase.php
@@ -94,7 +94,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 a7b1917..4292770 100644
--- a/core/modules/views/src/Plugin/views/style/StylePluginBase.php
+++ b/core/modules/views/src/Plugin/views/style/StylePluginBase.php
@@ -570,7 +570,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) {
@@ -702,7 +702,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 068ed89..d9c5e8d 100644
--- a/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
+++ b/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
@@ -700,7 +700,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(),
@@ -709,7 +709,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);
 
@@ -719,7 +719,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);
     }
@@ -751,13 +751,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 e852069..53a9ea5 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/MiniPagerTest.php b/core/modules/views/src/Tests/Plugin/MiniPagerTest.php
index 1a73b69..aec6e7b 100644
--- a/core/modules/views/src/Tests/Plugin/MiniPagerTest.php
+++ b/core/modules/views/src/Tests/Plugin/MiniPagerTest.php
@@ -70,7 +70,7 @@ public function testMiniPagerRender() {
     $this->assertText($this->nodes[18]->label());
     $this->assertText($this->nodes[19]->label());
 
-    // Test @total value in result summary
+    // Test @total value in result summary.
     $view = Views::getView('test_mini_pager');
     $view->setDisplay('page_4');
     $this->executeView($view);
diff --git a/core/modules/views/src/Tests/Plugin/PagerTest.php b/core/modules/views/src/Tests/Plugin/PagerTest.php
index f922748..fb18627 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 786b10f..5a2f3e6 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.
    *
@@ -680,7 +677,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]);
@@ -688,7 +685,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
@@ -1053,7 +1049,7 @@ protected function _buildArguments() {
       return TRUE;
     }
 
-    // build arguments.
+    // Build arguments.
     $position = -1;
     $substitutions = array();
     $status = TRUE;
@@ -1078,11 +1074,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;
         }
 
@@ -1100,17 +1096,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;
       }
@@ -1119,7 +1115,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;
     }
@@ -1154,7 +1150,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;
       }
     }
@@ -1275,7 +1271,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();
     }
 
@@ -1311,7 +1307,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.
@@ -1613,7 +1609,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();
@@ -1675,7 +1671,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();
   }
 
@@ -1683,9 +1679,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);
     }
@@ -2272,10 +2267,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 4689479..1d33865 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 c1d04cf..6d937f6 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 be8a4f1..02a847c 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
@@ -831,7 +831,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 c4c978a..441ebe8 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',
@@ -161,7 +161,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);
@@ -191,7 +191,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);
@@ -216,7 +216,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',
@@ -235,7 +235,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 5dd47ec..b7119da 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 4a13754..4c256c4 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 fa264bd..92bd749 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/EntityViewsDataTest.php b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
index 60ba8e5..8c024d6 100644
--- a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
+++ b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
@@ -161,7 +161,7 @@ protected function setupBaseFields(array $base_fields) {
       ->setTranslatable(TRUE)
       ->setSetting('max_length', 255);
 
-    // A base field with cardinality > 1
+    // A base field with cardinality > 1.
     $base_fields['string']  = BaseFieldDefinition::create('string')
       ->setLabel('Strong')
       ->setTranslatable(TRUE)
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 bf4b122..d43cb8e 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 0b33a58..83b05b1 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;
@@ -363,14 +363,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 fe64ec2..d0e4b62 100644
--- a/core/modules/views/tests/src/Unit/ViewExecutableTest.php
+++ b/core/modules/views/tests/src/Unit/ViewExecutableTest.php
@@ -312,7 +312,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 ed9f2db..f17cd01 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 e1a4d8c..93ad2d3 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 8dcdf67..5d581dc 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/src/Form/Ajax/AddHandler.php b/core/modules/views_ui/src/Form/Ajax/AddHandler.php
index ada0ccd..c4ffc07 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 819cb75..2c73a1b 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 0c10fb1..1720349 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 e8eedd7..de45a83 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 93bd049..54980f7 100644
--- a/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
+++ b/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
@@ -96,7 +96,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)) {
@@ -147,7 +147,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 08fcae8..f38c25d 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 7f5f125..c0cdeb9 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/HandlerTest.php b/core/modules/views_ui/src/Tests/HandlerTest.php
index bc61a37..862f4b1 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 530a47f..e7e9d40 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 7b77929..5ade5d4 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 cb222b0..2c20708 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 165e866..cd33293 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',
@@ -105,7 +105,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/scripts/js/babel-es6-build.js b/core/scripts/js/babel-es6-build.js
index e073f6a..a71a7be 100644
--- a/core/scripts/js/babel-es6-build.js
+++ b/core/scripts/js/babel-es6-build.js
@@ -38,8 +38,7 @@ const changedOrAdded = (filePath) => {
 
     log(`'${filePath}' is being processed.`);
   });
-};
-
+}
 const fileMatch = './**/*.es6.js';
 const globOptions = {
   ignore: 'node_modules/**'
@@ -49,6 +48,6 @@ const processFiles = (error, filePaths) => {
     process.exitCode = 1;
   }
   filePaths.forEach(changedOrAdded);
-};
+}
 glob(fileMatch, globOptions, processFiles);
 process.exitCode = 0;
diff --git a/core/scripts/js/babel-es6-watch.js b/core/scripts/js/babel-es6-watch.js
index d614774..f632029 100644
--- a/core/scripts/js/babel-es6-watch.js
+++ b/core/scripts/js/babel-es6-watch.js
@@ -43,15 +43,13 @@ const changedOrAdded = (filePath) => {
     fs.writeFileSync(`${fileName}.js`, addSourceMappingUrl(result.code, mapLoc));
 
     log(`'${filePath}' has been changed.`);
-  });
-};
-
+})
+}
 const unlinkHandler = (err) => {
   if (err) {
     log(err);
   }
-};
-
+}
 watcher
   .on('add', filePath => changedOrAdded(filePath))
   .on('change', filePath => changedOrAdded(filePath))
@@ -59,9 +57,11 @@ watcher
     const fileName = filePath.slice(0, -7);
     fs.stat(`${fileName}.js`, () => {
       fs.unlink(`${fileName}.js`, unlinkHandler);
-    });
-    fs.stat(`${fileName}.js.map`, () => {
+})
+fs.stat(`${fileName}.js.map`, () => {
       fs.unlink(`${fileName}.js.map`, unlinkHandler);
-    });
-  })
-  .on('ready', () => log(`Watching '${fileMatch}' for changes.`));
+})
+})
+.
+on('ready', () = > log(`Watching '${fileMatch}' for changes.`)
+)
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/Common/SizeTest.php b/core/tests/Drupal/KernelTests/Core/Common/SizeTest.php
index 2bcee75..55f746c 100644
--- a/core/tests/Drupal/KernelTests/Core/Common/SizeTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Common/SizeTest.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/tests/Drupal/KernelTests/Core/Config/ConfigDiffTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigDiffTest.php
index 409b794..97fe200 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() {
       [$change_key . ': ' . $original_data[$change_key]],
       [$change_key . ': ' . $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);
@@ -62,7 +62,7 @@ function testDiff() {
       FALSE
     );
 
-    // 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 ae3abdd..7b19db2 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 d703f9d..ea74178 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 c354c82..fceed3b 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 8641fd3..b44a766 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php
@@ -312,7 +312,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.');
@@ -752,7 +751,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 64e95d0..ac887f3 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 98849bb..3cb23bd 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->assertCount(1, $people, '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->assertCount(1, $people, 'Returned the correct number of rows.');
@@ -172,7 +172,7 @@ function testConditionSubquerySelect4() {
     // FROM {test} t
     // WHERE (SELECT AVG(tt.priority) AS expression FROM {test_task} tt WHERE (tt.pid = t.id))
     //   BETWEEN (SELECT MIN(tt2.priority) AS expression FROM {test_task} tt2 WHERE (tt2.pid <> t.id))
-    //       AND (SELECT AVG(tt3.priority) AS expression FROM {test_task} tt3 WHERE (tt3.pid <> t.id));
+    //       AND (SELECT AVG(tt3.priority) AS expression FROM {test_task} tt3 WHERE (tt3.pid <> t.id));.
     $people = $select->execute()->fetchCol();
     $this->assertEquals(['George', 'Paul'], $people, 'Returned George and Paul.', 0.0, 10, TRUE);
   }
@@ -195,7 +195,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->assertCount(2, $people, 'Returned the correct number of rows.');
diff --git a/core/tests/Drupal/KernelTests/Core/DrupalKernel/ServiceDestructionTest.php b/core/tests/Drupal/KernelTests/Core/DrupalKernel/ServiceDestructionTest.php
index f4fe094..1bb5520 100644
--- a/core/tests/Drupal/KernelTests/Core/DrupalKernel/ServiceDestructionTest.php
+++ b/core/tests/Drupal/KernelTests/Core/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/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php b/core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php
index 22cae65..e1eabb1 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 ec81f7b..153513a 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',
@@ -318,7 +318,7 @@ public function testEntityAutocompleteAccess() {
   public function testEntityAutocompleteIdInput() {
     /** @var \Drupal\Core\Form\FormBuilderInterface $form_builder */
     $form_builder = $this->container->get('form_builder');
-    //$form = $form_builder->getForm($this);
+    // $form = $form_builder->getForm($this);
     $form_state = (new FormState())
       ->setMethod('GET')
       ->setValues([
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php
index 23cf034..d243798 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 56af888..0c4917f 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php
@@ -210,7 +210,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 819445d..00f25d0 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 8c79c5c..f2ed55b 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 ed6140d..15e13f3 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php
@@ -745,7 +745,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 449f3f2..a31629b 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php
@@ -483,7 +483,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';
@@ -497,7 +496,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(
@@ -510,7 +509,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/Core/File/DirectoryTest.php b/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php
index d7e7c38..1071f48 100644
--- a/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/DirectoryTest.php
@@ -72,7 +72,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/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php b/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php
index 9bfe681..a7be4d4 100644
--- a/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php
@@ -48,7 +48,7 @@ public function testFileMimeTypeDetection() {
         $this->assertIdentical($output, $expected, format_string('Mimetype for %input is %output (expected: %expected).', array('%input' => $prefix . $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/tests/Drupal/KernelTests/Core/File/ReadOnlyStreamWrapperTest.php b/core/tests/Drupal/KernelTests/Core/File/ReadOnlyStreamWrapperTest.php
index ae19e02..058694d 100644
--- a/core/tests/Drupal/KernelTests/Core/File/ReadOnlyStreamWrapperTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/ReadOnlyStreamWrapperTest.php
@@ -36,49 +36,49 @@ function testReadOnlyBehavior() {
     // Checks that the stream wrapper type is declared as local.
     $this->assertSame(1, $type & StreamWrapperInterface::LOCAL);
 
-    // 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.');
 
@@ -87,7 +87,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/tests/Drupal/KernelTests/Core/File/UnmanagedCopyTest.php b/core/tests/Drupal/KernelTests/Core/File/UnmanagedCopyTest.php
index 6b2fbed..47c407a 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UnmanagedCopyTest.php
+++ b/core/tests/Drupal/KernelTests/Core/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/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteRecursiveTest.php b/core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteRecursiveTest.php
index feed31b..aa9ff86 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteRecursiveTest.php
+++ b/core/tests/Drupal/KernelTests/Core/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/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteTest.php b/core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteTest.php
index 55e4536..e5e66ea 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteTest.php
+++ b/core/tests/Drupal/KernelTests/Core/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/tests/Drupal/KernelTests/Core/File/UnmanagedMoveTest.php b/core/tests/Drupal/KernelTests/Core/File/UnmanagedMoveTest.php
index 87a29f4..a6cfd6f 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UnmanagedMoveTest.php
+++ b/core/tests/Drupal/KernelTests/Core/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/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php b/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php
index 5494975..d30f431 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php
+++ b/core/tests/Drupal/KernelTests/Core/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/tests/Drupal/KernelTests/Core/KeyValueStore/StorageTestBase.php b/core/tests/Drupal/KernelTests/Core/KeyValueStore/StorageTestBase.php
index 48e047d..8b65b94 100644
--- a/core/tests/Drupal/KernelTests/Core/KeyValueStore/StorageTestBase.php
+++ b/core/tests/Drupal/KernelTests/Core/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/tests/Drupal/KernelTests/Core/Menu/MenuLinkTreeTest.php b/core/tests/Drupal/KernelTests/Core/Menu/MenuLinkTreeTest.php
index 1efb14b..bbaace5 100644
--- a/core/tests/Drupal/KernelTests/Core/Menu/MenuLinkTreeTest.php
+++ b/core/tests/Drupal/KernelTests/Core/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/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php b/core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php
index cb1d74d..3f7232a 100644
--- a/core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php
@@ -75,7 +75,7 @@ public function testSimpleHierarchy() {
     // <tools>
     // - test1
     // -- test2
-    // --- test3
+    // --- test3.
     $this->addMenuLink('test1', '');
     $this->assertMenuLink('test1', array('has_children' => 0, 'depth' => 1));
 
@@ -100,8 +100,7 @@ public function testMenuLinkMoving() {
     // --- test3
     // - test4
     // -- test5
-    // --- test6
-
+    // --- test6.
     $this->addMenuLink('test1', '');
     $this->addMenuLink('test2', 'test1');
     $this->addMenuLink('test3', 'test2');
@@ -123,8 +122,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'));
@@ -141,8 +139,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'));
@@ -158,7 +155,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'));
@@ -175,7 +172,6 @@ public function testMenuDisabledChildLinks() {
     // <tools>
     // - test1
     // -- test2 (disabled)
-
     $this->addMenuLink('test1', '');
     $this->assertMenuLink('test1', array('has_children' => 0, 'depth' => 1));
 
@@ -197,7 +193,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++) {
@@ -293,7 +289,7 @@ public function testSubtreeHeight() {
     // - child1
     // -- child2
     // --- child3
-    // ---- child4
+    // ---- child4.
     $this->addMenuLink('root');
     $this->addMenuLink('child1', 'root');
     $this->addMenuLink('child2', 'child1');
@@ -315,7 +311,7 @@ public function testMenuRebuild() {
     // - child1
     // -- child2
     // --- child3
-    // ---- child4
+    // ---- child4.
     $this->addMenuLink('root');
     $this->addMenuLink('child1', 'root');
     $this->addMenuLink('child2', 'child1');
diff --git a/core/tests/Drupal/KernelTests/Core/Path/AliasTest.php b/core/tests/Drupal/KernelTests/Core/Path/AliasTest.php
index ad1e6d4..0a1ebd8 100644
--- a/core/tests/Drupal/KernelTests/Core/Path/AliasTest.php
+++ b/core/tests/Drupal/KernelTests/Core/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/tests/Drupal/KernelTests/Core/Plugin/Condition/RequestPathTest.php b/core/tests/Drupal/KernelTests/Core/Plugin/Condition/RequestPathTest.php
index 02f2a5d..991be2b 100644
--- a/core/tests/Drupal/KernelTests/Core/Plugin/Condition/RequestPathTest.php
+++ b/core/tests/Drupal/KernelTests/Core/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/tests/Drupal/KernelTests/Core/Render/Element/TableSortExtenderTest.php b/core/tests/Drupal/KernelTests/Core/Render/Element/TableSortExtenderTest.php
index a77d52e..9599c33 100644
--- a/core/tests/Drupal/KernelTests/Core/Render/Element/TableSortExtenderTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Render/Element/TableSortExtenderTest.php
@@ -19,7 +19,6 @@ class TableSortExtenderTest 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/tests/Drupal/KernelTests/Core/Routing/ContentNegotiationRoutingTest.php b/core/tests/Drupal/KernelTests/Core/Routing/ContentNegotiationRoutingTest.php
index 812e437..fd034a5 100644
--- a/core/tests/Drupal/KernelTests/Core/Routing/ContentNegotiationRoutingTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Routing/ContentNegotiationRoutingTest.php
@@ -46,8 +46,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'],
@@ -109,11 +108,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/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php b/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
index 710d82f..da60b84 100644
--- a/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
@@ -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/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php
index 4da96ba..c0121c9 100644
--- a/core/tests/Drupal/KernelTests/KernelTestBase.php
+++ b/core/tests/Drupal/KernelTests/KernelTestBase.php
@@ -536,7 +536,7 @@ protected function initFileCache() {
     // Provide a default configuration, if not set.
     if (!isset($configuration['default'])) {
       // @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 0b2f51e..f845129 100644
--- a/core/tests/Drupal/Tests/Component/Utility/XssTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/XssTest.php
@@ -569,7 +569,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 ca262c7..2f5f41d 100644
--- a/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
+++ b/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@@ -202,7 +202,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());
@@ -223,21 +223,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 121aebc..276b9a2 100644
--- a/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php
@@ -260,7 +260,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/Cache/BackendChainImplementationUnitTest.php b/core/tests/Drupal/Tests/Core/Cache/BackendChainImplementationUnitTest.php
index f035bde..27e8dac 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 f33e3c3..647718f 100644
--- a/core/tests/Drupal/Tests/Core/Database/ConditionTest.php
+++ b/core/tests/Drupal/Tests/Core/Database/ConditionTest.php
@@ -118,22 +118,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 cb73533..d965f30 100644
--- a/core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php
@@ -596,7 +596,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 4fbdba3..4ee2779 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 1ce87c5..f9a40a1 100644
--- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php
@@ -1151,7 +1151,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 aa45b3b..38b611a 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/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 5c378ed..f530880 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 a3835e1..0661fcc 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 530f603..365d151 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
@@ -202,7 +202,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[] = [
@@ -217,7 +217,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;
@@ -245,7 +245,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[] = [
@@ -260,7 +260,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;
@@ -277,7 +277,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[] = [
@@ -293,7 +293,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;
@@ -326,7 +326,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[] = [
@@ -342,7 +342,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;
@@ -378,12 +378,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[] = [
@@ -399,7 +399,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;
@@ -428,7 +428,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[] = [
@@ -444,7 +444,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;
@@ -472,7 +472,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']);
@@ -488,7 +488,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;
@@ -643,7 +643,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.
@@ -907,7 +907,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 51cfde8..593ff63 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.
@@ -168,8 +166,6 @@ public function providerTestRenderBasic() {
     ], 'foo&lt;script&gt;alert(&quot;bar&quot;);&lt;/script&gt;'];
 
     // 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',
@@ -257,8 +253,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'],
@@ -312,8 +306,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 2d733c3..62f0183 100644
--- a/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php
+++ b/core/tests/Drupal/Tests/Core/Routing/RedirectDestinationTest.php
@@ -102,7 +102,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 b0c1ca3..bd020c6 100644
--- a/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php
+++ b/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php
@@ -206,7 +206,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());
@@ -227,7 +226,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());
@@ -307,7 +305,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->any())
       ->method('processOutbound')
       ->with($this->anything());
@@ -400,7 +397,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());
@@ -418,7 +414,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());
@@ -458,7 +453,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 6647e5f..7be805f 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
@@ -62,7 +62,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];
