diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 5a1cfbe..193d120 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -103,7 +103,7 @@
 const DRUPAL_PHP_FUNCTION_PATTERN = '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*';
 
 /**
- * $config_directories key for active directory.
+ * Key in $config_directories for active directory.
  *
  * @see config_get_config_directory()
  *
@@ -115,14 +115,14 @@
 const CONFIG_ACTIVE_DIRECTORY = 'active';
 
 /**
- * $config_directories key for sync directory.
+ * Key in $config_directories for sync directory.
  *
  * @see config_get_config_directory()
  */
 const CONFIG_SYNC_DIRECTORY = 'sync';
 
 /**
- * $config_directories key for staging directory.
+ * Key in $config_directories for staging directory.
  *
  * @see config_get_config_directory()
  * @see CONFIG_SYNC_DIRECTORY
diff --git a/core/lib/Drupal/Core/Access/RouteProcessorCsrf.php b/core/lib/Drupal/Core/Access/RouteProcessorCsrf.php
index 9f2e7d4..ad22276 100644
--- a/core/lib/Drupal/Core/Access/RouteProcessorCsrf.php
+++ b/core/lib/Drupal/Core/Access/RouteProcessorCsrf.php
@@ -61,7 +61,7 @@ public function processOutbound($route_name, Route $route, array &$parameters, B
   }
 
   /**
-   * #lazy_builder callback; gets a CSRF token for the given path.
+   * Callback for #lazy_builder. Gets a CSRF token for the given path.
    *
    * @param string $path
    *   The path to get a CSRF token for.
diff --git a/core/lib/Drupal/Core/Field/FieldConfigBase.php b/core/lib/Drupal/Core/Field/FieldConfigBase.php
index e53e84b..84d3cee 100644
--- a/core/lib/Drupal/Core/Field/FieldConfigBase.php
+++ b/core/lib/Drupal/Core/Field/FieldConfigBase.php
@@ -380,7 +380,7 @@ public function isRequired() {
   }
 
   /**
-   * [@inheritdoc}
+   * {@inheritdoc}
    */
   public function setRequired($required) {
     $this->required = $required;
diff --git a/core/lib/Drupal/Core/Form/FormBuilder.php b/core/lib/Drupal/Core/Form/FormBuilder.php
index be000dc..4ede415 100644
--- a/core/lib/Drupal/Core/Form/FormBuilder.php
+++ b/core/lib/Drupal/Core/Form/FormBuilder.php
@@ -635,7 +635,7 @@ public function processForm($form_id, &$form, FormStateInterface &$form_state) {
   }
 
   /**
-   * #lazy_builder callback; renders a form action URL.
+   * Callback for #lazy_builder. Renders a form action URL.
    *
    * @return array
    *   A renderable array representing the form action.
@@ -649,7 +649,7 @@ public function renderPlaceholderFormAction() {
   }
 
   /**
-   * #lazy_builder callback; renders form CSRF token.
+   * Callback for #lazy_builder. Renders form CSRF token.
    *
    * @param string $placeholder
    *   A string containing a placeholder, matching the value of the form's
diff --git a/core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php b/core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php
index eeaf510..52d2883 100644
--- a/core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php
+++ b/core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php
@@ -40,7 +40,7 @@ class KeyValueFactory implements KeyValueFactoryInterface {
   protected $stores = [];
 
   /**
-   * var \Symfony\Component\DependencyInjection\ContainerInterface
+   * @var \Symfony\Component\DependencyInjection\ContainerInterface
    */
   protected $container;
 
diff --git a/core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php b/core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php
index a718a95..1187441 100644
--- a/core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php
+++ b/core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php
@@ -10,7 +10,7 @@
 class ProxyBuilder extends BaseProxyBuilder {
 
   /**
-   * {@inheritdoc{
+   * {@inheritdoc}
    */
   protected function buildUseStatements() {
     $output = parent::buildUseStatements();
diff --git a/core/lib/Drupal/Core/Render/Element/Actions.php b/core/lib/Drupal/Core/Render/Element/Actions.php
index 2e75165..4ae1812 100644
--- a/core/lib/Drupal/Core/Render/Element/Actions.php
+++ b/core/lib/Drupal/Core/Render/Element/Actions.php
@@ -63,7 +63,7 @@ public static function processActions(&$element, FormStateInterface $form_state,
   }
 
   /**
-   * #pre_render callback for #type 'actions'.
+   * Callback for #pre_render that handles #type 'actions'.
    *
    * This callback iterates over all child elements of the #type 'actions'
    * container to look for elements with a #dropbutton property, so as to group
diff --git a/core/lib/Drupal/Core/Render/Element/FormElement.php b/core/lib/Drupal/Core/Render/Element/FormElement.php
index 0168d2b..0114419 100644
--- a/core/lib/Drupal/Core/Render/Element/FormElement.php
+++ b/core/lib/Drupal/Core/Render/Element/FormElement.php
@@ -92,7 +92,7 @@ public static function valueCallback(&$element, $input, FormStateInterface $form
   }
 
   /**
-   * #process callback for #pattern form element property.
+   * Callback for #process that handles #pattern form element property.
    *
    * @param array $element
    *   An associative array containing the properties and children of the
@@ -115,7 +115,7 @@ public static function processPattern(&$element, FormStateInterface $form_state,
   }
 
   /**
-   * #element_validate callback for #pattern form element property.
+   * Callback for #element_validate that handles #pattern form element property.
    *
    * @param $element
    *   An associative array containing the properties and children of the
diff --git a/core/lib/Drupal/Core/Render/Element/Pager.php b/core/lib/Drupal/Core/Render/Element/Pager.php
index 6ba3dff..897c0c9 100644
--- a/core/lib/Drupal/Core/Render/Element/Pager.php
+++ b/core/lib/Drupal/Core/Render/Element/Pager.php
@@ -58,7 +58,7 @@ public function getInfo() {
   }
 
   /**
-   * #pre_render callback to associate the appropriate cache context.
+   * Callback for #pre_render to associate the appropriate cache context.
    *
    *
    * @param array $pager
diff --git a/core/lib/Drupal/Core/Render/Element/StatusMessages.php b/core/lib/Drupal/Core/Render/Element/StatusMessages.php
index 530457f..702c4c1 100644
--- a/core/lib/Drupal/Core/Render/Element/StatusMessages.php
+++ b/core/lib/Drupal/Core/Render/Element/StatusMessages.php
@@ -36,7 +36,7 @@ public function getInfo() {
   }
 
   /**
-   * #pre_render callback to generate a placeholder.
+   * Callback for #pre_render to generate a placeholder.
    *
    * @param array $element
    *   A renderable array.
@@ -57,7 +57,7 @@ public static function generatePlaceholder(array $element) {
   }
 
   /**
-   * #lazy_builder callback; replaces placeholder with messages.
+   * Callback for #lazy_builder to replace placeholder with messages.
    *
    * @param string|null $type
    *   Limit the messages returned by type. Defaults to NULL, meaning all types.
diff --git a/core/lib/Drupal/Core/Render/Element/StatusReport.php b/core/lib/Drupal/Core/Render/Element/StatusReport.php
index d913066..1657160 100644
--- a/core/lib/Drupal/Core/Render/Element/StatusReport.php
+++ b/core/lib/Drupal/Core/Render/Element/StatusReport.php
@@ -29,7 +29,7 @@ public function getInfo() {
   }
 
   /**
-   * #pre_render callback to group requirements.
+   * Callback for #pre_render to group requirements.
    */
   public static function preRenderGroupRequirements($element) {
     $severities = static::getSeverities();
diff --git a/core/lib/Drupal/Core/Render/Element/Table.php b/core/lib/Drupal/Core/Render/Element/Table.php
index c6c08b1..67ef537 100644
--- a/core/lib/Drupal/Core/Render/Element/Table.php
+++ b/core/lib/Drupal/Core/Render/Element/Table.php
@@ -119,7 +119,9 @@ public static function valueCallback(&$element, $input, FormStateInterface $form
   }
 
   /**
-   * #process callback for #type 'table' to add tableselect support.
+   * Callback for #process that handles #type 'table'.
+   *
+   * Adds tableselect support.
    *
    * @param array $element
    *   An associative array containing the properties and children of the
@@ -245,7 +247,7 @@ public static function processTable(&$element, FormStateInterface $form_state, &
   }
 
   /**
-   * #element_validate callback for #type 'table'.
+   * Callback for #element_validate that handles #type 'table'.
    *
    * @param array $element
    *   An associative array containing the properties and children of the
@@ -273,7 +275,9 @@ public static function validateTable(&$element, FormStateInterface $form_state,
   }
 
   /**
-   * #pre_render callback to transform children of an element of #type 'table'.
+   * Callback for #pre_render.
+   *
+   * Transforms children of an element of #type 'table'.
    *
    * This function converts sub-elements of an element of #type 'table' to be
    * suitable for table.html.twig:
diff --git a/core/modules/big_pipe/tests/modules/big_pipe_regression_test/src/BigPipeRegressionTestController.php b/core/modules/big_pipe/tests/modules/big_pipe_regression_test/src/BigPipeRegressionTestController.php
index 50e618b..a6115e0 100644
--- a/core/modules/big_pipe/tests/modules/big_pipe_regression_test/src/BigPipeRegressionTestController.php
+++ b/core/modules/big_pipe/tests/modules/big_pipe_regression_test/src/BigPipeRegressionTestController.php
@@ -32,7 +32,7 @@ public function regression2802923() {
   }
 
   /**
-   * #lazy_builder callback; builds <time> markup with current time.
+   * Callback for #lazy_builder to build <time> markup with current time.
    *
    * @return array
    */
diff --git a/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php
index a708ecc..ff35afa 100644
--- a/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php
+++ b/core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php
@@ -82,7 +82,7 @@ public function multiOccurrence() {
   }
 
   /**
-   * #lazy_builder callback; builds <time> markup with current time.
+   * Callback for #lazy_builder to build <time> markup with current time.
    *
    * Note: does not actually use current time, that would complicate testing.
    *
@@ -96,7 +96,7 @@ public static function currentTime() {
   }
 
   /**
-   * #lazy_builder callback; says "hello" or "yarhar".
+   * Callback for #lazy_builder to say "hello" or "yarhar".
    *
    * @return array
    */
@@ -111,7 +111,7 @@ public static function helloOrYarhar() {
   }
 
   /**
-   * #lazy_builder callback; throws exception.
+   * Callback for #lazy_builder to throw an exception.
    *
    * @throws \Exception
    */
@@ -120,7 +120,7 @@ public static function exception() {
   }
 
   /**
-   * #lazy_builder callback; returns content that will trigger an exception.
+   * Callback for #lazy_builder. Returns content that will trigger an exception.
    *
    * @see \Drupal\big_pipe_test\EventSubscriber\BigPipeTestSubscriber::onRespondTriggerException()
    *
@@ -131,7 +131,7 @@ public static function responseException() {
   }
 
   /**
-   * #lazy_builder callback; returns the current count.
+   * Callback for #lazy_builder to return the current count.
    *
    * @see \Drupal\Tests\big_pipe\Functional\BigPipeTest::testBigPipeMultiOccurrencePlaceholders()
    *
diff --git a/core/modules/block/src/BlockViewBuilder.php b/core/modules/block/src/BlockViewBuilder.php
index 3b20d7b..8be7207 100644
--- a/core/modules/block/src/BlockViewBuilder.php
+++ b/core/modules/block/src/BlockViewBuilder.php
@@ -176,7 +176,7 @@ protected static function buildPreRenderableBlock($entity, ModuleHandlerInterfac
   }
 
   /**
-   * #lazy_builder callback; builds a #pre_render-able block.
+   * Callback for #lazy_builder to build a #pre_render-able block.
    *
    * @param $entity_id
    *   A block config entity ID.
@@ -191,7 +191,7 @@ public static function lazyBuilder($entity_id, $view_mode) {
   }
 
   /**
-   * #pre_render callback for building a block.
+   * Callback for #pre_render to build a block.
    *
    * Renders the content using the provided block plugin, and then:
    * - if there is no content, aborts rendering, and makes sure the block won't
diff --git a/core/modules/block/tests/modules/block_test/block_test.module b/core/modules/block/tests/modules/block_test/block_test.module
index 7ea8bb4..0497939 100644
--- a/core/modules/block/tests/modules/block_test/block_test.module
+++ b/core/modules/block/tests/modules/block_test/block_test.module
@@ -54,7 +54,7 @@ function block_test_block_build_test_cache_alter(array &$build, BlockPluginInter
 }
 
 /**
- * #pre_render callback for a block to alter its content.
+ * Callback for #pre_render for a block to alter its content.
  */
 function block_test_pre_render_alter_content($build) {
   $build['#prefix'] = 'Hiya!<br>';
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php
index 587cf85..7c7e505 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php
@@ -71,7 +71,7 @@ public function settingsForm(array $form, FormStateInterface $form_state, Editor
   }
 
   /**
-   * #element_validate handler for the "image_upload" element in settingsForm().
+   * Handler for #element_validate for "image_upload" element in settingsForm().
    *
    * Moves the text editor's image upload settings from the DrupalImage plugin's
    * own settings into $editor->image_upload.
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
index 7b3386e..3e91b1e 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/StylesCombo.php
@@ -93,7 +93,7 @@ public function settingsForm(array $form, FormStateInterface $form_state, Editor
   }
 
   /**
-   * #element_validate handler for the "styles" element in settingsForm().
+   * Callback for #element_validate for the "styles" element in settingsForm().
    */
   public function validateStylesValue(array $element, FormStateInterface $form_state) {
     $styles_setting = $this->generateStylesSetSetting($element['#value']);
diff --git a/core/modules/color/color.module b/core/modules/color/color.module
index 84abac1..27f12d0 100644
--- a/core/modules/color/color.module
+++ b/core/modules/color/color.module
@@ -115,7 +115,7 @@ function color_block_view_system_branding_block_alter(array &$build, BlockPlugin
 }
 
 /**
- * #pre_render callback: Sets color preset logo.
+ * Callback for #pre_render to set color preset logo.
  */
 function color_block_view_pre_render(array $build) {
   $theme_key = \Drupal::theme()->getActiveTheme()->getName();
diff --git a/core/modules/comment/src/CommentLazyBuilders.php b/core/modules/comment/src/CommentLazyBuilders.php
index 730c840..e30bea7 100644
--- a/core/modules/comment/src/CommentLazyBuilders.php
+++ b/core/modules/comment/src/CommentLazyBuilders.php
@@ -84,7 +84,7 @@ public function __construct(EntityManagerInterface $entity_manager, EntityFormBu
   }
 
   /**
-   * #lazy_builder callback; builds the comment form.
+   * Callback for #lazy_builder to build the comment form.
    *
    * @param string $commented_entity_type_id
    *   The commented entity type ID.
@@ -111,7 +111,7 @@ public function renderForm($commented_entity_type_id, $commented_entity_id, $fie
   }
 
   /**
-   * #lazy_builder callback; builds a comment's links.
+   * Callback for #lazy_builder to build a comment's links.
    *
    * @param string $comment_entity_id
    *   The comment entity ID.
diff --git a/core/modules/comment/src/Tests/CommentTranslationUITest.php b/core/modules/comment/src/Tests/CommentTranslationUITest.php
index 4613d66..1c95300 100644
--- a/core/modules/comment/src/Tests/CommentTranslationUITest.php
+++ b/core/modules/comment/src/Tests/CommentTranslationUITest.php
@@ -28,7 +28,7 @@ class CommentTranslationUITest extends ContentTranslationUITestBase {
   protected $adminUser;
 
   /**
-   * {inheritdoc}
+   * {@inheritdoc}
    */
   protected $defaultCacheContexts = [
     'languages:language_interface',
diff --git a/core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeWidgetBase.php b/core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeWidgetBase.php
index e99374c..ff18588 100644
--- a/core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeWidgetBase.php
+++ b/core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeWidgetBase.php
@@ -118,7 +118,7 @@ public function massageFormValues(array $values, array $form, FormStateInterface
   }
 
   /**
-   * #element_validate callback to ensure that the start date <= the end date.
+   * Callback for #element_validate to ensure that start date <= end date.
    *
    * @param array $element
    *   An associative array containing the properties and children of the
diff --git a/core/modules/field/tests/modules/field_test/src/Form/NestedEntityTestForm.php b/core/modules/field/tests/modules/field_test/src/Form/NestedEntityTestForm.php
index 949ffda..e11f8ca 100644
--- a/core/modules/field/tests/modules/field_test/src/Form/NestedEntityTestForm.php
+++ b/core/modules/field/tests/modules/field_test/src/Form/NestedEntityTestForm.php
@@ -14,14 +14,14 @@
 class NestedEntityTestForm extends FormBase {
 
   /**
-   * {@inheritdoc]
+   * {@inheritdoc}
    */
   public function getFormId() {
     return 'field_test_entity_nested_form';
   }
 
   /**
-   * {@inheritdoc]
+   * {@inheritdoc}
    */
   public function buildForm(array $form, FormStateInterface $form_state, EntityInterface $entity_1 = NULL, EntityInterface $entity_2 = NULL) {
     // First entity.
@@ -64,7 +64,7 @@ public function buildForm(array $form, FormStateInterface $form_state, EntityInt
   }
 
   /**
-   * {@inheritdoc]
+   * {@inheritdoc}
    */
   public function validateForm(array &$form, FormStateInterface $form_state) {
     $entity_1 = $form_state->get('entity_1');
@@ -90,7 +90,7 @@ public function validateForm(array &$form, FormStateInterface $form_state) {
   }
 
   /**
-   * {@inheritdoc]
+   * {@inheritdoc}
    */
   public function submitForm(array &$form, FormStateInterface $form_state) {
     /** @var \Drupal\Core\Entity\EntityInterface $entity_1 */
diff --git a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldWidget/TestFieldWidgetMultiple.php b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldWidget/TestFieldWidgetMultiple.php
index 32cf6e4..a4588fa 100644
--- a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldWidget/TestFieldWidgetMultiple.php
+++ b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldWidget/TestFieldWidgetMultiple.php
@@ -94,6 +94,7 @@ public static function multipleValidate($element, FormStateInterface $form_state
 
   /**
    * {@inheritdoc}
+   *
    * Used in \Drupal\field\Tests\EntityReference\EntityReferenceAdminTest::testAvailableFormatters().
    */
   public static function isApplicable(FieldDefinitionInterface $field_definition) {
diff --git a/core/modules/file/src/Element/ManagedFile.php b/core/modules/file/src/Element/ManagedFile.php
index ca4e887..008f7b1 100644
--- a/core/modules/file/src/Element/ManagedFile.php
+++ b/core/modules/file/src/Element/ManagedFile.php
@@ -152,7 +152,7 @@ public static function valueCallback(&$element, $input, FormStateInterface $form
   }
 
   /**
-   * #ajax callback for managed_file upload forms.
+   * Callback for #ajax that handles managed_file upload forms.
    *
    * This ajax callback takes care of the following things:
    *   - Ensures that broken requests due to too big files are caught.
diff --git a/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php b/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php
index 989eb15..6e6e8bf 100644
--- a/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php
+++ b/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php
@@ -11,7 +11,7 @@
 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
 
 /**
- * file migration.
+ * File migration.
  *
  * @group migrate_drupal_6
  */
diff --git a/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestPlaceholders.php b/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestPlaceholders.php
index c6d0300..e52d2e3 100644
--- a/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestPlaceholders.php
+++ b/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestPlaceholders.php
@@ -28,7 +28,9 @@ public function process($text, $langcode) {
   }
 
   /**
-   * #lazy_builder callback; builds a render array containing the dynamic thing.
+   * Callback for #lazy_builder to build a render array.
+   *
+   * The render array contains the dynamic thing.
    *
    * @param string $thing
    *   A "thing" string.
diff --git a/core/modules/help/tests/src/Functional/ExperimentalHelpTest.php b/core/modules/help/tests/src/Functional/ExperimentalHelpTest.php
index 0eabbda..b928574 100644
--- a/core/modules/help/tests/src/Functional/ExperimentalHelpTest.php
+++ b/core/modules/help/tests/src/Functional/ExperimentalHelpTest.php
@@ -29,7 +29,7 @@ class ExperimentalHelpTest extends BrowserTestBase {
   protected $adminUser;
 
   /**
-   * {@inheritoc}
+   * {@inheritdoc}
    */
   protected function setUp() {
     parent::setUp();
diff --git a/core/modules/history/history.module b/core/modules/history/history.module
index f36121e..2ffc7f4 100644
--- a/core/modules/history/history.module
+++ b/core/modules/history/history.module
@@ -179,7 +179,7 @@ function history_user_delete($account) {
 }
 
 /**
- * #lazy_builder callback; attaches the last read timestamp for a node.
+ * Callback for #lazy_builder to attach the last read timestamp for a node.
  *
  * @param int $node_id
  *   The node ID for which to attach the last read timestamp.
diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module
index b1298e4..b1092d7 100644
--- a/core/modules/locale/locale.module
+++ b/core/modules/locale/locale.module
@@ -1243,7 +1243,7 @@ function _locale_invalidate_js($langcode = NULL) {
 }
 
 /**
- * (Re-)Creates the JavaScript translation file for a language.
+ * Creates / recreates the JavaScript translation file for a language.
  *
  * @param $langcode
  *   The language, the translation file should be (re)created for.
diff --git a/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php b/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php
index a2ba993..8ee6a59 100644
--- a/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php
+++ b/core/modules/menu_link_content/tests/src/Functional/MenuLinkContentTranslationUITest.php
@@ -13,7 +13,7 @@
 class MenuLinkContentTranslationUITest extends ContentTranslationUITestBase {
 
   /**
-   * {inheritdoc}
+   * {@inheritdoc}
    */
   protected $defaultCacheContexts = ['languages:language_interface', 'session', 'theme', 'url.path', 'url.query_args', 'user.permissions', 'user.roles:authenticated'];
 
diff --git a/core/modules/node/src/NodeViewBuilder.php b/core/modules/node/src/NodeViewBuilder.php
index f96302b..05d7327 100644
--- a/core/modules/node/src/NodeViewBuilder.php
+++ b/core/modules/node/src/NodeViewBuilder.php
@@ -66,7 +66,7 @@ protected function getBuildDefaults(EntityInterface $entity, $view_mode) {
   }
 
   /**
-   * #lazy_builder callback; builds a node's links.
+   * Callback for #lazy_builder to build a node's links.
    *
    * @param string $node_entity_id
    *   The node entity ID.
diff --git a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
index a44bea1..6cd2294 100644
--- a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
+++ b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php
@@ -17,7 +17,7 @@
 class NodeTranslationUITest extends ContentTranslationUITestBase {
 
   /**
-   * {inheritdoc}
+   * {@inheritdoc}
    */
   protected $defaultCacheContexts = [
     'languages:language_interface',
diff --git a/core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php b/core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php
index c7c2b16..b7a440b 100644
--- a/core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php
+++ b/core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php
@@ -120,7 +120,7 @@ public function storageSettingsForm(array &$form, FormStateInterface $form_state
   abstract protected function allowedValuesDescription();
 
   /**
-   * #element_validate callback for options field allowed values.
+   * Callback for #element_validate that handles options field allowed values.
    *
    * @param $element
    *   An associative array containing the properties and children of the
diff --git a/core/modules/rest/src/Entity/RestResourceConfig.php b/core/modules/rest/src/Entity/RestResourceConfig.php
index 12bd846..c4918bc 100644
--- a/core/modules/rest/src/Entity/RestResourceConfig.php
+++ b/core/modules/rest/src/Entity/RestResourceConfig.php
@@ -208,7 +208,7 @@ public function getPluginCollections() {
   }
 
   /**
-   * (@inheritdoc)
+   * {@inheritdoc}
    */
   public function calculateDependencies() {
     parent::calculateDependencies();
diff --git a/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php b/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php
index 83bf47a..eaf5f7a 100644
--- a/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php
+++ b/core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php
@@ -14,7 +14,7 @@
 class ShortcutTranslationUITest extends ContentTranslationUITestBase {
 
   /**
-   * {inheritdoc}
+   * {@inheritdoc}
    */
   protected $defaultCacheContexts = ['languages:language_interface', 'session', 'theme', 'user', 'url.path', 'url.query_args', 'url.site'];
 
diff --git a/core/modules/system/src/Element/StatusReportPage.php b/core/modules/system/src/Element/StatusReportPage.php
index 1d8421b..1be128e 100644
--- a/core/modules/system/src/Element/StatusReportPage.php
+++ b/core/modules/system/src/Element/StatusReportPage.php
@@ -29,7 +29,7 @@ public function getInfo() {
   }
 
   /**
-   * #pre_render callback to get general info out of requirements.
+   * Callback for #pre_render to get general info out of requirements.
    */
   public static function preRenderGeneralInfo($element) {
     $element['#general_info'] = [
@@ -69,7 +69,7 @@ public static function preRenderGeneralInfo($element) {
   }
 
   /**
-   * #pre_render callback to create counter elements.
+   * Callback for #pre_render to create counter elements.
    */
   public static function preRenderCounters($element) {
     // Count number of items with different severity for summary.
@@ -125,7 +125,7 @@ public static function preRenderCounters($element) {
   }
 
   /**
-   * #pre_render callback to create status report requirements.
+   * Callback for #pre_render to create status report requirements.
    */
   public static function preRenderRequirements($element) {
     $element['#requirements'] = [
diff --git a/core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestCommandsForm.php b/core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestCommandsForm.php
index e3c09af..544b3ea 100644
--- a/core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestCommandsForm.php
+++ b/core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestCommandsForm.php
@@ -11,14 +11,14 @@
 class AjaxFormsTestCommandsForm extends FormBase {
 
   /**
-   * {@inheritdoc}.
+   * {@inheritdoc}
    */
   public function getFormId() {
     return 'ajax_forms_test_ajax_commands_form';
   }
 
   /**
-   * {@inheritdoc}.
+   * {@inheritdoc}
    */
   public function buildForm(array $form, FormStateInterface $form_state) {
     $form = [];
@@ -198,7 +198,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
   }
 
   /**
-   * {@inheritdoc}.
+   * {@inheritdoc}
    */
   public function submitForm(array &$form, FormStateInterface $form_state) {
   }
diff --git a/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php b/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
index 1964f74..5eeac4d 100644
--- a/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
+++ b/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
@@ -115,7 +115,9 @@ public function multiplePagers() {
   }
 
   /**
-   * #pre_render callback for #type => pager that shows the pager cache context.
+   * Callback for #pre_render that handles #type => pager.
+   *
+   * Shows the pager cache context.
    */
   public static function showPagerCacheContext(array $pager) {
     drupal_set_message(\Drupal::service('cache_contexts_manager')->convertTokensToKeys(['url.query_args.pagers:' . $pager['#element']])->getKeys()[0]);
diff --git a/core/modules/system/tests/modules/render_placeholder_message_test/src/RenderPlaceholderMessageTestController.php b/core/modules/system/tests/modules/render_placeholder_message_test/src/RenderPlaceholderMessageTestController.php
index 7b0850e..b1e89f6 100644
--- a/core/modules/system/tests/modules/render_placeholder_message_test/src/RenderPlaceholderMessageTestController.php
+++ b/core/modules/system/tests/modules/render_placeholder_message_test/src/RenderPlaceholderMessageTestController.php
@@ -80,7 +80,7 @@ protected function build(array $placeholder_order) {
   }
 
   /**
-   * #lazy_builder callback; sets and prints a message.
+   * Callback for #lazy_builder to set and print a message.
    *
    * @param string $message
    *   The message to send.
diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module
index 16983d6..3f5486b 100644
--- a/core/modules/toolbar/toolbar.module
+++ b/core/modules/toolbar/toolbar.module
@@ -311,7 +311,7 @@ function toolbar_get_rendered_subtrees() {
 }
 
 /**
- * #pre_render callback for toolbar_get_rendered_subtrees().
+ * Callback for #pre_render for toolbar_get_rendered_subtrees().
  */
 function _toolbar_do_get_rendered_subtrees(array $data) {
   $menu_tree = \Drupal::service('toolbar.menu_tree');
diff --git a/core/modules/user/src/Plugin/Block/UserLoginBlock.php b/core/modules/user/src/Plugin/Block/UserLoginBlock.php
index a9341f9..f7491bf 100644
--- a/core/modules/user/src/Plugin/Block/UserLoginBlock.php
+++ b/core/modules/user/src/Plugin/Block/UserLoginBlock.php
@@ -144,7 +144,9 @@ public function build() {
   }
 
   /**
-   * #lazy_builder callback; renders a form action URL including destination.
+   * Callback for #lazy_builder.
+   *
+   * Renders a form action URL including destination.
    *
    * @return array
    *   A renderable array representing the form action.
diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php b/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php
index f8630af..6ad9245 100644
--- a/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php
@@ -395,7 +395,7 @@ public function renderMoreLink();
   public function render();
 
   /**
-   * #pre_render callback for view display rendering.
+   * Callback for #pre_render to render view display.
    *
    * @see self::render()
    *
diff --git a/core/modules/views/src/Plugin/views/style/StylePluginBase.php b/core/modules/views/src/Plugin/views/style/StylePluginBase.php
index 0971b2e..e4941aa 100644
--- a/core/modules/views/src/Plugin/views/style/StylePluginBase.php
+++ b/core/modules/views/src/Plugin/views/style/StylePluginBase.php
@@ -743,7 +743,7 @@ protected function renderFields(array $result) {
   }
 
   /**
-   * #pre_render callback for view row field rendering.
+   * Callback for #pre_render to render view row field.
    *
    * @see self::render()
    *
diff --git a/core/modules/views/tests/modules/views_test_data/views_test_data.views_execution.inc b/core/modules/views/tests/modules/views_test_data/views_test_data.views_execution.inc
index dd69f4c..5e8d36a 100644
--- a/core/modules/views/tests/modules/views_test_data/views_test_data.views_execution.inc
+++ b/core/modules/views/tests/modules/views_test_data/views_test_data.views_execution.inc
@@ -62,7 +62,7 @@ function views_test_data_views_pre_render(ViewExecutable $view) {
 }
 
 /**
- * #lazy_builder callback; for testing purposes only.
+ * Callback for #lazy_builder for testing purposes only.
  */
 function views_test_data_placeholders() {
   // No-op.
diff --git a/core/modules/views_ui/admin.inc b/core/modules/views_ui/admin.inc
index a2d9fed..8ff965b 100644
--- a/core/modules/views_ui/admin.inc
+++ b/core/modules/views_ui/admin.inc
@@ -298,7 +298,9 @@ function views_ui_build_form_url(FormStateInterface $form_state) {
 }
 
 /**
- * #process callback for a button; determines if a button is the form's triggering element.
+ * Callback for #process that handles a button.
+ *
+ * Determines if a button is the form's triggering element.
  *
  * The Form API has logic to determine the form's triggering element based on
  * the data in POST. However, it only checks buttons based on a single #value
diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist
index 59b33c4..07968e0 100644
--- a/core/phpcs.xml.dist
+++ b/core/phpcs.xml.dist
@@ -38,7 +38,6 @@
     <exclude name="Drupal.Commenting.DocComment.ParamNotFirst"/>
     <exclude name="Drupal.Commenting.DocComment.SpacingBeforeTags"/>
     <exclude name="Drupal.Commenting.DocComment.LongFullStop"/>
-    <exclude name="Drupal.Commenting.DocComment.ShortNotCapital"/>
     <exclude name="Drupal.Commenting.DocComment.ShortFullStop"/>
     <!-- TagsNotGrouped and ParamGroup have false-positives.
       @see https://www.drupal.org/node/2060925 -->
diff --git a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php
index 2becc97..52112b4 100644
--- a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php
+++ b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php
@@ -151,9 +151,9 @@ public function testTimestamp($input, array $initial, array $transform) {
    * @param string $input
    *   Input argument for DateTimePlus().
    * @param array $initial
-   *   @see testTimestamp()
    * @param array $transform
-   *   @see testTimestamp()
+   *
+   * @see testTimestamp()
    *
    * @dataProvider providerTestDateTimestamp
    */
@@ -164,17 +164,16 @@ public function testDateTimestamp($input, array $initial, array $transform) {
   }
 
   /**
-   * Assertion helper for testTimestamp and testDateTimestamp since they need
-   * different dataProviders.
+   * Assertion helper for testTimestamp and testDateTimestamp since they need different dataProviders.
    *
    * @param DateTimePlus $date
    *   DateTimePlus to test.
-   * @input mixed $input
+   * @param mixed $input
    *   The original input passed to the test method.
    * @param array $initial
-   *   @see testTimestamp()
    * @param array $transform
-   *   @see testTimestamp()
+   *
+   * @see testTimestamp()
    */
   public function assertDateTimestamp($date, $input, $initial, $transform) {
     // Check format.
@@ -247,8 +246,7 @@ public function testInvalidDates($input, $timezone, $format, $message, $class) {
   }
 
   /**
-   * Tests that DrupalDateTime can detect the right timezone to use.
-   * When specified or not.
+   * Tests that DrupalDateTime can detect the right timezone to use. When specified or not.
    *
    * @param mixed $input
    *   Input argument for DateTimePlus.
@@ -268,8 +266,7 @@ public function testDateTimezone($input, $timezone, $expected_timezone, $message
   }
 
   /**
-   * Test that DrupalDateTime can detect the right timezone to use when
-   * constructed from a datetime object.
+   * Test that DrupalDateTime can detect the right timezone to use when constructed from a datetime object.
    */
   public function testDateTimezoneWithDateTimeObject() {
     // Create a date object with another date object.
diff --git a/core/tests/Drupal/Tests/Component/Utility/EnvironmentTest.php b/core/tests/Drupal/Tests/Component/Utility/EnvironmentTest.php
index d167958..ab155c5 100644
--- a/core/tests/Drupal/Tests/Component/Utility/EnvironmentTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/EnvironmentTest.php
@@ -17,9 +17,6 @@ class EnvironmentTest extends TestCase {
   /**
    * Tests \Drupal\Component\Utility\Environment::checkMemoryLimit().
    *
-   * @dataProvider providerTestCheckMemoryLimit
-   * @covers ::checkMemoryLimit
-   *
    * @param string $required
    *   The required memory argument for
    *   \Drupal\Component\Utility\Environment::checkMemoryLimit().
@@ -29,6 +26,9 @@ class EnvironmentTest extends TestCase {
    * @param bool $expected
    *   The expected return value from
    *   \Drupal\Component\Utility\Environment::checkMemoryLimit().
+   *
+   * @dataProvider providerTestCheckMemoryLimit
+   * @covers ::checkMemoryLimit
    */
   public function testCheckMemoryLimit($required, $custom_memory_limit, $expected) {
     $actual = Environment::checkMemoryLimit($required, $custom_memory_limit);
diff --git a/core/tests/Drupal/Tests/Component/Utility/VariableTest.php b/core/tests/Drupal/Tests/Component/Utility/VariableTest.php
index 3fda715..788f285 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",
       ],
       [
-        // 2 backslashes. \\
+        // 2 backslashes \\.
         "'\\'",
         '\\',
       ],
       [
-        // Double-quote "
+        // Double-quote ".
         "'\"'",
         "\"",
       ],
       [
-        // Single-quote '
+        // Single-quote '.
         '"\'"',
         "'",
       ],
@@ -100,13 +100,13 @@ public function providerTestExport() {
   /**
    * Tests exporting variables.
    *
-   * @dataProvider providerTestExport
-   * @covers ::export
-   *
    * @param string $expected
    *   The expected exported variable.
    * @param mixed $variable
    *   The variable to be exported.
+   *
+   * @dataProvider providerTestExport
+   * @covers ::export
    */
   public function testExport($expected, $variable) {
     $this->assertEquals($expected, Variable::export($variable));
diff --git a/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php b/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
index 5bd6220..682a414 100644
--- a/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
+++ b/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@@ -884,16 +884,15 @@ public function testOrIfCacheabilityMerging() {
   /**
    * Tests allowedIfHasPermissions().
    *
-   * @covers ::allowedIfHasPermissions
-   *
-   * @dataProvider providerTestAllowedIfHasPermissions
-   *
    * @param string[] $permissions
    *   The permissions to check for.
    * @param string $conjunction
    *   The conjunction to use when checking for permission. 'AND' or 'OR'.
    * @param \Drupal\Core\Access\AccessResult $expected_access
    *   The expected access check result.
+   *
+   * @dataProvider providerTestAllowedIfHasPermissions
+   * @covers ::allowedIfHasPermissions
    */
   public function testAllowedIfHasPermissions($permissions, $conjunction, AccessResult $expected_access) {
     $account = $this->getMock('\Drupal\Core\Session\AccountInterface');
diff --git a/core/tests/Drupal/Tests/Core/Common/AttributesTest.php b/core/tests/Drupal/Tests/Core/Common/AttributesTest.php
index d06c678..a5781a5 100644
--- a/core/tests/Drupal/Tests/Core/Common/AttributesTest.php
+++ b/core/tests/Drupal/Tests/Core/Common/AttributesTest.php
@@ -57,7 +57,7 @@ public function testDrupalAttributes($attributes, $expected, $message) {
   }
 
   /**
-   * Test attribute iteration
+   * Test attribute iteration.
    */
   public function testAttributeIteration() {
     $attribute = new Attribute(['key1' => 'value1']);
diff --git a/core/tests/Drupal/Tests/Core/Config/CachedStorageTest.php b/core/tests/Drupal/Tests/Core/Config/CachedStorageTest.php
index c39efd6..48b7de7 100644
--- a/core/tests/Drupal/Tests/Core/Config/CachedStorageTest.php
+++ b/core/tests/Drupal/Tests/Core/Config/CachedStorageTest.php
@@ -14,6 +14,8 @@
 class CachedStorageTest extends UnitTestCase {
 
   /**
+   * The cache factory.
+   *
    * @var \Drupal\Core\Cache\CacheFactoryInterface|\PHPUnit_Framework_MockObject_MockObject
    */
   protected $cacheFactory;
diff --git a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php
index 914d4f6..8f15fa7 100644
--- a/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php
+++ b/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php
@@ -30,8 +30,7 @@ protected function setUpConfigEntityType($definition) {
   }
 
   /**
-   * Tests that we get an exception when the length of the config prefix that is
-   * returned by getConfigPrefix() exceeds the maximum defined prefix length.
+   * Tests that we get an exception when the length of the config prefix that is returned by getConfigPrefix() exceeds the maximum defined prefix length.
    *
    * @covers ::getConfigPrefix
    */
@@ -51,8 +50,7 @@ public function testConfigPrefixLengthExceeds() {
   }
 
   /**
-   * Tests that a valid config prefix returned by getConfigPrefix()
-   * does not throw an exception and is formatted as expected.
+   * Tests that a valid config prefix returned by getConfigPrefix() does not throw an exception and is formatted as expected.
    *
    * @covers ::getConfigPrefix
    */
diff --git a/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php b/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php
index 7278fd6..7806864 100644
--- a/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php
+++ b/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php
@@ -195,7 +195,7 @@ public function testFindSitePath() {
   }
 
   /**
-   * A fake autoloader for testing
+   * A fake autoloader for testing.
    */
   class fakeAutoloader {
 
diff --git a/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php b/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
index bfe3a06..69b142c 100644
--- a/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
+++ b/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
@@ -152,7 +152,7 @@ public function testGetModuleList() {
   }
 
   /**
-   * Confirm we get back a module from the module list
+   * Confirm we get back a module from the module list.
    *
    * @covers ::getModule
    */
diff --git a/core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php b/core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php
index aefcbb0..9e69a80 100644
--- a/core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php
@@ -83,14 +83,13 @@ public function testIsDefault() {
   /**
    * Tests sorting an array of language objects.
    *
-   * @covers ::sort
-   *
-   * @dataProvider providerTestSortArrayOfLanguages
-   *
    * @param \Drupal\Core\Language\LanguageInterface[] $languages
    *   An array of language objects.
    * @param array $expected
    *   The expected array of keys.
+   *
+   * @dataProvider providerTestSortArrayOfLanguages
+   * @covers ::sort
    */
   public function testSortArrayOfLanguages(array $languages, array $expected) {
     Language::sort($languages);
diff --git a/core/tests/Drupal/Tests/Core/ParamConverter/EntityConverterTest.php b/core/tests/Drupal/Tests/Core/ParamConverter/EntityConverterTest.php
index 67decbe..a295ff2 100644
--- a/core/tests/Drupal/Tests/Core/ParamConverter/EntityConverterTest.php
+++ b/core/tests/Drupal/Tests/Core/ParamConverter/EntityConverterTest.php
@@ -95,7 +95,7 @@ public function testConvert($value, array $definition, array $defaults, $expecte
   }
 
   /**
-   * Provides test data for testConvert
+   * Provides test data for testConvert.
    */
   public function providerTestConvert() {
     $data = [];
diff --git a/core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php b/core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php
index 2bfb1c9..fe3c283 100644
--- a/core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php
+++ b/core/tests/Drupal/Tests/Core/Path/PathValidatorTest.php
@@ -26,6 +26,7 @@ class PathValidatorTest extends UnitTestCase {
 
   /**
    * The mocked access unaware router.
+   *
    * @var \Symfony\Component\Routing\Matcher\UrlMatcherInterface|\PHPUnit_Framework_MockObject_MockObject
    */
   protected $accessUnawareRouter;
diff --git a/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php b/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
index 7188a51..9a6be53 100644
--- a/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
@@ -396,7 +396,7 @@ public function testMergeAttachmentsFeedMerging($a, $b, $expected) {
   }
 
   /**
-   * Data provider for testMergeAttachmentsFeedMerging
+   * Data provider for testMergeAttachmentsFeedMerging.
    *
    * @return array
    */
@@ -455,7 +455,7 @@ public function testMergeAttachmentsHtmlHeadMerging($a, $b, $expected) {
   }
 
   /**
-   * Data provider for testMergeAttachmentsHtmlHeadMerging
+   * Data provider for testMergeAttachmentsHtmlHeadMerging.
    *
    * @return array
    */
@@ -528,7 +528,7 @@ public function testMergeAttachmentsHtmlHeadLinkMerging($a, $b, $expected) {
   }
 
   /**
-   * Data provider for testMergeAttachmentsHtmlHeadLinkMerging
+   * Data provider for testMergeAttachmentsHtmlHeadLinkMerging.
    *
    * @return array
    */
@@ -594,7 +594,7 @@ public function testMergeAttachmentsHttpHeaderMerging($a, $b, $expected) {
   }
 
   /**
-   * Data provider for testMergeAttachmentsHttpHeaderMerging
+   * Data provider for testMergeAttachmentsHttpHeaderMerging.
    *
    * @return array
    */
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php b/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
index 0666367..2bbea4b 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
@@ -593,7 +593,7 @@ public function testOverWriteCacheKeys() {
 class BubblingTest {
 
   /**
-   * #pre_render callback for testBubblingWithPrerender().
+   * Callback for #pre_render for testBubblingWithPrerender().
    */
   public static function bubblingPreRender($elements) {
     $elements += [
@@ -632,7 +632,7 @@ public static function bubblingPreRender($elements) {
   }
 
   /**
-   * #pre_render callback for testBubblingWithPrerender().
+   * Callback for #pre_render for testBubblingWithPrerender().
    */
   public static function bubblingNestedPreRenderUncached($elements) {
     \Drupal::state()->set('bubbling_nested_pre_render_uncached', TRUE);
@@ -641,7 +641,7 @@ public static function bubblingNestedPreRenderUncached($elements) {
   }
 
   /**
-   * #pre_render callback for testBubblingWithPrerender().
+   * Callback for #pre_render for testBubblingWithPrerender().
    */
   public static function bubblingNestedPreRenderCached($elements) {
     \Drupal::state()->set('bubbling_nested_pre_render_cached', TRUE);
@@ -649,7 +649,7 @@ public static function bubblingNestedPreRenderCached($elements) {
   }
 
   /**
-   * #lazy_builder callback for testBubblingWithPrerender().
+   * Callback for #lazy_builder for testBubblingWithPrerender().
    */
   public static function bubblingPlaceholder($foo, $baz) {
     return [
@@ -658,7 +658,7 @@ public static function bubblingPlaceholder($foo, $baz) {
   }
 
   /**
-   * #pre_render callback for testOverWriteCacheKeys().
+   * Callback for #pre_render for testOverWriteCacheKeys().
    */
   public static function bubblingCacheOverwritePrerender($elements) {
     // Overwrite the #cache entry with new data.
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
index 11b7c89..caea28e 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
@@ -1132,7 +1132,7 @@ protected function setupThemeManagerForDetails() {
 class RecursivePlaceholdersTest {
 
   /**
-   * #lazy_builder callback; bubbles another placeholder.
+   * Callback for #lazy_builder to bubble another placeholder.
    *
    * @param string $animal
    *   An animal.
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererRecursionTest.php b/core/tests/Drupal/Tests/Core/Render/RendererRecursionTest.php
index 76f9d48..bbc277e 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererRecursionTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererRecursionTest.php
@@ -26,7 +26,7 @@ protected function setUpRenderRecursionComplexElements() {
   }
 
   /**
-   * ::renderRoot() may not be called inside of another ::renderRoot() call.
+   * The method ::renderRoot() may not be called inside of another ::renderRoot() call.
    *
    * @covers ::renderRoot
    * @covers ::render
@@ -55,7 +55,7 @@ public function testRenderRecursionWithNestedRenderRoot() {
   }
 
   /**
-   * ::render() may be called from anywhere.
+   * The method ::render() may be called from anywhere.
    *
    * Including from inside of another ::renderRoot() call. Bubbling must be
    * performed.
@@ -91,7 +91,7 @@ public function testRenderRecursionWithNestedRender() {
   }
 
   /**
-   * ::renderPlain() may be called from anywhere.
+   * The method ::renderPlain() may be called from anywhere.
    *
    * Including from inside of another ::renderRoot() call.
    *
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererTestBase.php b/core/tests/Drupal/Tests/Core/Render/RendererTestBase.php
index 964898c..5abe4bf 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererTestBase.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererTestBase.php
@@ -255,7 +255,7 @@ protected function assertRenderCacheItem($cid, $data, $bin = 'render') {
 class PlaceholdersTest {
 
   /**
-   * #lazy_builder callback; attaches setting, generates markup.
+   * Callback for #lazy_builder to attach setting and generate markup.
    *
    * @param string $animal
    *   An animal.
@@ -279,7 +279,9 @@ public static function callback($animal, $use_animal_as_array_key = FALSE) {
   }
 
   /**
-   * #lazy_builder callback; attaches setting, generates markup, user-specific.
+   * Callback for #lazy_builder.
+   *
+   * Attaches setting, generates markup, adds user-specific cache tag.
    *
    * @param string $animal
    *   An animal.
@@ -294,7 +296,9 @@ public static function callbackPerUser($animal) {
   }
 
   /**
-   * #lazy_builder callback; attaches setting, generates markup, cache tag.
+   * Callback for #lazy_builder.
+   *
+   * Attaches setting, generates markup, adds cache tag.
    *
    * @param string $animal
    *   An animal.
diff --git a/core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php b/core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php
index 2678fd3..9af06ac 100644
--- a/core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php
+++ b/core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php
@@ -22,6 +22,7 @@
    *   Parameters array
    * @param $raw_parameters
    *   Raw parameters array
+   *
    * @return \Drupal\Core\Routing\RouteMatchInterface
    */
   abstract protected function getRouteMatch($name, Route $route, array $parameters, array $raw_parameters);
diff --git a/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php b/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php
index 6c6d768..b765980 100644
--- a/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php
+++ b/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php
@@ -175,8 +175,7 @@ protected function setUp() {
   }
 
   /**
-   * Return value callback for the getAliasByPath() method on the mock alias
-   * manager.
+   * Return value callback for the getAliasByPath() method on the mock alias manager.
    *
    * Ensures that by default the call to getAliasByPath() will return the first
    * argument that was passed in. We special-case the paths for which we wish it
@@ -429,7 +428,7 @@ public function testAbsoluteURLGenerationUsingInterfaceConstants() {
   }
 
   /**
-   * Confirms that explicitly setting the base_url works with generated routes
+   * Confirms that explicitly setting the base_url works with generated routes.
    */
   public function testBaseURLGeneration() {
     $options = ['base_url' => 'http://www.example.com:8888'];
diff --git a/core/tests/Drupal/Tests/Core/Site/SettingsTest.php b/core/tests/Drupal/Tests/Core/Site/SettingsTest.php
index 4d34b30..6193cc0 100644
--- a/core/tests/Drupal/Tests/Core/Site/SettingsTest.php
+++ b/core/tests/Drupal/Tests/Core/Site/SettingsTest.php
@@ -66,7 +66,7 @@ public function testGetInstance() {
   }
 
   /**
-   * Tests Settings::getHashSalt();
+   * Tests Settings::getHashSalt().
    *
    * @covers ::getHashSalt
    */
diff --git a/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php b/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php
index 0f5142c..aeced5f 100644
--- a/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php
+++ b/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php
@@ -20,6 +20,8 @@
 class NegotiationMiddlewareTest extends UnitTestCase {
 
   /**
+   * The app kernel.
+   *
    * @var \Symfony\Component\HttpKernel\HttpKernelInterface
    */
   protected $app;
diff --git a/core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php b/core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php
index 2cd750b..e71f81c 100644
--- a/core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php
@@ -33,6 +33,7 @@ protected function setUp() {
 
   /**
    * Provides some test data for formatPlural()
+   *
    * @return array
    */
   public function providerTestFormatPlural() {
diff --git a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php
index c9bccce..b59714b 100644
--- a/core/tests/Drupal/Tests/Core/Template/AttributeTest.php
+++ b/core/tests/Drupal/Tests/Core/Template/AttributeTest.php
@@ -74,6 +74,7 @@ public function testRemove() {
 
   /**
    * Tests setting attributes.
+   *
    * @covers ::setAttribute
    */
   public function testSetAttribute() {
@@ -102,6 +103,7 @@ public function testSetAttribute() {
 
   /**
    * Tests removing attributes.
+   *
    * @covers ::removeAttribute
    */
   public function testRemoveAttribute() {
@@ -141,6 +143,7 @@ public function testRemoveAttribute() {
 
   /**
    * Tests adding class attributes with the AttributeArray helper method.
+   *
    * @covers ::addClass
    */
   public function testAddClasses() {
@@ -193,6 +196,7 @@ public function testAddClasses() {
 
   /**
    * Tests removing class attributes with the AttributeArray helper method.
+   *
    * @covers ::removeClass
    */
   public function testRemoveClasses() {
@@ -224,6 +228,7 @@ public function testRemoveClasses() {
 
   /**
    * Tests checking for class names with the Attribute method.
+   *
    * @covers ::hasClass
    */
   public function testHasClass() {
@@ -239,6 +244,7 @@ public function testHasClass() {
 
   /**
    * Tests removing class attributes with the Attribute helper methods.
+   *
    * @covers ::removeClass
    * @covers ::addClass
    */
@@ -257,6 +263,7 @@ public function testChainAddRemoveClasses() {
 
   /**
    * Tests the twig calls to the Attribute.
+   *
    * @dataProvider providerTestAttributeClassHelpers
    *
    * @covers ::removeClass
@@ -273,7 +280,7 @@ public function testTwigAddRemoveClasses($template, $expected, $seed_attributes
   }
 
   /**
-   * Provides tests data for testEscaping
+   * Provides tests data for testEscaping.
    *
    * @return array
    *   An array of test data each containing of a twig template string,
diff --git a/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php b/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php
index a872e30..33c5f93 100644
--- a/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php
+++ b/core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php
@@ -71,7 +71,7 @@ public function setUp() {
   }
 
   /**
-   * Tests the escaping
+   * Tests the escaping.
    *
    * @dataProvider providerTestEscaping
    *
@@ -94,7 +94,7 @@ public function testEscaping($template, $expected) {
   }
 
   /**
-   * Provides tests data for testEscaping
+   * Provides tests data for testEscaping.
    *
    * @return array
    *   An array of test data each containing of a twig template string and
diff --git a/core/tests/Drupal/Tests/Core/Theme/AjaxBasePageNegotiatorTest.php b/core/tests/Drupal/Tests/Core/Theme/AjaxBasePageNegotiatorTest.php
index 24746c3..b32cf26 100644
--- a/core/tests/Drupal/Tests/Core/Theme/AjaxBasePageNegotiatorTest.php
+++ b/core/tests/Drupal/Tests/Core/Theme/AjaxBasePageNegotiatorTest.php
@@ -17,23 +17,23 @@
 class AjaxBasePageNegotiatorTest extends UnitTestCase {
 
   /**
-   * @var \Drupal\Core\Theme\AjaxBasePageNegotiator
-   *
    * The AJAX base page negotiator.
+   *
+   * @var \Drupal\Core\Theme\AjaxBasePageNegotiator
    */
   protected $negotiator;
 
   /**
-   * @var \Drupal\Core\Access\CsrfTokenGenerator|\Prophecy\Prophecy\ProphecyInterface
-   *
    * The CSRF token generator.
+   *
+   * @var \Drupal\Core\Access\CsrfTokenGenerator|\Prophecy\Prophecy\ProphecyInterface
    */
   protected $tokenGenerator;
 
   /**
-   * @var \Symfony\Component\HttpFoundation\RequestStack
-   *
    * The request stack.
+   *
+   * @var \Symfony\Component\HttpFoundation\RequestStack
    */
   protected $requestStack;
 
diff --git a/core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php b/core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php
index 08b8117..182b13b 100644
--- a/core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php
+++ b/core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php
@@ -251,6 +251,7 @@ public function testValidatePropertyWithInvalidObjects($object) {
 
   /**
    * Provides data for testValidatePropertyWithInvalidObjects.
+   *
    * @return array
    */
   public function providerTestValidatePropertyWithInvalidObjects() {
diff --git a/core/tests/Drupal/Tests/Core/UnroutedUrlTest.php b/core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
index 680e2fd..e3d23f5 100644
--- a/core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
+++ b/core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
@@ -15,7 +15,7 @@
 class UnroutedUrlTest extends UnitTestCase {
 
   /**
-   * The URL assembler
+   * The URL assembler.
    *
    * @var \Drupal\Core\Utility\UnroutedUrlAssemblerInterface|\PHPUnit_Framework_MockObject_MockObject
    */
diff --git a/core/tests/Drupal/Tests/EntityViewTrait.php b/core/tests/Drupal/Tests/EntityViewTrait.php
index eb46e97..0b14259 100644
--- a/core/tests/Drupal/Tests/EntityViewTrait.php
+++ b/core/tests/Drupal/Tests/EntityViewTrait.php
@@ -30,6 +30,7 @@
    *   the current content language.
    * @param bool $reset
    *   (optional) Whether to clear the cache for this entity.
+   *
    * @return array
    *
    * @see drupal_render()
