diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index ffe27e0c43ed3162e0a445b55453f3ceec10fcf2..d5fcd9cdece1d84a5800d3451c35fa954628f8b3 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; @@ -28,11 +33,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. * diff --git a/core/includes/tablesort.inc b/core/includes/tablesort.inc index 65b791fc66c9aaf4bfaf35769b6c0c8ff9dc81b2..95642b386925f51ba5ee3a3fcd16a7c1e1ddba88 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 @@ * 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 1bd0a7347711ed424350dec77915132532ed04da..252b9a9efb1f4b10c0fb3aaaf227d81e9d70584f 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 530a63e285cd7c17f73ebece18ae3073971d522a..372fb006a21789da90885b7a19d8c5ceb5a2e9e2 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 067a8df7cce9870169c527edf98ccd8847e971fa..04ec0b9681f75d6cc5d9883948ca12b629264b4e 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 99bedc873a36ae3ff9f98312dab13de90010197e..59a199b2b939d339990c357a0366526dc9c31b16 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 ecd7f256e8cb37416788f03081a95a7cfe0e3a9d..24085cea9fe6ef1b5580b50db6e1c889664fd55a 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 1f2660b7d5929da58c2de4846d026820935db4dd..a642e03e7f81d666b442385ce0e82549e8c232f1 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 fa72e1141a026d3c76351c2d837cb7b47b62c67e..cbc49d529aff7b1ec79abb0d2f14873107d9d27e 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 4cfc74640fae9892c5d4d10ca37eadecd135796f..0b0490674469c9df9dede674209505b5c5d31faa 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 a5f196dec63c7fdc0ac1a526b569e163a1029965..340edf629fec2fef51278d1e56d009e2e09e0f91 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 5f6c28012b6bd2df5730e6d4f6e0d488d3e0d769..77be654468c253a58e7a77fbd65f7445e0fb2927 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 ad41e18da9de8555333ce470f25e5b6f66de9f90..7f37eb43e351575439f56d471898e320ed28b31f 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 fb43f13cccb7dbe19b2c4cb59175762260b26b80..6aeba41d2c2c269139adcc6dcb3f23c484d8d0e6 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 503348501c1214c774432837fdec4884449013f4..af8aff857851dcffdc0506063ed0644ae3c29c2c 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 a9dec80bebce975f15ab25daa7cb84726edc235c..8f87f89d8fb73b8e97a52f8c74e90dc265973fc2 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 44f7c751d8e3a0a97f97f1437c8f782e51b9aa08..f3a7e25a515cbd84d5876379094e24409c6f30b4 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 4b79b3686bd8cb86b43e88dc05a8eabb52dafb89..7b922cbcc06540f0c97eee6b4ef11509afef6881 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 a71d69df778c5d0f285eea8aee60080d803d3f0f..8e11650f5cb207a5068ed37b279394d4febad0d6 100644 --- a/core/modules/field/field.api.php +++ b/core/modules/field/field.api.php @@ -1,5 +1,10 @@ <?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 058380a8d4ef95e4959a29a6689fec1e7981f8c3..2b1d06f1b76e28a252d9ed9a973e6741a0d5353e 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 @@ * 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 cab0c1769ec75e8d85fcee17bf3784e15cc6373d..59a94870e72def347f0c58e3b2d9f12186588bd6 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 d01ef8b73e68df48f71887528635353a508b8adb..22b0d6f67532fa53d0dc59b098b547bef07ace75 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 8726b18b5dc5d6c537e777572f9dd5670d5eeded..fa0e41812d415cc305f49eb03b1c54e5589d95ae 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 9ae5a71cb4fc281b93c574883cfa9e6542409b81..38619942cdc5bf437e4fcace97042cb3668538d7 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 4d59fb30b7708db0c9f4f4638d1b4691efe596b7..1a4ce18b764450a4c8af75385b79e29d43d45ca6 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 28d6330dd299effb55e19404b28fed588574da2d..b3cdd092ad83f22abd39ec99f48b5eb0f2a87447 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 9484ca4d8c60ccf169a293064f40985dc7d245dc..72955cb779f731d94a39243683eb59c405cc9dd3 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 78fbd14a5619b14a8b91b66179dc44775331992e..b15b32154c1db9fb91576a337c38ce9e37a9524c 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 3a0d08c833b46e03545b177e6ecd2f36e3e0a27f..beea773d69dc59b8a381bbbb2ecb0114e556d632 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 af07dff91e13389c4f26aaeef24189ef3a4813b0..823e1ca9f596b6ce4dd190952d30d97349884b12 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 c36b377c02313fd94500513b33f45ad2a2c42da4..306df50a1f53ce76df1f2e2a99e6e70a83d1987d 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 8349384260ee3d77c86eb41ea6476bdddd7c3b42..2ce30543518e11aad68444ec18577114c02282a4 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 57bdb166e6838c560bacf76cdbd45a547a2de97c..aee8e6c6d32ddf800c7032bc05f1bb1ea7087bb1 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 52788b6feac0266e42e90d00f61e2689768edf69..c641a6968089726d59a86ca5cbe891c25b68b83d 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 615a8d78fb48a76e1f2027b9f166e754be5b78c1..29738aabdb8f1dd2733f0775f2bbc1a4ffaf2f6f 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 74d348e9234dd72f6ff82ee17dcdc74370ec8bd4..ddd6828413e322eabe53d16b33290dba2446c908 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; @@ -8,11 +13,6 @@ use Drupal\simpletest\TestDiscovery; use Symfony\Component\Process\PhpExecutableFinder; -/** - * @file - * Provides testing functionality. - */ - /** * Implements hook_help(). */ 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 c86a9e619d4b4721b4428a440f7740e37f196f0e..dd47547b9110ac6ed374b288bf730ff4f6d2d8f4 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 b0ccbc7dfeec30ee2badf20adcf76b63c1dafd9d..f5b4a3929537bae373cb4bf37114653afbe3eb35 100644 --- a/core/modules/simpletest/tests/modules/simpletest_test/simpletest_test.install +++ b/core/modules/simpletest/tests/modules/simpletest_test/simpletest_test.install @@ -1,5 +1,10 @@ <?php +/** + * @file + * Install hooks for test module. + */ + /** * Implements hook_install(). */ diff --git a/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php b/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php index 77b7c7e6544a1bb5e20aa719857a0cb938c585f5..cc6713d9599f35b5a486c854f3367417bb38fada 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 3c5e9afa5cb8efc28fdc8dccef802b9beeb41eb1..7a83e870e3fdd82fa3450ecab27861881dedb6d4 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 81e4e72cf61f167db207a3961a1d6caf2d0befbb..87b635502da7495b7f9d465a0def92d6183cd190 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 b5ee9c8c155b5c4571291ad2cf959eef565a43fc..460480a0d7212da46f769c12086e79af5d6bc31d 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 d74af47a05bef8c54f6774125eda8f4a131a3416..53d37da5bff6ec4d07c3e793c3e5e3b8677f1ef2 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,5 +1,10 @@ <?php +/** + * @file + * Include file for test module. + */ + /** * Implements hook_views_data_alter(). */ 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 fbb6f104155dfeda829c1527e2ecfbaacaceb051..6ca1759a4c3ad5150ace6bcccdc049ff391f4f7f 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 a21f7cafebb3084fe124e0d53fb8571af17e0d7b..c0f8a2afcea4b1c9d4660c3928543406b607ae33 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,5 +1,10 @@ <?php +/** + * @file + * Include file for test module. + */ + /** * Implements hook_altered_test_hook(). * 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 2d34293ee39b61532b503e915b892e84d21f311d..ab5a4fc358db35fb40f1e9f578a28936740601ca 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 22265789628e54a2afb4c265473c3a7713d53c6b..b3785fcb80f1f2261a32250785a99cb79e12f881 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,5 +1,10 @@ <?php +/** + * @file + * Post update functions for test module. + */ + /** * Test post update function. */ 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 80220b9e5f00c9702f8c8d11d656af02479999c0..c88489399d67dea5c5210a586ab0741955a44594 100644 --- a/core/modules/system/tests/modules/requirements1_test/requirements1_test.install +++ b/core/modules/system/tests/modules/requirements1_test/requirements1_test.install @@ -1,5 +1,10 @@ <?php +/** + * @file + * Install hooks for test module. + */ + /** * Implements hook_requirements(). */ 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 6a08211d8dde3707f911a3f024f0e2dfb00040ab..b3ceff80a5cff5dfa9eeef2eab6cb8d44ed091b5 100644 --- a/core/modules/system/tests/modules/session_test/session_test.module +++ b/core/modules/system/tests/modules/session_test/session_test.module @@ -1,5 +1,10 @@ <?php +/** + * @file + * Test module. + */ + /** * Implements hook_user_login(). */ 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 eef351689ecb6bdb1db6c476857bb217276b084c..04fa2daaf4af2d25546ba2b0e4cdfed3fcce3757 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 7373fabde8234e7abb2495ae23622860d7dee9aa..89e2c57a96c53a07d38110fa5834e8c8c2409c45 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 6cde68384fa5240636bc0e049dbb216fece61a21..1e0a7a654ad8c4022a801d4fee559ff24356539b 100644 --- a/core/modules/system/tests/modules/theme_test/theme_test.inc +++ b/core/modules/system/tests/modules/theme_test/theme_test.inc @@ -1,5 +1,10 @@ <?php +/** + * @file + * Include file for test module. + */ + /** * Returns HTML for the 'theme_test' theme hook used by tests. */ 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 f64da1ea62e36ed58d2e508e2be13c9e259fccce..540185ec9ba29c3bef1a305c3f3ba5d0a6e5fdf1 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 cba0d5be71fbc1ad524ca7bb61fe49891eb6571c..0d6bad8a9413bca900e7c527d4946faae9928edb 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,5 +1,10 @@ <?php +/** + * @file + * Test module. + */ + /** * Implements hook_theme(). */ 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 5e55ca31ca8f127b3e9a7efea967c7006ac8aa88..12b60f694b0b5639406bde5b65367e10f4fb7564 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,5 +1,10 @@ <?php +/** + * @file + * Post update functions for test module. + */ + /** * First update, should not be run since this module's update hooks fail. */ 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 f754d94a185564a624453bbf2f5f0cf456cd0075..17158bed6c8299c10098d499ff4c9f6ae706ff64 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,5 +1,10 @@ <?php +/** + * @file + * Install hooks for test module. + */ + /** * Normal update_N() function. */ 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 ece8b7e8b3870d84faee5e469b687c9fcfb84b79..cddad74ceb65fd52cce5d81dae18377530731af0 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,5 +1,10 @@ <?php +/** + * @file + * Post update functions for test module. + */ + /** * First update. */ 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 edfa7f08cb8d84538d6ed7cd0e7eb944b24ffd6b..0237a9e27c581f4ad6c645cd72bccec8c5944d27 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,5 +1,10 @@ <?php +/** + * @file + * Install hooks for test module. + */ + /** * Implements hook_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 1467e49ec938961751548648e4f6be2614d5da6b..42e543b3128696050b3ef35d44781b4f8384d466 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 5b69a12b557814e1f90ab1f38c8abf67358f412d..ee2748a9513f7a002515dec4bc2561673f4d3949 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,5 +1,10 @@ <?php +/** + * @file + * Test theme. + */ + /** * Implements hook_preprocess_theme_test_template_test(). */ diff --git a/core/modules/taxonomy/src/Tests/VocabularyTranslationTest.php b/core/modules/taxonomy/src/Tests/VocabularyTranslationTest.php index 4152135388b38b2e817d48f2d4d5799f728650c4..b0e442e58963c08773c519a077fd7eb9946690a7 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 9cb3038d1a4b0e3138f8189aa92c0f01dcad9e5d..85abaf41582afd06b1cfc0d30e34d5eb6d170fde 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 067899861d21fbb4dee44993ebc56969f545e96d..27ce3e08aa8aa0de6ad0b2451a5727e7ab1e55c2 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,5 +1,10 @@ <?php +/** + * @file + * Test module. + */ + /** * Implements hook_toolbar_alter(). */ diff --git a/core/modules/toolbar/toolbar.api.php b/core/modules/toolbar/toolbar.api.php index bcddaf88f4e010fd50e71a6766aa1ccf094964aa..b2d04091b9969ddba9aa05f88ff6bf9d1955c4d7 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 f8de3cd8bb00cc2bf33eab6e78a0ab97a4568b53..04a77e96c146df24ee7a887cd7e93d0964f0e5a9 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 f7b3968fa35e488dd20f45a693fb8f2d7593745f..0e9cedb09be8f7b8d8b25e1299fff71b74e8f503 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; @@ -19,11 +24,6 @@ use Drupal\user\RoleInterface; use Drupal\user\UserInterface; -/** - * @file - * Enables the user registration and login system. - */ - /** * Maximum length of username text field. * diff --git a/core/modules/views/tests/fixtures/update/argument-placeholder.php b/core/modules/views/tests/fixtures/update/argument-placeholder.php index 9b7a6d96a4412fcfd0ab3c41d8034337b9f97636..525299cdcd2cb4bc24ee5ea31d7dd78eb74d16fd 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 2b78f123b653d40336ac71216afd9820914cad0a..69aa8e8e3d153f40bcf184959287710d0f0d5c1c 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 f71a65b54b5fa57f5c9cc87c9468b0c251cbf73c..a44fd97f7e04079ee3a64c6acf299f735d37fcfd 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 25abf71c4ae939c6958881294037b7c4c053b0c7..cadf5447c8443bb24e6e45f4641d1e647961bb77 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 316c62fce6434cd86331166af41757e4d6d018de..476b42244935b70fee3648079540561af4d70c76 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 old mode 100755 new mode 100644 index c4f75074cea806b5354dfba8ad27af2fa9c2c345..73f7b94fad908f6d798a613fda57306282525b77 --- 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 d5f0e43669cd2f85142d29c9862daf2d15a66b92..8eeb663b820688a94cf363c9b6c10d0037d7220a 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 8147360f25712059d2d713b6a8037450e28c96ac..0a35eecc350055384c7a3101360b980a02ab50e3 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 48a92ee1e12c3baf9af1dee2d820c0204cd7dbae..29011e583ea8a2cfb597ad5b7993b2a214246177 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 5922bf1f67583bbdd07e54797554b5d596a46021..d4cad064fa4616439de957e9aa8577117b9c622f 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 3576f2885f45e78ff2adf924a0283c385bced3e0..00c781d5a259e0fd5807d04410572bb8240be346 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 3e36a10d502dd429161d8efc00aa83b8781cf238..18bf23c351728f14bafb1cb2f4a6126d3945da7a 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,5 +1,10 @@ <?php +/** + * @file + * Test module. + */ + /** * Implements hook_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 6c8e0b80cf0f9141df18ebdc6fc350005f6880d4..718791b3ce654a7d4e2fee81e3945f7ffab79286 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 183e668d8eb0effef415d22c5408929349116d17..0a46c33017813e16c67780c6525b667173ad15f8 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 ccb4ee9247b11d78fc5557360966025ed1bee98f..1555aec793ae1a266f3105b5def414d997bf9fc3 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 48ce442bfce72054499229ed0638cf9ed9322de1..9275ce366c51e452acf75df28cb055fffd5028fd 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; }