summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJennifer Hodgdon2016-02-11 20:54:33 (GMT)
committerJennifer Hodgdon2016-02-11 20:54:33 (GMT)
commitd87ade36a470b9d7f8ff5a062a4e3babf69ef938 (patch)
treeedf2aa2dce273861b727b493ba314c0e8aaee688
parentdd0beee2517df756efdca2af1cb53fa97ddb5ba3 (diff)
Issue #2572643 by alexpott, attiks, Jelle_S, jhodgdon: Fix Drupal.Commenting.FileComment coding standard
-rw-r--r--core/includes/install.core.inc10
-rw-r--r--core/includes/tablesort.inc8
-rw-r--r--core/lib/Drupal/Component/Bridge/ZfExtensionManagerSfContainer.php1
-rw-r--r--core/lib/Drupal/Component/Datetime/DateTimePlus.php1
-rw-r--r--core/lib/Drupal/Component/PhpStorage/MTimeProtectedFileStorage.php1
-rw-r--r--core/lib/Drupal/Component/Utility/Number.php1
-rw-r--r--core/lib/Drupal/Core/Archiver/ArchiveTar.php1
-rw-r--r--core/lib/Drupal/Core/Config/Entity/ConfigDependencyDeleteFormTrait.php1
-rw-r--r--core/lib/Drupal/Core/Controller/TitleResolverInterface.php1
-rw-r--r--core/lib/Drupal/Core/Datetime/DateHelper.php1
-rw-r--r--core/lib/Drupal/Core/Datetime/DrupalDateTime.php1
-rw-r--r--core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterLazyRouteEnhancers.php1
-rw-r--r--core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterLazyRouteFilters.php1
-rw-r--r--core/lib/Drupal/Core/Entity/Query/Sql/pgsql/QueryFactory.php1
-rw-r--r--core/lib/Drupal/Core/Menu/LocalActionManagerInterface.php1
-rw-r--r--core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php1
-rw-r--r--core/modules/block_content/src/Tests/Views/RevisionRelationshipsTest.php1
-rw-r--r--core/modules/comment/comment.api.php6
-rw-r--r--core/modules/field/field.api.php5
-rw-r--r--core/modules/field/tests/modules/field_test/field_test.module8
-rw-r--r--core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldEmptyFormatter.php1
-rw-r--r--core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldNoSettingsFormatter.php1
-rw-r--r--core/modules/field/tests/modules/field_third_party_test/field_third_party_test.module5
-rw-r--r--core/modules/filter/src/Plugin/migrate/process/d6/FilterFormatPermission.php1
-rw-r--r--core/modules/forum/src/ForumIndexStorageInterface.php1
-rw-r--r--core/modules/language/src/Tests/LanguageConfigOverrideInstallTest.php1
-rw-r--r--core/modules/menu_link_content/tests/src/Unit/Plugin/migrate/source/MenuLinkSourceTest.php1
-rw-r--r--core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php1
-rw-r--r--core/modules/migrate/tests/src/Unit/process/SkipOnEmptyTest.php1
-rw-r--r--core/modules/node/node.api.php10
-rw-r--r--core/modules/node/src/Tests/Views/RevisionRelationshipsTest.php1
-rw-r--r--core/modules/options/src/Tests/OptionsFieldUnitTestBase.php1
-rw-r--r--core/modules/search/tests/modules/search_query_alter/search_query_alter.module4
-rw-r--r--core/modules/simpletest/files/php-1.txt1
-rw-r--r--core/modules/simpletest/files/php-2.php1
-rw-r--r--core/modules/simpletest/simpletest.module10
-rw-r--r--core/modules/simpletest/tests/fixtures/simpletest_phpunit_run_command_test.php5
-rw-r--r--core/modules/simpletest/tests/modules/simpletest_test/simpletest_test.install5
-rw-r--r--core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php1
-rw-r--r--core/modules/system/tests/fixtures/update/drupal-8.broken_routing.php5
-rw-r--r--core/modules/system/tests/fixtures/update/drupal-8.without_automated_cron.php5
-rw-r--r--core/modules/system/tests/modules/database_test/database_test.module5
-rw-r--r--core/modules/system/tests/modules/entity_test/entity_test.views.inc5
-rw-r--r--core/modules/system/tests/modules/module_required_test/module_required_test.module5
-rw-r--r--core/modules/system/tests/modules/module_test/module_test.implementations.inc5
-rw-r--r--core/modules/system/tests/modules/module_test/module_test.module5
-rw-r--r--core/modules/system/tests/modules/module_test/module_test.post_update.php5
-rw-r--r--core/modules/system/tests/modules/requirements1_test/requirements1_test.install5
-rw-r--r--core/modules/system/tests/modules/session_test/session_test.module5
-rw-r--r--core/modules/system/tests/modules/system_test/system_test.module5
-rw-r--r--core/modules/system/tests/modules/theme_page_test/theme_page_test.module5
-rw-r--r--core/modules/system/tests/modules/theme_test/theme_test.inc5
-rw-r--r--core/modules/system/tests/modules/theme_test/theme_test.module5
-rw-r--r--core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module5
-rw-r--r--core/modules/system/tests/modules/update_test_failing/update_test_failing.post_update.php5
-rw-r--r--core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.install5
-rw-r--r--core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php5
-rw-r--r--core/modules/system/tests/modules/url_alter_test/url_alter_test.install5
-rw-r--r--core/modules/system/tests/themes/test_basetheme/test_basetheme.theme1
-rw-r--r--core/modules/system/tests/themes/test_theme_nyan_cat_engine/test_theme_nyan_cat_engine.theme5
-rw-r--r--core/modules/taxonomy/src/Tests/VocabularyTranslationTest.php1
-rw-r--r--core/modules/text/src/Plugin/Field/FieldFormatter/TextTrimmedFormatter.php1
-rw-r--r--core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/toolbar_disable_user_toolbar.module5
-rw-r--r--core/modules/toolbar/toolbar.api.php1
-rw-r--r--core/modules/update/tests/modules/update_test/update_test.module4
-rw-r--r--core/modules/user/user.module10
-rw-r--r--core/modules/views/tests/fixtures/update/argument-placeholder.php5
-rw-r--r--core/modules/views/tests/fixtures/update/duplicate-field-handler.php5
-rw-r--r--core/modules/views/tests/modules/views_entity_test/views_entity_test.module1
-rw-r--r--core/phpcs.xml.dist1
-rw-r--r--core/scripts/db-tools.php5
-rw-r--r--[-rwxr-xr-x]core/scripts/dump-database-d8-mysql.php5
-rw-r--r--core/scripts/generate-proxy-class.php5
-rw-r--r--core/tests/Drupal/Tests/Core/Asset/CssCollectionGrouperUnitTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php1
-rw-r--r--core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc5
-rw-r--r--core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.module5
-rw-r--r--core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.hook.inc5
-rw-r--r--core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.module4
-rw-r--r--core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module5
-rw-r--r--core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all2/module_handler_test_all2.module5
82 files changed, 239 insertions, 47 deletions
diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index ffe27e0..d5fcd9c 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * API functions for installing Drupal.
+ */
+
use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\DrupalKernel;
use Drupal\Core\Config\BootstrapConfigStorageFactory;
@@ -29,11 +34,6 @@ use Drupal\user\Entity\User;
use GuzzleHttp\Exception\RequestException;
/**
- * @file
- * API functions for installing Drupal.
- */
-
-/**
* Do not run the task during the current installation request.
*
* This can be used to skip running an installation task when certain
diff --git a/core/includes/tablesort.inc b/core/includes/tablesort.inc
index 65b791f..95642b3 100644
--- a/core/includes/tablesort.inc
+++ b/core/includes/tablesort.inc
@@ -1,9 +1,5 @@
<?php
-use Drupal\Component\Utility\SafeMarkup;
-use Drupal\Core\Url;
-use Drupal\Component\Utility\UrlHelper;
-
/**
* @file
* Functions to aid in the creation of sortable tables.
@@ -13,6 +9,10 @@ use Drupal\Component\Utility\UrlHelper;
* column.
*/
+use Drupal\Component\Utility\SafeMarkup;
+use Drupal\Core\Url;
+use Drupal\Component\Utility\UrlHelper;
+
/**
* Initializes the table sort context.
*/
diff --git a/core/lib/Drupal/Component/Bridge/ZfExtensionManagerSfContainer.php b/core/lib/Drupal/Component/Bridge/ZfExtensionManagerSfContainer.php
index 1bd0a73..252b9a9 100644
--- a/core/lib/Drupal/Component/Bridge/ZfExtensionManagerSfContainer.php
+++ b/core/lib/Drupal/Component/Bridge/ZfExtensionManagerSfContainer.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Component\Bridge\ZfExtensionManagerSfContainer.
*/
+
namespace Drupal\Component\Bridge;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
diff --git a/core/lib/Drupal/Component/Datetime/DateTimePlus.php b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
index 530a63e..372fb00 100644
--- a/core/lib/Drupal/Component/Datetime/DateTimePlus.php
+++ b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Component\Datetime\DateTimePlus.
*/
+
namespace Drupal\Component\Datetime;
use Drupal\Component\Utility\ToStringTrait;
diff --git a/core/lib/Drupal/Component/PhpStorage/MTimeProtectedFileStorage.php b/core/lib/Drupal/Component/PhpStorage/MTimeProtectedFileStorage.php
index 067a8df..04ec0b9 100644
--- a/core/lib/Drupal/Component/PhpStorage/MTimeProtectedFileStorage.php
+++ b/core/lib/Drupal/Component/PhpStorage/MTimeProtectedFileStorage.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Component\PhpStorage\MTimeProtectedFileStorage.
*/
+
namespace Drupal\Component\PhpStorage;
/**
diff --git a/core/lib/Drupal/Component/Utility/Number.php b/core/lib/Drupal/Component/Utility/Number.php
index 99bedc8..59a199b 100644
--- a/core/lib/Drupal/Component/Utility/Number.php
+++ b/core/lib/Drupal/Component/Utility/Number.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Component\Utility\Number.
*/
+
namespace Drupal\Component\Utility;
/**
diff --git a/core/lib/Drupal/Core/Archiver/ArchiveTar.php b/core/lib/Drupal/Core/Archiver/ArchiveTar.php
index ecd7f25..24085ce 100644
--- a/core/lib/Drupal/Core/Archiver/ArchiveTar.php
+++ b/core/lib/Drupal/Core/Archiver/ArchiveTar.php
@@ -1,4 +1,5 @@
<?php
+// @codingStandardsIgnoreFile
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigDependencyDeleteFormTrait.php b/core/lib/Drupal/Core/Config/Entity/ConfigDependencyDeleteFormTrait.php
index 1f2660b..a642e03 100644
--- a/core/lib/Drupal/Core/Config/Entity/ConfigDependencyDeleteFormTrait.php
+++ b/core/lib/Drupal/Core/Config/Entity/ConfigDependencyDeleteFormTrait.php
@@ -5,7 +5,6 @@
* Contains \Drupal\Core\Config\Entity\ConfigDependencyDeleteFormTrait.
*/
-
namespace Drupal\Core\Config\Entity;
use Drupal\Core\Config\ConfigManagerInterface;
diff --git a/core/lib/Drupal/Core/Controller/TitleResolverInterface.php b/core/lib/Drupal/Core/Controller/TitleResolverInterface.php
index fa72e11..cbc49d5 100644
--- a/core/lib/Drupal/Core/Controller/TitleResolverInterface.php
+++ b/core/lib/Drupal/Core/Controller/TitleResolverInterface.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Core\Controller\TitleResolverInterface.
*/
+
namespace Drupal\Core\Controller;
use Symfony\Component\Routing\Route;
diff --git a/core/lib/Drupal/Core/Datetime/DateHelper.php b/core/lib/Drupal/Core/Datetime/DateHelper.php
index 4cfc746..0b04906 100644
--- a/core/lib/Drupal/Core/Datetime/DateHelper.php
+++ b/core/lib/Drupal/Core/Datetime/DateHelper.php
@@ -14,6 +14,7 @@
* translation should be hard-coded and wrapped in t() so the translation system
* will be able to process them.
*/
+
namespace Drupal\Core\Datetime;
/**
diff --git a/core/lib/Drupal/Core/Datetime/DrupalDateTime.php b/core/lib/Drupal/Core/Datetime/DrupalDateTime.php
index a5f196d..340edf6 100644
--- a/core/lib/Drupal/Core/Datetime/DrupalDateTime.php
+++ b/core/lib/Drupal/Core/Datetime/DrupalDateTime.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Core\Datetime\DrupalDateTime.
*/
+
namespace Drupal\Core\Datetime;
use Drupal\Component\Datetime\DateTimePlus;
diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterLazyRouteEnhancers.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterLazyRouteEnhancers.php
index 5f6c280..77be654 100644
--- a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterLazyRouteEnhancers.php
+++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterLazyRouteEnhancers.php
@@ -5,7 +5,6 @@
* Contains \Drupal\Core\DependencyInjection\Compiler\RegisterLazyRouteEnhancers.
*/
-
namespace Drupal\Core\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterLazyRouteFilters.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterLazyRouteFilters.php
index ad41e18..7f37eb4 100644
--- a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterLazyRouteFilters.php
+++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterLazyRouteFilters.php
@@ -5,7 +5,6 @@
* Contains \Drupal\Core\DependencyInjection\Compiler\RegisterLazyRouteFilters.
*/
-
namespace Drupal\Core\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
diff --git a/core/lib/Drupal/Core/Entity/Query/Sql/pgsql/QueryFactory.php b/core/lib/Drupal/Core/Entity/Query/Sql/pgsql/QueryFactory.php
index fb43f13..6aeba41 100644
--- a/core/lib/Drupal/Core/Entity/Query/Sql/pgsql/QueryFactory.php
+++ b/core/lib/Drupal/Core/Entity/Query/Sql/pgsql/QueryFactory.php
@@ -5,7 +5,6 @@
* Contains \Drupal\Core\Entity\Query\Sql\pgsql\QueryFactory.
*/
-
namespace Drupal\Core\Entity\Query\Sql\pgsql;
use Drupal\Core\Entity\Query\Sql\QueryFactory as BaseQueryFactory;
diff --git a/core/lib/Drupal/Core/Menu/LocalActionManagerInterface.php b/core/lib/Drupal/Core/Menu/LocalActionManagerInterface.php
index 5033485..af8aff8 100644
--- a/core/lib/Drupal/Core/Menu/LocalActionManagerInterface.php
+++ b/core/lib/Drupal/Core/Menu/LocalActionManagerInterface.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Core\Menu\LocalActionManagerInterface.
*/
+
namespace Drupal\Core\Menu;
use Drupal\Component\Plugin\PluginManagerInterface;
diff --git a/core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php b/core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php
index a9dec80..8f87f89 100644
--- a/core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php
+++ b/core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Core\Menu\LocalTaskManagerInterface.
*/
+
namespace Drupal\Core\Menu;
use Drupal\Component\Plugin\PluginManagerInterface;
diff --git a/core/modules/block_content/src/Tests/Views/RevisionRelationshipsTest.php b/core/modules/block_content/src/Tests/Views/RevisionRelationshipsTest.php
index 44f7c75..f3a7e25 100644
--- a/core/modules/block_content/src/Tests/Views/RevisionRelationshipsTest.php
+++ b/core/modules/block_content/src/Tests/Views/RevisionRelationshipsTest.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\block_content\Tests\Views\RevisionRelationshipsTest.
*/
+
namespace Drupal\block_content\Tests\Views;
use Drupal\block_content\Entity\BlockContentType;
diff --git a/core/modules/comment/comment.api.php b/core/modules/comment/comment.api.php
index 4b79b36..7b922cb 100644
--- a/core/modules/comment/comment.api.php
+++ b/core/modules/comment/comment.api.php
@@ -1,13 +1,13 @@
<?php
-use Drupal\comment\CommentInterface;
-use Drupal\Core\Url;
-
/**
* @file
* Hooks provided by the Comment module.
*/
+use Drupal\comment\CommentInterface;
+use Drupal\Core\Url;
+
/**
* @addtogroup hooks
* @{
diff --git a/core/modules/field/field.api.php b/core/modules/field/field.api.php
index a71d69d..8e11650 100644
--- a/core/modules/field/field.api.php
+++ b/core/modules/field/field.api.php
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Field API documentation.
+ */
+
+/**
* @addtogroup hooks
* @{
*/
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 058380a..2b1d06f 100644
--- a/core/modules/field/tests/modules/field_test/field_test.module
+++ b/core/modules/field/tests/modules/field_test/field_test.module
@@ -1,9 +1,5 @@
<?php
-use Drupal\field\FieldStorageConfigInterface;
-use Drupal\Core\Form\FormStateInterface;
-use Drupal\field\Entity\FieldStorageConfig;
-
/**
* @file
* Helper module for the Field API tests.
@@ -17,6 +13,10 @@ use Drupal\field\Entity\FieldStorageConfig;
* test helper functions
*/
+use Drupal\field\FieldStorageConfigInterface;
+use Drupal\Core\Form\FormStateInterface;
+use Drupal\field\Entity\FieldStorageConfig;
+
require_once __DIR__ . '/field_test.entity.inc';
require_once __DIR__ . '/field_test.field.inc';
diff --git a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldEmptyFormatter.php b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldEmptyFormatter.php
index cab0c17..59a9487 100644
--- a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldEmptyFormatter.php
+++ b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldEmptyFormatter.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\field_test\Plugin\Field\FieldFormatter\TestFieldEmptyFormatter.
*/
+
namespace Drupal\field_test\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FieldItemListInterface;
diff --git a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldNoSettingsFormatter.php b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldNoSettingsFormatter.php
index d01ef8b..22b0d6f 100644
--- a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldNoSettingsFormatter.php
+++ b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldNoSettingsFormatter.php
@@ -5,6 +5,7 @@
*
* Contains \Drupal\field_test\Plugin\Field\FieldFormatter\TestFieldNoSettingsFormatter.
*/
+
namespace Drupal\field_test\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FieldItemListInterface;
diff --git a/core/modules/field/tests/modules/field_third_party_test/field_third_party_test.module b/core/modules/field/tests/modules/field_third_party_test/field_third_party_test.module
index 8726b18..fa0e418 100644
--- a/core/modules/field/tests/modules/field_third_party_test/field_third_party_test.module
+++ b/core/modules/field/tests/modules/field_third_party_test/field_third_party_test.module
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Test module.
+ */
+
use Drupal\Core\Form\FormStateInterface;
/**
diff --git a/core/modules/filter/src/Plugin/migrate/process/d6/FilterFormatPermission.php b/core/modules/filter/src/Plugin/migrate/process/d6/FilterFormatPermission.php
index 9ae5a71..3861994 100644
--- a/core/modules/filter/src/Plugin/migrate/process/d6/FilterFormatPermission.php
+++ b/core/modules/filter/src/Plugin/migrate/process/d6/FilterFormatPermission.php
@@ -5,7 +5,6 @@
* Contains \Drupal\filter\Plugin\migrate\process\d6\FilterFormatPermission.
*/
-
namespace Drupal\filter\Plugin\migrate\process\d6;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
diff --git a/core/modules/forum/src/ForumIndexStorageInterface.php b/core/modules/forum/src/ForumIndexStorageInterface.php
index 4d59fb3..1a4ce18 100644
--- a/core/modules/forum/src/ForumIndexStorageInterface.php
+++ b/core/modules/forum/src/ForumIndexStorageInterface.php
@@ -3,6 +3,7 @@
* @file
* Contains \Drupal\forum\ForumIndexStorageInterface.
*/
+
namespace Drupal\forum;
use Drupal\node\NodeInterface;
diff --git a/core/modules/language/src/Tests/LanguageConfigOverrideInstallTest.php b/core/modules/language/src/Tests/LanguageConfigOverrideInstallTest.php
index 28d6330..b3cdd09 100644
--- a/core/modules/language/src/Tests/LanguageConfigOverrideInstallTest.php
+++ b/core/modules/language/src/Tests/LanguageConfigOverrideInstallTest.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\language\Tests\LanguageConfigOverrideInstallTest.
*/
+
namespace Drupal\language\Tests;
use Drupal\language\Entity\ConfigurableLanguage;
diff --git a/core/modules/menu_link_content/tests/src/Unit/Plugin/migrate/source/MenuLinkSourceTest.php b/core/modules/menu_link_content/tests/src/Unit/Plugin/migrate/source/MenuLinkSourceTest.php
index 9484ca4..72955cb 100644
--- a/core/modules/menu_link_content/tests/src/Unit/Plugin/migrate/source/MenuLinkSourceTest.php
+++ b/core/modules/menu_link_content/tests/src/Unit/Plugin/migrate/source/MenuLinkSourceTest.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\Tests\menu_link_content\Unit\Plugin\migrate\source\MenuLinkSourceTest.
*/
+
namespace Drupal\Tests\menu_link_content\Unit\Plugin\migrate\source;
use Drupal\Component\Utility\Unicode;
diff --git a/core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php b/core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php
index 78fbd14..b15b321 100644
--- a/core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php
+++ b/core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php
@@ -5,7 +5,6 @@
* Contains \Drupal\migrate\Plugin\migrate\process\MenuLinkContent.
*/
-
namespace Drupal\migrate\Plugin\migrate\process;
use Drupal\Core\Entity\EntityStorageInterface;
diff --git a/core/modules/migrate/tests/src/Unit/process/SkipOnEmptyTest.php b/core/modules/migrate/tests/src/Unit/process/SkipOnEmptyTest.php
index 3a0d08c..beea773 100644
--- a/core/modules/migrate/tests/src/Unit/process/SkipOnEmptyTest.php
+++ b/core/modules/migrate/tests/src/Unit/process/SkipOnEmptyTest.php
@@ -5,7 +5,6 @@
* Contains \Drupal\Tests\migrate\Unit\process\SkipOnEmptyTest.
*/
-
namespace Drupal\Tests\migrate\Unit\process;
use Drupal\migrate\Plugin\migrate\process\SkipOnEmpty;
diff --git a/core/modules/node/node.api.php b/core/modules/node/node.api.php
index af07dff..823e1ca 100644
--- a/core/modules/node/node.api.php
+++ b/core/modules/node/node.api.php
@@ -1,15 +1,15 @@
<?php
-use Drupal\node\NodeInterface;
-use Drupal\Component\Utility\Html;
-use Drupal\Component\Utility\Xss;
-use Drupal\Core\Access\AccessResult;
-
/**
* @file
* Hooks specific to the Node module.
*/
+use Drupal\node\NodeInterface;
+use Drupal\Component\Utility\Html;
+use Drupal\Component\Utility\Xss;
+use Drupal\Core\Access\AccessResult;
+
/**
* @addtogroup hooks
* @{
diff --git a/core/modules/node/src/Tests/Views/RevisionRelationshipsTest.php b/core/modules/node/src/Tests/Views/RevisionRelationshipsTest.php
index c36b377..306df50 100644
--- a/core/modules/node/src/Tests/Views/RevisionRelationshipsTest.php
+++ b/core/modules/node/src/Tests/Views/RevisionRelationshipsTest.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\node\Tests\Views\RevisionRelationshipsTest.
*/
+
namespace Drupal\node\Tests\Views;
use Drupal\views\Views;
diff --git a/core/modules/options/src/Tests/OptionsFieldUnitTestBase.php b/core/modules/options/src/Tests/OptionsFieldUnitTestBase.php
index 8349384..2ce3054 100644
--- a/core/modules/options/src/Tests/OptionsFieldUnitTestBase.php
+++ b/core/modules/options/src/Tests/OptionsFieldUnitTestBase.php
@@ -5,7 +5,6 @@
* Contains \Drupal\options\Tests\OptionsFieldUnitTestBase.
*/
-
namespace Drupal\options\Tests;
use Drupal\field\Tests\FieldUnitTestBase;
diff --git a/core/modules/search/tests/modules/search_query_alter/search_query_alter.module b/core/modules/search/tests/modules/search_query_alter/search_query_alter.module
index 57bdb16..aee8e6c 100644
--- a/core/modules/search/tests/modules/search_query_alter/search_query_alter.module
+++ b/core/modules/search/tests/modules/search_query_alter/search_query_alter.module
@@ -1,12 +1,12 @@
<?php
-use Drupal\Core\Database\Query\AlterableInterface;
-
/**
* @file
* Test module that alters search queries.
*/
+use Drupal\Core\Database\Query\AlterableInterface;
+
/**
* Implements hook_query_TAG_alter(): tag search_$type with $type node_search.
*/
diff --git a/core/modules/simpletest/files/php-1.txt b/core/modules/simpletest/files/php-1.txt
index 52788b6..c641a69 100644
--- a/core/modules/simpletest/files/php-1.txt
+++ b/core/modules/simpletest/files/php-1.txt
@@ -1,3 +1,4 @@
<?php
+// @codingStandardsIgnoreFile
print 'SimpleTest PHP was executed!';
?>
diff --git a/core/modules/simpletest/files/php-2.php b/core/modules/simpletest/files/php-2.php
index 615a8d7..29738aa 100644
--- a/core/modules/simpletest/files/php-2.php
+++ b/core/modules/simpletest/files/php-2.php
@@ -1,2 +1,3 @@
<?php
+// @codingStandardsIgnoreFile
print 'SimpleTest PHP was executed!';
diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module
index 74d348e..ddd6828 100644
--- a/core/modules/simpletest/simpletest.module
+++ b/core/modules/simpletest/simpletest.module
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Provides testing functionality.
+ */
+
use Drupal\Core\Asset\AttachedAssetsInterface;
use Drupal\Core\Database\Database;
use Drupal\Core\Render\Element;
@@ -9,11 +14,6 @@ use Drupal\simpletest\TestDiscovery;
use Symfony\Component\Process\PhpExecutableFinder;
/**
- * @file
- * Provides testing functionality.
- */
-
-/**
* Implements hook_help().
*/
function simpletest_help($route_name, RouteMatchInterface $route_match) {
diff --git a/core/modules/simpletest/tests/fixtures/simpletest_phpunit_run_command_test.php b/core/modules/simpletest/tests/fixtures/simpletest_phpunit_run_command_test.php
index c86a9e6..dd47547 100644
--- a/core/modules/simpletest/tests/fixtures/simpletest_phpunit_run_command_test.php
+++ b/core/modules/simpletest/tests/fixtures/simpletest_phpunit_run_command_test.php
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Contains \Drupal\Tests\simpletest\Unit\SimpletestPhpunitRunCommandTestWillDie.
+ */
+
namespace Drupal\Tests\simpletest\Unit;
use Drupal\Tests\UnitTestCase;
diff --git a/core/modules/simpletest/tests/modules/simpletest_test/simpletest_test.install b/core/modules/simpletest/tests/modules/simpletest_test/simpletest_test.install
index b0ccbc7..f5b4a39 100644
--- a/core/modules/simpletest/tests/modules/simpletest_test/simpletest_test.install
+++ b/core/modules/simpletest/tests/modules/simpletest_test/simpletest_test.install
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Install hooks for test module.
+ */
+
+/**
* Implements hook_install().
*/
function simpletest_test_install() {
diff --git a/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php b/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php
index 77b7c7e..cc6713d 100644
--- a/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php
+++ b/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\system\Tests\Entity\EntityQueryAggregateTest.
*/
+
namespace Drupal\system\Tests\Entity;
use Drupal\field\Entity\FieldStorageConfig;
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.broken_routing.php b/core/modules/system/tests/fixtures/update/drupal-8.broken_routing.php
index 3c5e9af..7a83e87 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.broken_routing.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.broken_routing.php
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Test fixture.
+ */
+
use Drupal\Core\Database\Database;
diff --git a/core/modules/system/tests/fixtures/update/drupal-8.without_automated_cron.php b/core/modules/system/tests/fixtures/update/drupal-8.without_automated_cron.php
index 81e4e72..87b6355 100644
--- a/core/modules/system/tests/fixtures/update/drupal-8.without_automated_cron.php
+++ b/core/modules/system/tests/fixtures/update/drupal-8.without_automated_cron.php
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Test fixture.
+ */
+
$connection = Drupal\Core\Database\Database::getConnection();
$config = $connection;
diff --git a/core/modules/system/tests/modules/database_test/database_test.module b/core/modules/system/tests/modules/database_test/database_test.module
index b5ee9c8..460480a 100644
--- a/core/modules/system/tests/modules/database_test/database_test.module
+++ b/core/modules/system/tests/modules/database_test/database_test.module
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Database test module.
+ */
+
use Drupal\Core\Database\Query\AlterableInterface;
/**
diff --git a/core/modules/system/tests/modules/entity_test/entity_test.views.inc b/core/modules/system/tests/modules/entity_test/entity_test.views.inc
index d74af47..53d37da 100644
--- a/core/modules/system/tests/modules/entity_test/entity_test.views.inc
+++ b/core/modules/system/tests/modules/entity_test/entity_test.views.inc
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Include file for test module.
+ */
+
+/**
* Implements hook_views_data_alter().
*/
function entity_test_views_data_alter(&$data) {
diff --git a/core/modules/system/tests/modules/module_required_test/module_required_test.module b/core/modules/system/tests/modules/module_required_test/module_required_test.module
index fbb6f10..6ca1759 100644
--- a/core/modules/system/tests/modules/module_required_test/module_required_test.module
+++ b/core/modules/system/tests/modules/module_required_test/module_required_test.module
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Test module.
+ */
+
use Drupal\Core\Extension\Extension;
/**
diff --git a/core/modules/system/tests/modules/module_test/module_test.implementations.inc b/core/modules/system/tests/modules/module_test/module_test.implementations.inc
index a21f7ca..c0f8a2a 100644
--- a/core/modules/system/tests/modules/module_test/module_test.implementations.inc
+++ b/core/modules/system/tests/modules/module_test/module_test.implementations.inc
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Include file for test module.
+ */
+
+/**
* Implements hook_altered_test_hook().
*
* @see module_test_module_implements_alter()
diff --git a/core/modules/system/tests/modules/module_test/module_test.module b/core/modules/system/tests/modules/module_test/module_test.module
index 2d34293..ab5a4fc 100644
--- a/core/modules/system/tests/modules/module_test/module_test.module
+++ b/core/modules/system/tests/modules/module_test/module_test.module
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Test module.
+ */
+
use Drupal\Core\Extension\Extension;
/**
diff --git a/core/modules/system/tests/modules/module_test/module_test.post_update.php b/core/modules/system/tests/modules/module_test/module_test.post_update.php
index 2226578..b3785fc 100644
--- a/core/modules/system/tests/modules/module_test/module_test.post_update.php
+++ b/core/modules/system/tests/modules/module_test/module_test.post_update.php
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Post update functions for test module.
+ */
+
+/**
* Test post update function.
*/
function module_test_post_update_test() {
diff --git a/core/modules/system/tests/modules/requirements1_test/requirements1_test.install b/core/modules/system/tests/modules/requirements1_test/requirements1_test.install
index 80220b9..c884893 100644
--- a/core/modules/system/tests/modules/requirements1_test/requirements1_test.install
+++ b/core/modules/system/tests/modules/requirements1_test/requirements1_test.install
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Install hooks for test module.
+ */
+
+/**
* Implements hook_requirements().
*/
function requirements1_test_requirements($phase) {
diff --git a/core/modules/system/tests/modules/session_test/session_test.module b/core/modules/system/tests/modules/session_test/session_test.module
index 6a08211..b3ceff8 100644
--- a/core/modules/system/tests/modules/session_test/session_test.module
+++ b/core/modules/system/tests/modules/session_test/session_test.module
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Test module.
+ */
+
+/**
* Implements hook_user_login().
*/
function session_test_user_login($account) {
diff --git a/core/modules/system/tests/modules/system_test/system_test.module b/core/modules/system/tests/modules/system_test/system_test.module
index eef3516..04fa2da 100644
--- a/core/modules/system/tests/modules/system_test/system_test.module
+++ b/core/modules/system/tests/modules/system_test/system_test.module
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Test module.
+ */
+
use Drupal\Core\Extension\Extension;
use Drupal\Core\Routing\RouteMatchInterface;
diff --git a/core/modules/system/tests/modules/theme_page_test/theme_page_test.module b/core/modules/system/tests/modules/theme_page_test/theme_page_test.module
index 7373fab..89e2c57 100644
--- a/core/modules/system/tests/modules/theme_page_test/theme_page_test.module
+++ b/core/modules/system/tests/modules/theme_page_test/theme_page_test.module
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Test module.
+ */
+
use Drupal\Core\Extension\Extension;
/**
diff --git a/core/modules/system/tests/modules/theme_test/theme_test.inc b/core/modules/system/tests/modules/theme_test/theme_test.inc
index 6cde683..1e0a7a6 100644
--- a/core/modules/system/tests/modules/theme_test/theme_test.inc
+++ b/core/modules/system/tests/modules/theme_test/theme_test.inc
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Include file for test module.
+ */
+
+/**
* Returns HTML for the 'theme_test' theme hook used by tests.
*/
function theme_theme_test($variables) {
diff --git a/core/modules/system/tests/modules/theme_test/theme_test.module b/core/modules/system/tests/modules/theme_test/theme_test.module
index f64da1e..540185e 100644
--- a/core/modules/system/tests/modules/theme_test/theme_test.module
+++ b/core/modules/system/tests/modules/theme_test/theme_test.module
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Test module.
+ */
+
use Drupal\Core\Extension\Extension;
/**
diff --git a/core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module b/core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module
index cba0d5b..0d6bad8 100644
--- a/core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module
+++ b/core/modules/system/tests/modules/twig_theme_test/twig_theme_test.module
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Test module.
+ */
+
+/**
* Implements hook_theme().
*/
function twig_theme_test_theme($existing, $type, $theme, $path) {
diff --git a/core/modules/system/tests/modules/update_test_failing/update_test_failing.post_update.php b/core/modules/system/tests/modules/update_test_failing/update_test_failing.post_update.php
index 5e55ca3..12b60f6 100644
--- a/core/modules/system/tests/modules/update_test_failing/update_test_failing.post_update.php
+++ b/core/modules/system/tests/modules/update_test_failing/update_test_failing.post_update.php
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Post update functions for test module.
+ */
+
+/**
* First update, should not be run since this module's update hooks fail.
*/
function update_test_failing_post_update_first() {
diff --git a/core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.install b/core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.install
index f754d94..17158be 100644
--- a/core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.install
+++ b/core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.install
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Install hooks for test module.
+ */
+
+/**
* Normal update_N() function.
*/
function update_test_postupdate_update_8001() {
diff --git a/core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php b/core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
index ece8b7e..cddad74 100644
--- a/core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
+++ b/core/modules/system/tests/modules/update_test_postupdate/update_test_postupdate.post_update.php
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Post update functions for test module.
+ */
+
+/**
* First update.
*/
function update_test_postupdate_post_update_first() {
diff --git a/core/modules/system/tests/modules/url_alter_test/url_alter_test.install b/core/modules/system/tests/modules/url_alter_test/url_alter_test.install
index edfa7f0..0237a9e 100644
--- a/core/modules/system/tests/modules/url_alter_test/url_alter_test.install
+++ b/core/modules/system/tests/modules/url_alter_test/url_alter_test.install
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Install hooks for test module.
+ */
+
+/**
* Implements hook_install().
*/
function url_alter_test_install() {
diff --git a/core/modules/system/tests/themes/test_basetheme/test_basetheme.theme b/core/modules/system/tests/themes/test_basetheme/test_basetheme.theme
index 1467e49..42e543b 100644
--- a/core/modules/system/tests/themes/test_basetheme/test_basetheme.theme
+++ b/core/modules/system/tests/themes/test_basetheme/test_basetheme.theme
@@ -4,6 +4,7 @@
* @file
* Add hooks for tests to use.
*/
+
use Drupal\views\Plugin\views\cache\CachePluginBase;
use Drupal\views\ViewExecutable;
diff --git a/core/modules/system/tests/themes/test_theme_nyan_cat_engine/test_theme_nyan_cat_engine.theme b/core/modules/system/tests/themes/test_theme_nyan_cat_engine/test_theme_nyan_cat_engine.theme
index 5b69a12..ee2748a 100644
--- a/core/modules/system/tests/themes/test_theme_nyan_cat_engine/test_theme_nyan_cat_engine.theme
+++ b/core/modules/system/tests/themes/test_theme_nyan_cat_engine/test_theme_nyan_cat_engine.theme
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Test theme.
+ */
+
+/**
* Implements hook_preprocess_theme_test_template_test().
*/
function test_theme_nyan_cat_engine_preprocess_theme_test_template_test(&$variables) {
diff --git a/core/modules/taxonomy/src/Tests/VocabularyTranslationTest.php b/core/modules/taxonomy/src/Tests/VocabularyTranslationTest.php
index 4152135..b0e442e 100644
--- a/core/modules/taxonomy/src/Tests/VocabularyTranslationTest.php
+++ b/core/modules/taxonomy/src/Tests/VocabularyTranslationTest.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\taxonomy\Tests\VocabularyTranslationTest.
*/
+
namespace Drupal\taxonomy\Tests;
use Drupal\Component\Utility\Unicode;
diff --git a/core/modules/text/src/Plugin/Field/FieldFormatter/TextTrimmedFormatter.php b/core/modules/text/src/Plugin/Field/FieldFormatter/TextTrimmedFormatter.php
index 9cb3038..85abaf4 100644
--- a/core/modules/text/src/Plugin/Field/FieldFormatter/TextTrimmedFormatter.php
+++ b/core/modules/text/src/Plugin/Field/FieldFormatter/TextTrimmedFormatter.php
@@ -4,6 +4,7 @@
* @file
* Contains \Drupal\text\Plugin\Field\FieldFormatter\TextTrimmedFormatter.
*/
+
namespace Drupal\text\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FormatterBase;
diff --git a/core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/toolbar_disable_user_toolbar.module b/core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/toolbar_disable_user_toolbar.module
index 0678998..27ce3e0 100644
--- a/core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/toolbar_disable_user_toolbar.module
+++ b/core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/toolbar_disable_user_toolbar.module
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Test module.
+ */
+
+/**
* Implements hook_toolbar_alter().
*/
function toolbar_disable_user_toolbar_toolbar_alter(&$items) {
diff --git a/core/modules/toolbar/toolbar.api.php b/core/modules/toolbar/toolbar.api.php
index bcddaf8..b2d0409 100644
--- a/core/modules/toolbar/toolbar.api.php
+++ b/core/modules/toolbar/toolbar.api.php
@@ -4,6 +4,7 @@
* @file
* Hooks provided by the toolbar module.
*/
+
use Drupal\Core\Url;
/**
diff --git a/core/modules/update/tests/modules/update_test/update_test.module b/core/modules/update/tests/modules/update_test/update_test.module
index f8de3cd..04a77e9 100644
--- a/core/modules/update/tests/modules/update_test/update_test.module
+++ b/core/modules/update/tests/modules/update_test/update_test.module
@@ -1,12 +1,12 @@
<?php
-use Drupal\Core\Extension\Extension;
-
/**
* @file
* Module for testing Update Manager functionality.
*/
+use Drupal\Core\Extension\Extension;
+
/**
* Implements hook_system_info_alter().
*
diff --git a/core/modules/user/user.module b/core/modules/user/user.module
index f7b3968..0e9cedb 100644
--- a/core/modules/user/user.module
+++ b/core/modules/user/user.module
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Enables the user registration and login system.
+ */
+
use Drupal\Component\Utility\Crypt;
use Drupal\Component\Render\PlainTextOutput;
use Drupal\Component\Utility\Unicode;
@@ -20,11 +25,6 @@ use Drupal\user\RoleInterface;
use Drupal\user\UserInterface;
/**
- * @file
- * Enables the user registration and login system.
- */
-
-/**
* Maximum length of username text field.
*
* Keep this under 191 characters so we can use a unique constraint in MySQL.
diff --git a/core/modules/views/tests/fixtures/update/argument-placeholder.php b/core/modules/views/tests/fixtures/update/argument-placeholder.php
index 9b7a6d9..525299c 100644
--- a/core/modules/views/tests/fixtures/update/argument-placeholder.php
+++ b/core/modules/views/tests/fixtures/update/argument-placeholder.php
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Text fixture.
+ */
+
$connection = Drupal\Core\Database\Database::getConnection();
$connection->insert('config')
diff --git a/core/modules/views/tests/fixtures/update/duplicate-field-handler.php b/core/modules/views/tests/fixtures/update/duplicate-field-handler.php
index 2b78f12..69aa8e8 100644
--- a/core/modules/views/tests/fixtures/update/duplicate-field-handler.php
+++ b/core/modules/views/tests/fixtures/update/duplicate-field-handler.php
@@ -1,5 +1,10 @@
<?php
+/**
+ * @file
+ * Test fixture.
+ */
+
$connection = Drupal\Core\Database\Database::getConnection();
$connection->insert('config')
diff --git a/core/modules/views/tests/modules/views_entity_test/views_entity_test.module b/core/modules/views/tests/modules/views_entity_test/views_entity_test.module
index f71a65b..a44fd97 100644
--- a/core/modules/views/tests/modules/views_entity_test/views_entity_test.module
+++ b/core/modules/views/tests/modules/views_entity_test/views_entity_test.module
@@ -4,6 +4,7 @@
* @file
* Contains main module functionality.
*/
+
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Field\BaseFieldDefinition;
diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist
index 25abf71..cadf544 100644
--- a/core/phpcs.xml.dist
+++ b/core/phpcs.xml.dist
@@ -19,7 +19,6 @@
<exclude name="Drupal.Classes.UnusedUseStatement"/>
<exclude name="Drupal.Commenting.ClassComment"/>
<exclude name="Drupal.Commenting.DocComment"/>
- <exclude name="Drupal.Commenting.FileComment"/>
<exclude name="Drupal.Commenting.FunctionComment"/>
<exclude name="Drupal.Commenting.HookComment"/>
<exclude name="Drupal.Commenting.InlineComment"/>
diff --git a/core/scripts/db-tools.php b/core/scripts/db-tools.php
index 316c62f..476b422 100644
--- a/core/scripts/db-tools.php
+++ b/core/scripts/db-tools.php
@@ -1,6 +1,11 @@
#!/usr/bin/env php
<?php
+/**
+ * @file
+ * A command line application to import a database generation script.
+ */
+
use Drupal\Core\Command\DbToolsApplication;
use Drupal\Core\DrupalKernel;
use Drupal\Core\Site\Settings;
diff --git a/core/scripts/dump-database-d8-mysql.php b/core/scripts/dump-database-d8-mysql.php
index c4f7507..73f7b94 100755..100644
--- a/core/scripts/dump-database-d8-mysql.php
+++ b/core/scripts/dump-database-d8-mysql.php
@@ -1,6 +1,11 @@
#!/usr/bin/env php
<?php
+/**
+ * @file
+ * A command line application to dump a database to a generation script.
+ */
+
use Drupal\Core\Command\DbDumpApplication;
use Drupal\Core\DrupalKernel;
use Drupal\Core\Site\Settings;
diff --git a/core/scripts/generate-proxy-class.php b/core/scripts/generate-proxy-class.php
index d5f0e43..8eeb663 100644
--- a/core/scripts/generate-proxy-class.php
+++ b/core/scripts/generate-proxy-class.php
@@ -1,6 +1,11 @@
#!/usr/bin/env php
<?php
+/**
+ * @file
+ * A command line application to generate proxy classes.
+ */
+
use Drupal\Core\Command\GenerateProxyClassApplication;
use Drupal\Core\DrupalKernel;
use Drupal\Core\ProxyBuilder\ProxyBuilder;
diff --git a/core/tests/Drupal/Tests/Core/Asset/CssCollectionGrouperUnitTest.php b/core/tests/Drupal/Tests/Core/Asset/CssCollectionGrouperUnitTest.php
index 8147360..0a35eec 100644
--- a/core/tests/Drupal/Tests/Core/Asset/CssCollectionGrouperUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/CssCollectionGrouperUnitTest.php
@@ -5,7 +5,6 @@
* Contains \Drupal\Tests\Core\Asset\CssCollectionGrouperUnitTest.
*/
-
namespace Drupal\Tests\Core\Asset;
use Drupal\Core\Asset\CssCollectionGrouper;
diff --git a/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php b/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
index 48a92ee..29011e5 100644
--- a/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
@@ -5,7 +5,6 @@
* Contains \Drupal\Tests\Core\Asset\CssCollectionRendererUnitTest.
*/
-
namespace {
/**
diff --git a/core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php b/core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
index 5922bf1..d4cad06 100644
--- a/core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
@@ -5,7 +5,6 @@
* Contains \Drupal\Tests\Core\Asset\CssOptimizerUnitTest.
*/
-
namespace {
/**
diff --git a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc
index 3576f28..00c781d 100644
--- a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc
+++ b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc
@@ -1,3 +1,8 @@
<?php
+/**
+ * @file
+ * Include file for test module.
+ */
+
function module_handler_test_hook_include() {}
diff --git a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.module b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.module
index 3e36a10..18bf23c 100644
--- a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.module
+++ b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.module
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Test module.
+ */
+
+/**
* Implements hook_hook_info().
*/
function module_handler_test_hook_info() {
diff --git a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.hook.inc b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.hook.inc
index 6c8e0b8..718791b 100644
--- a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.hook.inc
+++ b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.hook.inc
@@ -1,3 +1,8 @@
<?php
+/**
+ * @file
+ * Include file for test module.
+ */
+
function module_handler_test_added_hook($arg) { return $arg; }
diff --git a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.module b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.module
index 183e668..0a46c33 100644
--- a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.module
+++ b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_added/module_handler_test_added.module
@@ -1,4 +1,8 @@
<?php
+/**
+ * @file
+ * Test module.
+ */
function module_handler_test_added_helper($arg) { return $arg; }
diff --git a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module
index ccb4ee9..1555aec 100644
--- a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module
+++ b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all1/module_handler_test_all1.module
@@ -1,4 +1,9 @@
<?php
+/**
+ * @file
+ * Test module.
+ */
+
// return an array to test nested merge in invoke all.
function module_handler_test_all1_hook($arg) { return array($arg); }
diff --git a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all2/module_handler_test_all2.module b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all2/module_handler_test_all2.module
index 48ce442..9275ce3 100644
--- a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all2/module_handler_test_all2.module
+++ b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test_all2/module_handler_test_all2.module
@@ -1,3 +1,8 @@
<?php
+/**
+ * @file
+ * Test module.
+ */
+
function module_handler_test_all2_hook($arg) { return $arg; }