diff options
85 files changed, 61 insertions, 92 deletions
diff --git a/core/assets/scaffold/files/default.settings.php b/core/assets/scaffold/files/default.settings.php index f02935a27ab..64c749d4d01 100644 --- a/core/assets/scaffold/files/default.settings.php +++ b/core/assets/scaffold/files/default.settings.php @@ -1,6 +1,6 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * @file diff --git a/core/assets/scaffold/files/example.settings.local.php b/core/assets/scaffold/files/example.settings.local.php index f91b9afb294..73671ab164b 100644 --- a/core/assets/scaffold/files/example.settings.local.php +++ b/core/assets/scaffold/files/example.settings.local.php @@ -1,6 +1,6 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * @file diff --git a/core/assets/scaffold/files/example.sites.php b/core/assets/scaffold/files/example.sites.php index daaf68272a5..32dca95ad63 100644 --- a/core/assets/scaffold/files/example.sites.php +++ b/core/assets/scaffold/files/example.sites.php @@ -1,6 +1,6 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * @file diff --git a/core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php b/core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php index 3c0e82e8820..04b81a0c164 100644 --- a/core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php +++ b/core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * @file diff --git a/core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php b/core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php index ddda2e3c411..96e6b8dff15 100644 --- a/core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php +++ b/core/lib/Drupal/Component/Annotation/Doctrine/SimpleAnnotationReader.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * @file diff --git a/core/lib/Drupal/Core/Command/DbDumpCommand.php b/core/lib/Drupal/Core/Command/DbDumpCommand.php index 1f3c5333f58..ac544d068bd 100644 --- a/core/lib/Drupal/Core/Command/DbDumpCommand.php +++ b/core/lib/Drupal/Core/Command/DbDumpCommand.php @@ -399,7 +399,7 @@ class DbDumpCommand extends DbCommandBase { // irrelevant. $script = <<<'ENDOFSCRIPT' <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * @file * A database agnostic dump for testing purposes. diff --git a/core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php b/core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php index fbcfb4779ef..ac99bc6c3a4 100644 --- a/core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php +++ b/core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php @@ -68,7 +68,7 @@ class GenerateProxyClassCommand extends Command { $file_string = <<<EOF <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php '$class_name' "$namespace_root". diff --git a/core/lib/Drupal/Core/Database/DatabaseException.php b/core/lib/Drupal/Core/Database/DatabaseException.php index 7d5ae6391da..7b7af39402e 100644 --- a/core/lib/Drupal/Core/Database/DatabaseException.php +++ b/core/lib/Drupal/Core/Database/DatabaseException.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile namespace Drupal\Core\Database; diff --git a/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php b/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php index 73f1757cff8..b2f1cd8cc76 100644 --- a/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php +++ b/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php @@ -1,5 +1,7 @@ <?php -// @codingStandardsIgnoreFile + +// phpcs:ignoreFile Portions of this file are a direct copy of +// \Symfony\Component\DependencyInjection\Container. namespace Drupal\Core\DependencyInjection; diff --git a/core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php b/core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php index ff868dceac2..fc2c14923ac 100644 --- a/core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php +++ b/core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php @@ -1,5 +1,7 @@ <?php -// @codingStandardsIgnoreFile + +// phpcs:ignoreFile Portions of this file are a direct copy of +// \Symfony\Component\DependencyInjection\Loader\YamlFileLoader. namespace Drupal\Core\DependencyInjection; diff --git a/core/lib/Drupal/Core/ProxyClass/Batch/BatchStorage.php b/core/lib/Drupal/Core/ProxyClass/Batch/BatchStorage.php index 7caef866855..5e6fc6df6d2 100644 --- a/core/lib/Drupal/Core/ProxyClass/Batch/BatchStorage.php +++ b/core/lib/Drupal/Core/ProxyClass/Batch/BatchStorage.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Batch\BatchStorage' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php b/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php index e72fc43f819..76ce0ecb127 100644 --- a/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php +++ b/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Config\ConfigInstaller' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/Cron.php b/core/lib/Drupal/Core/ProxyClass/Cron.php index 2d31df02a57..640b9d030c5 100644 --- a/core/lib/Drupal/Core/ProxyClass/Cron.php +++ b/core/lib/Drupal/Core/ProxyClass/Cron.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Cron' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/Entity/ContentUninstallValidator.php b/core/lib/Drupal/Core/ProxyClass/Entity/ContentUninstallValidator.php index 00cc99dca99..4d646bc40a9 100644 --- a/core/lib/Drupal/Core/ProxyClass/Entity/ContentUninstallValidator.php +++ b/core/lib/Drupal/Core/ProxyClass/Entity/ContentUninstallValidator.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Entity\ContentUninstallValidator' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/Extension/DatabaseDriverUninstallValidator.php b/core/lib/Drupal/Core/ProxyClass/Extension/DatabaseDriverUninstallValidator.php index 2390c26f8c5..43fab980d28 100644 --- a/core/lib/Drupal/Core/ProxyClass/Extension/DatabaseDriverUninstallValidator.php +++ b/core/lib/Drupal/Core/ProxyClass/Extension/DatabaseDriverUninstallValidator.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Extension\DatabaseDriverUninstallValidator' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php b/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php index 174f7fb7443..66dab3b27ec 100644 --- a/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php +++ b/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Extension\ModuleInstaller' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php b/core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php index 601f482e4d3..57eb24f15c8 100644 --- a/core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php +++ b/core/lib/Drupal/Core/ProxyClass/Extension/ModuleRequiredByThemesUninstallValidator.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Extension\ModuleRequiredByThemesUninstallValidator' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php b/core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php index d50a3ac3c1e..58c0043ccaa 100644 --- a/core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php +++ b/core/lib/Drupal/Core/ProxyClass/Extension/RequiredModuleUninstallValidator.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Extension\RequiredModuleUninstallValidator' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/File/MimeType/ExtensionMimeTypeGuesser.php b/core/lib/Drupal/Core/ProxyClass/File/MimeType/ExtensionMimeTypeGuesser.php index d82e30824dc..76032361989 100644 --- a/core/lib/Drupal/Core/ProxyClass/File/MimeType/ExtensionMimeTypeGuesser.php +++ b/core/lib/Drupal/Core/ProxyClass/File/MimeType/ExtensionMimeTypeGuesser.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\File\MimeType\ExtensionMimeTypeGuesser' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/File/MimeType/MimeTypeGuesser.php b/core/lib/Drupal/Core/ProxyClass/File/MimeType/MimeTypeGuesser.php index bbc8b16e32e..ad7f37fda13 100644 --- a/core/lib/Drupal/Core/ProxyClass/File/MimeType/MimeTypeGuesser.php +++ b/core/lib/Drupal/Core/ProxyClass/File/MimeType/MimeTypeGuesser.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\File\MimeType\MimeTypeGuesser' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php b/core/lib/Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php index 963fcf5dccc..a3ff17fb760 100644 --- a/core/lib/Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php +++ b/core/lib/Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Lock\DatabaseLockBackend' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php b/core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php index 342e1d669d6..ec0ed64ae32 100644 --- a/core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php +++ b/core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Lock\PersistentDatabaseLockBackend' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/PageCache/ChainResponsePolicy.php b/core/lib/Drupal/Core/ProxyClass/PageCache/ChainResponsePolicy.php index 47b294dffba..4ef163b0258 100644 --- a/core/lib/Drupal/Core/ProxyClass/PageCache/ChainResponsePolicy.php +++ b/core/lib/Drupal/Core/ProxyClass/PageCache/ChainResponsePolicy.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\PageCache\ChainResponsePolicy' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/ParamConverter/AdminPathConfigEntityConverter.php b/core/lib/Drupal/Core/ProxyClass/ParamConverter/AdminPathConfigEntityConverter.php index 3e2f908993a..f1d88d62dd5 100644 --- a/core/lib/Drupal/Core/ProxyClass/ParamConverter/AdminPathConfigEntityConverter.php +++ b/core/lib/Drupal/Core/ProxyClass/ParamConverter/AdminPathConfigEntityConverter.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\ParamConverter\AdminPathConfigEntityConverter' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/ParamConverter/MenuLinkPluginConverter.php b/core/lib/Drupal/Core/ProxyClass/ParamConverter/MenuLinkPluginConverter.php index bd83085d974..5a9a45e38c5 100644 --- a/core/lib/Drupal/Core/ProxyClass/ParamConverter/MenuLinkPluginConverter.php +++ b/core/lib/Drupal/Core/ProxyClass/ParamConverter/MenuLinkPluginConverter.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\ParamConverter\MenuLinkPluginConverter' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php b/core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php index 2658ba8719b..fcf84a3f315 100644 --- a/core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php +++ b/core/lib/Drupal/Core/ProxyClass/Plugin/CachedDiscoveryClearer.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Plugin\CachedDiscoveryClearer' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/Render/BareHtmlPageRenderer.php b/core/lib/Drupal/Core/ProxyClass/Render/BareHtmlPageRenderer.php index 7814e225563..9a4baad7ce6 100644 --- a/core/lib/Drupal/Core/ProxyClass/Render/BareHtmlPageRenderer.php +++ b/core/lib/Drupal/Core/ProxyClass/Render/BareHtmlPageRenderer.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Render\BareHtmlPageRenderer' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php b/core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php index e3ffe1c352a..38d7149d6d5 100644 --- a/core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php +++ b/core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Routing\MatcherDumper' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php b/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php index 8d82ef56044..399df911734 100644 --- a/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php +++ b/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Routing\RouteBuilder' "core/lib/Drupal/Core". diff --git a/core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php b/core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php index bfee7f09472..a3e62d0b975 100644 --- a/core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php +++ b/core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php @@ -2,6 +2,9 @@ namespace Drupal\Core\TypedData\Validation; +// phpcs:ignoreFile Portions of this file are a direct copy of +// \Symfony\Component\Validator\Violation\ConstraintViolationBuilder. + use Drupal\Core\Validation\TranslatorInterface; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\ConstraintViolation; @@ -14,7 +17,6 @@ use Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface; * * We do not use the builder provided by Symfony as it is marked internal. * - * @codingStandardsIgnoreStart */ class ConstraintViolationBuilder implements ConstraintViolationBuilderInterface { diff --git a/core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php b/core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php index 118f20e2017..ad6efc68f5a 100644 --- a/core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php +++ b/core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php @@ -10,8 +10,6 @@ use Symfony\Component\Validator\Validator\ValidatorInterface; * Defines an execution factory for the Typed Data validator. * * We do not use the factory provided by Symfony as it is marked internal. - * - * @codingStandardsIgnoreStart */ class ExecutionContextFactory implements ExecutionContextFactoryInterface { @@ -33,8 +31,7 @@ class ExecutionContextFactory implements ExecutionContextFactoryInterface { * @param string $translationDomain * (optional) The translation domain. */ - public function __construct(TranslatorInterface $translator, $translationDomain = null) - { + public function __construct(TranslatorInterface $translator, $translationDomain = NULL) { $this->translator = $translator; $this->translationDomain = $translationDomain; } @@ -42,8 +39,7 @@ class ExecutionContextFactory implements ExecutionContextFactoryInterface { /** * {@inheritdoc} */ - public function createContext(ValidatorInterface $validator, $root) - { + public function createContext(ValidatorInterface $validator, $root) { return new ExecutionContext( $validator, $root, diff --git a/core/modules/block/src/Plugin/migrate/process/BlockVisibility.php b/core/modules/block/src/Plugin/migrate/process/BlockVisibility.php index ac39128bcf8..45e4d4e7fb6 100644 --- a/core/modules/block/src/Plugin/migrate/process/BlockVisibility.php +++ b/core/modules/block/src/Plugin/migrate/process/BlockVisibility.php @@ -55,7 +55,6 @@ class BlockVisibility extends ProcessPluginBase implements ContainerFactoryPlugi * @param \Drupal\migrate\MigrateLookupInterface $migrate_lookup * The migrate lookup service. */ - // @codingStandardsIgnoreLine public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler, MigrateLookupInterface $migrate_lookup) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->moduleHandler = $module_handler; diff --git a/core/modules/book/src/ProxyClass/BookUninstallValidator.php b/core/modules/book/src/ProxyClass/BookUninstallValidator.php index d0082fe8f66..2ba59bf055d 100644 --- a/core/modules/book/src/ProxyClass/BookUninstallValidator.php +++ b/core/modules/book/src/ProxyClass/BookUninstallValidator.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\book\BookUninstallValidator' "core/modules/book/src". diff --git a/core/modules/field/src/ProxyClass/FieldUninstallValidator.php b/core/modules/field/src/ProxyClass/FieldUninstallValidator.php index 17a7b37074b..0861eea532f 100644 --- a/core/modules/field/src/ProxyClass/FieldUninstallValidator.php +++ b/core/modules/field/src/ProxyClass/FieldUninstallValidator.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\field\FieldUninstallValidator' "core/modules/field/src". diff --git a/core/modules/filter/src/ProxyClass/FilterUninstallValidator.php b/core/modules/filter/src/ProxyClass/FilterUninstallValidator.php index 326f77108b8..2e7ccc184c0 100644 --- a/core/modules/filter/src/ProxyClass/FilterUninstallValidator.php +++ b/core/modules/filter/src/ProxyClass/FilterUninstallValidator.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\filter\FilterUninstallValidator' "core/modules/filter/src". diff --git a/core/modules/forum/src/ProxyClass/ForumUninstallValidator.php b/core/modules/forum/src/ProxyClass/ForumUninstallValidator.php index 4d398a90441..7d9469e19f3 100644 --- a/core/modules/forum/src/ProxyClass/ForumUninstallValidator.php +++ b/core/modules/forum/src/ProxyClass/ForumUninstallValidator.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\forum\ForumUninstallValidator' "core/modules/forum/src". diff --git a/core/modules/jsonapi/tests/src/Functional/MediaTest.php b/core/modules/jsonapi/tests/src/Functional/MediaTest.php index b630dcc6fb0..0ca90296c18 100644 --- a/core/modules/jsonapi/tests/src/Functional/MediaTest.php +++ b/core/modules/jsonapi/tests/src/Functional/MediaTest.php @@ -342,7 +342,6 @@ class MediaTest extends ResourceTestBase { ->addCacheTags(['media:1']); } - // @codingStandardsIgnoreStart /** * {@inheritdoc} */ @@ -351,7 +350,6 @@ class MediaTest extends ResourceTestBase { // @todo Later, use https://www.drupal.org/project/drupal/issues/2958554 to upload files rather than the REST module. parent::testPostIndividual(); } - // @codingStandardsIgnoreEnd /** * {@inheritdoc} diff --git a/core/modules/language/src/ProxyClass/LanguageConverter.php b/core/modules/language/src/ProxyClass/LanguageConverter.php index 0316bf8b14f..5511c6859e5 100644 --- a/core/modules/language/src/ProxyClass/LanguageConverter.php +++ b/core/modules/language/src/ProxyClass/LanguageConverter.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\language\LanguageConverter' "core/modules/language/src". diff --git a/core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php b/core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php index 90a0cc4e203..40269578d7f 100644 --- a/core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php +++ b/core/modules/migrate/src/Plugin/migrate/process/MenuLinkParent.php @@ -104,7 +104,6 @@ class MenuLinkParent extends ProcessPluginBase implements ContainerFactoryPlugin * @param \Drupal\migrate\Plugin\MigrationInterface $migration * The currently running migration. */ - // @codingStandardsIgnoreLine public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrateLookupInterface $migrate_lookup, MenuLinkManagerInterface $menu_link_manager, EntityStorageInterface $menu_link_storage, MigrationInterface $migration) { parent::__construct($configuration, $plugin_id, $plugin_definition); diff --git a/core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php b/core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php index 576cea26bff..112ad731404 100644 --- a/core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php +++ b/core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php @@ -145,7 +145,6 @@ class MigrationLookup extends ProcessPluginBase implements ContainerFactoryPlugi * @param \Drupal\migrate\MigrateStubInterface $migrate_stub * The migrate stub service. */ - // @codingStandardsIgnoreLine public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, MigrateLookupInterface $migrate_lookup, MigrateStubInterface $migrate_stub) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->migration = $migration; diff --git a/core/modules/migrate_drupal/tests/fixtures/drupal-8.migrate-drupal-multilingual-enabled.php b/core/modules/migrate_drupal/tests/fixtures/drupal-8.migrate-drupal-multilingual-enabled.php index 905a8e6f4ca..ad57f645bec 100644 --- a/core/modules/migrate_drupal/tests/fixtures/drupal-8.migrate-drupal-multilingual-enabled.php +++ b/core/modules/migrate_drupal/tests/fixtures/drupal-8.migrate-drupal-multilingual-enabled.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile use Drupal\Core\Database\Database; diff --git a/core/modules/migrate_drupal/tests/fixtures/drupal6.php b/core/modules/migrate_drupal/tests/fixtures/drupal6.php index 5be9fe5e530..0badecba795 100644 --- a/core/modules/migrate_drupal/tests/fixtures/drupal6.php +++ b/core/modules/migrate_drupal/tests/fixtures/drupal6.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * @file * A database agnostic dump for testing purposes. diff --git a/core/modules/migrate_drupal/tests/fixtures/drupal7.php b/core/modules/migrate_drupal/tests/fixtures/drupal7.php index 5bba59f0bb4..ec81792cd8a 100644 --- a/core/modules/migrate_drupal/tests/fixtures/drupal7.php +++ b/core/modules/migrate_drupal/tests/fixtures/drupal7.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * @file * A database agnostic dump for testing purposes. diff --git a/core/modules/node/src/ProxyClass/ParamConverter/NodePreviewConverter.php b/core/modules/node/src/ProxyClass/ParamConverter/NodePreviewConverter.php index afe5fe0fb1a..7dcd43e7cae 100644 --- a/core/modules/node/src/ProxyClass/ParamConverter/NodePreviewConverter.php +++ b/core/modules/node/src/ProxyClass/ParamConverter/NodePreviewConverter.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\node\ParamConverter\NodePreviewConverter' "core/modules/node/src". diff --git a/core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php b/core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php index 0313cae900f..35412fc7064 100644 --- a/core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php +++ b/core/modules/system/tests/src/Kernel/Scripts/DbDumpCommandTest.php @@ -59,7 +59,7 @@ class DbDumpCommandTest extends KernelTestBase { $this->assertStringContainsString("'name' => 'test", $output, 'Insert name field found'); $this->assertStringContainsString("'path' => 'test", $output, 'Insert path field found'); $this->assertStringContainsString("'pattern_outline' => 'test", $output, 'Insert pattern_outline field found'); - $this->assertStringContainsString("// @codingStandardsIgnoreFile", $output); + $this->assertStringContainsString("// phpcs:ignoreFile", $output); $version = \Drupal::VERSION; $this->assertStringContainsString("This file was generated by the Drupal {$version} db-tools.php script.", $output); } diff --git a/core/modules/views_ui/src/ProxyClass/ParamConverter/ViewUIConverter.php b/core/modules/views_ui/src/ProxyClass/ParamConverter/ViewUIConverter.php index 3e054a72d10..9ef21bfa965 100644 --- a/core/modules/views_ui/src/ProxyClass/ParamConverter/ViewUIConverter.php +++ b/core/modules/views_ui/src/ProxyClass/ParamConverter/ViewUIConverter.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\views_ui\ParamConverter\ViewUIConverter' "core/modules/views_ui/src". diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist index ae948ae6eb7..9c275921e8a 100644 --- a/core/phpcs.xml.dist +++ b/core/phpcs.xml.dist @@ -11,6 +11,8 @@ <!--Exclude third party code.--> <exclude-pattern>./assets/vendor/*</exclude-pattern> + <exclude-pattern>./core/tests/Drupal/Tests/Component/Annotation/Doctrine/</exclude-pattern> + <!--Exclude folders used by common frontend tools. These folders match the file_scan_ignore_directories setting in default.settings.php--> <exclude-pattern>*/node_modules/*</exclude-pattern> <exclude-pattern>*/bower_components/*</exclude-pattern> diff --git a/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php b/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php index 3a1cce924b2..25bf18878b9 100644 --- a/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php +++ b/core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php @@ -1,5 +1,5 @@ <?php -// @codingStandardsIgnoreFile + namespace Drupal\FunctionalTests; use Behat\Mink\Element\NodeElement; diff --git a/core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php b/core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php index 8ca0cff099d..3fd4fc90898 100644 --- a/core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php +++ b/core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php @@ -45,11 +45,10 @@ class TwigMarkupInterfaceTest extends KernelTestBase { */ public function providerTestMarkupInterfaceEmpty() { return [ - // @codingStandardsIgnoreStart // The first argument to \Drupal\Core\StringTranslation\TranslatableMarkup // is not supposed to be an empty string. + // phpcs:ignore Drupal.Semantics.FunctionT.EmptyString 'empty TranslatableMarkup' => ['', new TranslatableMarkup('')], - // @codingStandardsIgnoreEnd 'non-empty TranslatableMarkup' => ['<span>test</span>', new TranslatableMarkup('test')], 'empty FormattableMarkup' => ['', new FormattableMarkup('', ['@foo' => 'bar'])], 'non-empty FormattableMarkup' => ['<span>bar</span>', new FormattableMarkup('@foo', ['@foo' => 'bar'])], diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php index 13aff87f87c..ad2cd7b9068 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/AnnotWithDefaultValue.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/AnnotWithDefaultValue.php index d6a0471ff9e..7b796729087 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/AnnotWithDefaultValue.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/AnnotWithDefaultValue.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Autoload.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Autoload.php index c386fb8b369..6102dc32d42 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Autoload.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Autoload.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Route.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Route.php index 4cb6dfc2cb6..e32464fa12b 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Route.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Route.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Secure.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Secure.php index 80dfeaf7369..48336f1eefc 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Secure.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Secure.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Template.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Template.php index 7e21c4d043e..bc31bad21ab 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Template.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Template.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Version.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Version.php index a0b4b0d0411..5c4789dc455 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Version.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Version.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnum.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnum.php index 51b0f03619e..8c8993dcd85 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnum.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnum.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumInvalid.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumInvalid.php index 65ca53181a8..3a1f94ff000 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumInvalid.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumInvalid.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteral.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteral.php index 258ed5f0edb..3dc91a66bc4 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteral.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteral.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteralInvalid.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteralInvalid.php index ed876971265..b4c9abd9be4 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteralInvalid.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationEnumLiteralInvalid.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAll.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAll.php index d361ca0f05c..c40c380630a 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAll.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAll.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAnnotation.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAnnotation.php index 7d85bc407af..bfd65032ea2 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAnnotation.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAnnotation.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetClass.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetClass.php index e9ac2d9fc11..f36e9051281 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetClass.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetClass.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetPropertyMethod.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetPropertyMethod.php index f6097467fb0..31586b1e7aa 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetPropertyMethod.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetPropertyMethod.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithAttributes.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithAttributes.php index 82d00363455..89985aedf53 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithAttributes.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithAttributes.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithConstants.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithConstants.php index 4c23b443844..f03957c31ac 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithConstants.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithConstants.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php index 4c90bea7971..77983ef745f 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributes.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributesWithoutContructor.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributesWithoutContructor.php index 81edf748db8..f0b3c1d486e 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributesWithoutContructor.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithRequiredAttributesWithoutContructor.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithTargetSyntaxError.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithTargetSyntaxError.php index 22f1e1229c2..4ab0423ca35 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithTargetSyntaxError.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithTargetSyntaxError.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithVarType.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithVarType.php index c2aca7534b0..17cc5e02a1b 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithVarType.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithVarType.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithConstants.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithConstants.php index 9068db55bac..485d8cbb2d0 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithConstants.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithConstants.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtClass.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtClass.php index 31f22a4cec3..896b64a8bee 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtClass.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtClass.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtMethod.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtMethod.php index 9ee0a27f86c..5a023ec46e2 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtMethod.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtMethod.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtProperty.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtProperty.php index ed5be2678df..456c1bbfd22 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtProperty.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtProperty.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithValidAnnotationTarget.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithValidAnnotationTarget.php index 505aa27a131..08551525b0a 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithValidAnnotationTarget.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithValidAnnotationTarget.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/IntefaceWithConstants.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/IntefaceWithConstants.php index eb54ac9d481..0b9db8ce0cc 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/IntefaceWithConstants.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/IntefaceWithConstants.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Fixtures; diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Entity.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Entity.php index a3a9ee4bb68..870ccc91aa7 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Entity.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Entity.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile // Some class named Entity in the global namespace /** diff --git a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php index 32521db77bd..9423fd26b35 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php +++ b/core/tests/Drupal/Tests/Component/Annotation/Doctrine/Ticket/DCOM58Test.php @@ -1,5 +1,4 @@ <?php -// @codingStandardsIgnoreFile namespace Drupal\Tests\Component\Annotation\Doctrine\Ticket; diff --git a/core/tests/Drupal/Tests/ComposerIntegrationTest.php b/core/tests/Drupal/Tests/ComposerIntegrationTest.php index 33a7bd11395..c50f782f7eb 100644 --- a/core/tests/Drupal/Tests/ComposerIntegrationTest.php +++ b/core/tests/Drupal/Tests/ComposerIntegrationTest.php @@ -205,7 +205,7 @@ class ComposerIntegrationTest extends UnitTestCase { $this->assertFileEquals($this->root . '/core/' . $sourceRelPath, $this->root . '/' . $destRelPath, 'Scaffold source and destination files must have the same contents.'); } - // @codingStandardsIgnoreStart + // phpcs:disable /** * The following method is copied from \Composer\Package\Locker. * @@ -249,7 +249,7 @@ class ComposerIntegrationTest extends UnitTestCase { return md5(json_encode($relevantContent)); } - // @codingStandardsIgnoreEnd + // phpcs:enable /** * Tests the vendor cleanup utilities do not have obsolete packages listed. diff --git a/core/tests/fixtures/empty_file.php.module b/core/tests/fixtures/empty_file.php.module index 1125d47a5f4..5d693786638 100644 --- a/core/tests/fixtures/empty_file.php.module +++ b/core/tests/fixtures/empty_file.php.module @@ -1,2 +1,2 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile diff --git a/core/tests/fixtures/files/php-1.txt b/core/tests/fixtures/files/php-1.txt index c641a696808..4e0ef6e790d 100644 --- a/core/tests/fixtures/files/php-1.txt +++ b/core/tests/fixtures/files/php-1.txt @@ -1,4 +1,4 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile print 'SimpleTest PHP was executed!'; ?> diff --git a/core/tests/fixtures/files/php-2.php b/core/tests/fixtures/files/php-2.php index 29738aabdb8..dffc523912c 100644 --- a/core/tests/fixtures/files/php-2.php +++ b/core/tests/fixtures/files/php-2.php @@ -1,3 +1,3 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile print 'SimpleTest PHP was executed!'; diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index f02935a27ab..64c749d4d01 100644 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -1,6 +1,6 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * @file diff --git a/sites/example.settings.local.php b/sites/example.settings.local.php index f91b9afb294..73671ab164b 100644 --- a/sites/example.settings.local.php +++ b/sites/example.settings.local.php @@ -1,6 +1,6 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * @file diff --git a/sites/example.sites.php b/sites/example.sites.php index daaf68272a5..32dca95ad63 100644 --- a/sites/example.sites.php +++ b/sites/example.sites.php @@ -1,6 +1,6 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * @file |