From d87ade36a470b9d7f8ff5a062a4e3babf69ef938 Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon <yahgrp@poplarware.com> Date: Thu, 11 Feb 2016 12:54:33 -0800 Subject: [PATCH] Issue #2572643 by alexpott, attiks, Jelle_S, jhodgdon: Fix Drupal.Commenting.FileComment coding standard --- core/includes/install.core.inc | 10 +++++----- core/includes/tablesort.inc | 8 ++++---- .../Component/Bridge/ZfExtensionManagerSfContainer.php | 1 + core/lib/Drupal/Component/Datetime/DateTimePlus.php | 1 + .../Component/PhpStorage/MTimeProtectedFileStorage.php | 1 + core/lib/Drupal/Component/Utility/Number.php | 1 + core/lib/Drupal/Core/Archiver/ArchiveTar.php | 1 + .../Config/Entity/ConfigDependencyDeleteFormTrait.php | 1 - .../Drupal/Core/Controller/TitleResolverInterface.php | 1 + core/lib/Drupal/Core/Datetime/DateHelper.php | 1 + core/lib/Drupal/Core/Datetime/DrupalDateTime.php | 1 + .../Compiler/RegisterLazyRouteEnhancers.php | 1 - .../Compiler/RegisterLazyRouteFilters.php | 1 - .../Core/Entity/Query/Sql/pgsql/QueryFactory.php | 1 - .../Drupal/Core/Menu/LocalActionManagerInterface.php | 1 + .../lib/Drupal/Core/Menu/LocalTaskManagerInterface.php | 1 + .../src/Tests/Views/RevisionRelationshipsTest.php | 1 + core/modules/comment/comment.api.php | 6 +++--- core/modules/field/field.api.php | 5 +++++ .../field/tests/modules/field_test/field_test.module | 8 ++++---- .../Field/FieldFormatter/TestFieldEmptyFormatter.php | 1 + .../FieldFormatter/TestFieldNoSettingsFormatter.php | 1 + .../field_third_party_test.module | 5 +++++ .../migrate/process/d6/FilterFormatPermission.php | 1 - core/modules/forum/src/ForumIndexStorageInterface.php | 1 + .../src/Tests/LanguageConfigOverrideInstallTest.php | 1 + .../Unit/Plugin/migrate/source/MenuLinkSourceTest.php | 1 + .../src/Plugin/migrate/process/MenuLinkParent.php | 1 - .../migrate/tests/src/Unit/process/SkipOnEmptyTest.php | 1 - core/modules/node/node.api.php | 10 +++++----- .../node/src/Tests/Views/RevisionRelationshipsTest.php | 1 + .../options/src/Tests/OptionsFieldUnitTestBase.php | 1 - .../search_query_alter/search_query_alter.module | 4 ++-- core/modules/simpletest/files/php-1.txt | 1 + core/modules/simpletest/files/php-2.php | 1 + core/modules/simpletest/simpletest.module | 10 +++++----- .../fixtures/simpletest_phpunit_run_command_test.php | 5 +++++ .../modules/simpletest_test/simpletest_test.install | 5 +++++ .../src/Tests/Entity/EntityQueryAggregateTest.php | 1 + .../tests/fixtures/update/drupal-8.broken_routing.php | 5 +++++ .../update/drupal-8.without_automated_cron.php | 5 +++++ .../tests/modules/database_test/database_test.module | 5 +++++ .../tests/modules/entity_test/entity_test.views.inc | 5 +++++ .../module_required_test/module_required_test.module | 5 +++++ .../module_test/module_test.implementations.inc | 5 +++++ .../tests/modules/module_test/module_test.module | 5 +++++ .../modules/module_test/module_test.post_update.php | 5 +++++ .../requirements1_test/requirements1_test.install | 5 +++++ .../tests/modules/session_test/session_test.module | 5 +++++ .../tests/modules/system_test/system_test.module | 5 +++++ .../modules/theme_page_test/theme_page_test.module | 5 +++++ .../system/tests/modules/theme_test/theme_test.inc | 5 +++++ .../system/tests/modules/theme_test/theme_test.module | 5 +++++ .../modules/twig_theme_test/twig_theme_test.module | 5 +++++ .../update_test_failing.post_update.php | 5 +++++ .../update_test_postupdate.install | 5 +++++ .../update_test_postupdate.post_update.php | 5 +++++ .../modules/url_alter_test/url_alter_test.install | 5 +++++ .../tests/themes/test_basetheme/test_basetheme.theme | 1 + .../test_theme_nyan_cat_engine.theme | 5 +++++ .../taxonomy/src/Tests/VocabularyTranslationTest.php | 1 + .../Field/FieldFormatter/TextTrimmedFormatter.php | 1 + .../toolbar_disable_user_toolbar.module | 5 +++++ core/modules/toolbar/toolbar.api.php | 1 + .../tests/modules/update_test/update_test.module | 4 ++-- core/modules/user/user.module | 10 +++++----- .../tests/fixtures/update/argument-placeholder.php | 5 +++++ .../tests/fixtures/update/duplicate-field-handler.php | 5 +++++ .../modules/views_entity_test/views_entity_test.module | 1 + core/phpcs.xml.dist | 1 - core/scripts/db-tools.php | 5 +++++ core/scripts/dump-database-d8-mysql.php | 5 +++++ core/scripts/generate-proxy-class.php | 5 +++++ .../Tests/Core/Asset/CssCollectionGrouperUnitTest.php | 1 - .../Tests/Core/Asset/CssCollectionRendererUnitTest.php | 1 - .../Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php | 1 - .../modules/module_handler_test/hook_include.inc | 5 +++++ .../module_handler_test/module_handler_test.module | 5 +++++ .../module_handler_test_added.hook.inc | 5 +++++ .../module_handler_test_added.module | 4 ++++ .../module_handler_test_all1.module | 5 +++++ .../module_handler_test_all2.module | 5 +++++ 82 files changed, 239 insertions(+), 47 deletions(-) mode change 100755 => 100644 core/scripts/dump-database-d8-mysql.php diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index ffe27e0c43ed..d5fcd9cdece1 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 65b791fc66c9..95642b386925 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 1bd0a7347711..252b9a9efb1f 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 530a63e285cd..372fb006a217 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 067a8df7cce9..04ec0b9681f7 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 99bedc873a36..59a199b2b939 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 ecd7f256e8cb..24085cea9fe6 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 1f2660b7d592..a642e03e7f81 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 fa72e1141a02..cbc49d529aff 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 4cfc74640fae..0b0490674469 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 a5f196dec63c..340edf629fec 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 5f6c28012b6b..77be654468c2 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 ad41e18da9de..7f37eb43e351 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 fb43f13cccb7..6aeba41d2c2c 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 503348501c12..af8aff857851 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 a9dec80bebce..8f87f89d8fb7 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 44f7c751d8e3..f3a7e25a515c 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 4b79b3686bd8..7b922cbcc065 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 a71d69df778c..8e11650f5cb2 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 058380a8d4ef..2b1d06f1b76e 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 cab0c1769ec7..59a94870e72d 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 d01ef8b73e68..22b0d6f67532 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 8726b18b5dc5..fa0e41812d41 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 9ae5a71cb4fc..38619942cdc5 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 4d59fb30b770..1a4ce18b7644 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 28d6330dd299..b3cdd092ad83 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 9484ca4d8c60..72955cb779f7 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 78fbd14a5619..b15b32154c1d 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 3a0d08c833b4..beea773d69dc 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 af07dff91e13..823e1ca9f596 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 c36b377c0231..306df50a1f53 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 8349384260ee..2ce30543518e 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 57bdb166e683..aee8e6c6d32d 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 52788b6feac0..c641a6968089 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 615a8d78fb48..29738aabdb8f 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 74d348e9234d..ddd6828413e3 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 c86a9e619d4b..dd47547b9110 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 b0ccbc7dfeec..f5b4a3929537 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 77b7c7e6544a..cc6713d9599f 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 3c5e9afa5cb8..7a83e870e3fd 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 81e4e72cf61f..87b635502da7 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 b5ee9c8c155b..460480a0d721 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 d74af47a05be..53d37da5bff6 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 fbb6f104155d..6ca1759a4c3a 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 a21f7cafebb3..c0f8a2afcea4 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 2d34293ee39b..ab5a4fc358db 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 22265789628e..b3785fcb80f1 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 80220b9e5f00..c88489399d67 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 6a08211d8dde..b3ceff80a5cf 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 eef351689ecb..04fa2daaf4af 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 7373fabde823..89e2c57a96c5 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 6cde68384fa5..1e0a7a654ad8 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 f64da1ea62e3..540185ec9ba2 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 cba0d5be71fb..0d6bad8a9413 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 5e55ca31ca8f..12b60f694b0b 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 f754d94a1855..17158bed6c82 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 ece8b7e8b387..cddad74ceb65 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 edfa7f08cb8d..0237a9e27c58 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 1467e49ec938..42e543b31286 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 5b69a12b5578..ee2748a9513f 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 4152135388b3..b0e442e58963 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 9cb3038d1a4b..85abaf41582a 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 067899861d21..27ce3e08aa8a 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 bcddaf88f4e0..b2d04091b996 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 f8de3cd8bb00..04a77e96c146 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 f7b3968fa35e..0e9cedb09be8 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 9b7a6d96a441..525299cdcd2c 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 2b78f123b653..69aa8e8e3d15 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 f71a65b54b5f..a44fd97f7e04 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 25abf71c4ae9..cadf5447c844 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 316c62fce643..476b42244935 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 c4f75074cea8..73f7b94fad90 --- 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 d5f0e43669cd..8eeb663b8206 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 8147360f2571..0a35eecc3500 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 48a92ee1e12c..29011e583ea8 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 5922bf1f6758..d4cad064fa46 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 3576f2885f45..00c781d5a259 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 3e36a10d502d..18bf23c35172 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 6c8e0b80cf0f..718791b3ce65 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 183e668d8eb0..0a46c3301781 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 ccb4ee9247b1..1555aec793ae 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 48ce442bfce7..9275ce366c51 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; } -- GitLab