diff --git a/core/assets/scaffold/files/default.settings.php b/core/assets/scaffold/files/default.settings.php index f02935a27abc36fbebfb9bcb04a1360b1c200243..64c749d4d012bd76018457db99d0e32e6ea45789 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 f91b9afb29418b1637cd02a830629206ee3013d9..73671ab164bf72cd65bf925d8bad7172320bb4d7 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 daaf68272a50ba90845ccda2eed1c3c405f3739f..32dca95ad6371a73e18570a57f84b1027b10350c 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 3c0e82e882027beeb683bece79b79aa5c82b92c5..04b81a0c1642c404f9e755d93f041c27eb503db0 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 ddda2e3c411e4ce14e985acc39539a614c663415..96e6b8dff1589446c19e6360be73afc15aec50cd 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 1f3c5333f585b642c6b00104dda12f9b0d238694..ac544d068bddcff2347828a8d02f54594797eacb 100644 --- a/core/lib/Drupal/Core/Command/DbDumpCommand.php +++ b/core/lib/Drupal/Core/Command/DbDumpCommand.php @@ -399,7 +399,7 @@ protected function getTemplate() { // 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 fbcfb4779efcaec644b74bf57e001d702cdfd52d..ac99bc6c3a4f61d3e125c5ecfbb82bb6b2277932 100644 --- a/core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php +++ b/core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php @@ -68,7 +68,7 @@ protected function execute(InputInterface $input, OutputInterface $output) { $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 7d5ae6391da093ada22e568206034eb4901765a0..7b7af39402ee64014660a141d7f7581e52bc537c 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 73f1757cff8b5c9c9e538e333676b45da6794dfe..b2f1cd8cc764f2628d81c6bc9809c34c9b9dfae0 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 ff868dceac2b6e7a133b0054c026ac8d4596c99a..fc2c14923ac356473a0ab63a39a8c308533dfd6d 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 7caef866855eba2b9f7f49511315221e4871436c..5e6fc6df6d216cb7c7e031e2663f85fa2c91de7d 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 e72fc43f81925e15c6fa9fd045f10c65d1ec473c..76ce0ecb1278d01fec3f132d8ab2f6ca9008390e 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 2d31df02a5751eb164e7f8cabb70be7f01ff2a84..640b9d030c53c8ae8ea6c819adde74e628b464ef 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 00cc99dca9965acf51a5dac75eab422c5779e7f0..4d646bc40a94b2dfbe454a8607f71f6b23a467fe 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 2390c26f8c5ecfb72a6cce95c6e17ca5f783d68e..43fab980d2871b73ad124a063b7e1daaf632a978 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 174f7fb7443f6be1e0a00c3da5bf8448f9884c6f..66dab3b27ec68c1b84336a9e3386cb58a60bf44e 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 601f482e4d309afa0bc9076d4545b2eebff3c39a..57eb24f15c822e53ab37840f4be48ee46295e07a 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 d50a3ac3c1ec4399c094950e3efe163adc090465..58c0043ccaa787f292828a7d46d4b6d4d818174c 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 d82e30824dc95f73ec5250016bf2663a80b42421..760323619893007f982b3eb14d9c8b38b09f33aa 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 bbc8b16e32eac68546eb8ee3db876ba3334e2d2f..ad7f37fda1316c846b83843c3a2bc8d608c9774d 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 963fcf5dcccfa9aba30314ffccf4848e0fc303df..a3ff17fb760ee77eaaad39aac02ebb2ab7754831 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 342e1d669d63689b3269738533d3c4d7124d233c..ec0ed64ae32946f081c3ed3abdecd24ec7c85f1b 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 47b294dffba77e48f87827ec1c57a170abdec978..4ef163b02582cbf056ae5aa6ed79299bf350366c 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 3e2f908993ae62b2dd954161b4726b345f753202..f1d88d62dd539c7d1fbcceb3140c8938458a1400 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 bd83085d974e02df855bc7355cf97583d167d71b..5a9a45e38c541f61253d07b8952d3e753b8b1824 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 2658ba8719b31c6c99c0b8b0334709408b6e218c..fcf84a3f315a74cebb9e0a567ef74112e0e478e6 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 7814e2255633b78d9ed7ad49cc18a34367b83980..9a4baad7ce680746d4fb9ce93eb5187f8e1ad64b 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 e3ffe1c352a1d0052d39fde99b403b17e35ad132..38d7149d6d57cc5f312d8272c81308aeeab0e865 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 8d82ef56044d8ddab4e30ea0751aeb95727b329f..399df911734f42e003afc21536ed5f42bed0f9bc 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 bfee7f09472c169ccd44df55acbce5e5b998dda5..a3e62d0b9757c51681752d9e2c9e5be7c6b95cfa 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 @@ * * 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 118f20e2017067af8715696e4c42244056788df3..ad6efc68f5a3d4ddd30bdfa8b4c49db258506610 100644 --- a/core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php +++ b/core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php @@ -10,8 +10,6 @@ * 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 @@ public function __construct(TranslatorInterface $translator, $translationDomain /** * {@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 ac39128bcf8a56af06f36d293b3826e65b397c84..45e4d4e7fb60fc63b9e1bef6c8bdbc4f7426a0e4 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 d0082fe8f66d290063d37e94bb50cc3a2637b8c6..2ba59bf055defd406dd3c386a63b460abc971b0f 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 17a7b37074bbcfb8233d98aab6b344ee6be3512f..0861eea532fac67531060f4e473bbde7d3852225 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 326f77108b871222e2e25bf1e1b21efa05caf4d3..2e7ccc184c04253b2e636db36e49b2906fede1f9 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 4d398a9044156cb7ef99924a30d08142564e4d99..7d9469e19f3bc9b032b8ed171c3b1d5bf8cf27bc 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 b630dcc6fb0ba947b576f0095fa5fd2d02f24b33..0ca90296c182db8e78bfba5efa1ddadf3b7da648 100644 --- a/core/modules/jsonapi/tests/src/Functional/MediaTest.php +++ b/core/modules/jsonapi/tests/src/Functional/MediaTest.php @@ -342,7 +342,6 @@ protected function getExpectedUnauthorizedAccessCacheability() { ->addCacheTags(['media:1']); } - // @codingStandardsIgnoreStart /** * {@inheritdoc} */ @@ -351,7 +350,6 @@ public function testPostIndividual() { // @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 0316bf8b14f99f7386a6df8165d66557dd6c09a2..5511c6859e55394218bacb5e6fa677107490391f 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 90a0cc4e20379ef0e84603c3b4e7d29ee6ec53cf..40269578d7ff272a39777ad970e560fdaa81abf4 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 576cea26bff8bbc8bacc231c505de8a1c0d8c9aa..112ad73140485ff893362792723d91068d4b8a1f 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 905a8e6f4ca9ae676539823693810c8c8c72b674..ad57f645bec84b055897b67002391e6a947dfd21 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 5be9fe5e53017745d4d7a0f80510f087e489f270..0badecba795212ab13f2fee99614b3232fe9fa1a 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 5bba59f0bb4780dfc4ed2af347f2757821fd5492..ec81792cd8ad6b7793cc6cb4ec6ca53dcbf72191 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 afe5fe0fb1ac1d850c4dfd9da13e4bcd240a3c2d..7dcd43e7cae6a5c1c718f8a362475e11e44c3c35 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 0313cae900f480574ce1f1109fc1d41af04bb812..35412fc70645bfece9120d1c0fa0a764fb90ff4e 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 @@ public function testDbDumpCommand() { $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 3e054a72d1045c609d0d44256d9c2b4f9d59a88a..9ef21bfa965c0ec746e108631afb2dd3f1330690 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 ae948ae6eb7e18b867e55282d75113cdfb395bcc..9c275921e8afc30c83eef9865875909140afea4c 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 3a1cce924b2c170f2199adcd75555fb7f8555e4a..25bf18878b9acef0f021d233046757cbc0623956 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 8ca0cff099da86807bd69323f080afbc07977cb3..3fd4fc90898d5c4554d3b5f8c84fa2b3497c8a25 100644 --- a/core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php +++ b/core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php @@ -45,11 +45,10 @@ public function testMarkupInterfaceEmpty($expected, $variable) { */ 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 13aff87f87cd5636bfb2d335a8fa9aea65a7e6b0..ad2cd7b9068a8fec85752fd08fd6d46997de7036 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 d6a0471ff9e8a1ef678248f58b3597bcf878e01b..7b79672908736a1f32922af80e27935e2e6a049c 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 c386fb8b369ea6f0e95f981ed205f7d9bd044445..6102dc32d42aceb02b80094ce0d48c65a8f8a33d 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 4cb6dfc2cb69fe0061664ffa69fec25e06c7ffa8..e32464fa12bb02a8efa013f9f6e66075185621ab 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 80dfeaf7369f1c786bf7821973d796448f619e91..48336f1eefccac0207c756fd23aed10cba722308 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 7e21c4d043e24277bf3b295d74d16cdb85059c71..bc31bad21abd8f44eb730eaf2237f7d62d254d06 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 a0b4b0d0411cb21be54efb897fc336160bce9e5e..5c4789dc455b44eca3225841c37bd2773197e723 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 51b0f03619e3e909c1465179473b446b4e5939eb..8c8993dcd8586612a345fee8d9e47c5aa55335fc 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 65ca53181a846f9355b66c487bd6bb918dd8f93e..3a1f94ff000095d363bb283885e7858ce89ac325 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 258ed5f0edb55441e183f5bacf31ff2b878ae9ee..3dc91a66bc452442962491fb30a9017b7ff06856 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 ed876971265603941e3d89cecb572262c0dfcef3..b4c9abd9be4483725d80185f643f1fd13709cd24 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 d361ca0f05c6d33f546fe3421de1766f405cc0e0..c40c380630aaefe43cd383698435c1e4e5234bbf 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 7d85bc407af94d59c5c41788200f0a634af2af72..bfd65032ea2e0c30fe13f2ffe85af09737938982 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 e9ac2d9fc11cab739cc679198e4f7ea6640ce6af..f36e90512817572f5bf23b82c451de53937e9f68 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 f6097467fb0a772d8cbf85128ed5e5a636aacbe4..31586b1e7aa2ef174888ebce41fd328aa98f9f79 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 82d0036345519eb73e2bec2080071be8a21eee6d..89985aedf53976066c826a5db4e79a72ab90bf91 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 4c23b443844cfb3ebda08a8d2569475ab847d56d..f03957c31ac5d3aa0a2b8090e66e8e8d223ad489 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 4c90bea79710c7c2563fb046155be96a520d6976..77983ef745fda36870af82a111c0513199a2f693 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 81edf748db8aae1e0524af8f1e1b7f442e5277ff..f0b3c1d486ef64e6702bf3e989ad921d3d4da13d 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 22f1e1229c257be5c167cd7d1c1f9b3662e18e6c..4ab0423ca352aac0bd6060d7f09ce263e3a2a26d 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 c2aca7534b09205e698d46dcecb78293cfda6014..17cc5e02a1b9ebb7f70bb75d34688c1730ede513 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 9068db55bac8a0ef98be5361308d37053d30b667..485d8cbb2d0f66f0063ae74d1706522d0706c64b 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 31f22a4cec3c5e170077bcfebc2208d2b37fe075..896b64a8bee829666ded35aacba9c560f695f1c7 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 9ee0a27f86c900240e781ab103e1bdc6fab957ba..5a023ec46e23f842b1dc9fe11bf25277310624b2 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 ed5be2678df86ed8a53172bf3ba75827879d8311..456c1bbfd223dfaf5dd4f53d6f87f7e417a6a7fd 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 505aa27a131e0090af5f2416f240e0cbcee3ff84..08551525b0ac954bdf0ffe008d6044b3cc55c80b 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 eb54ac9d481f49b2f799f375d4f6b4a78c23c789..0b9db8ce0cce4998f585feed1567e0e549e3d858 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 a3a9ee4bb68639d68f58b1f9f0c74068e29c797b..870ccc91aa795e9c7b9d5beac563a24ae5d12ad3 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 32521db77bdb2e5858352dd881ef1cd5f83b0e3c..9423fd26b350f0d4ea3ceb6f447bcd03f5507db4 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 33a7bd113955637ee5383bedec1f04b57f017b37..c50f782f7eb6bb5a9576ea9c9cfceb1f2ee45544 100644 --- a/core/tests/Drupal/Tests/ComposerIntegrationTest.php +++ b/core/tests/Drupal/Tests/ComposerIntegrationTest.php @@ -205,7 +205,7 @@ public function testExpectedScaffoldFiles($destRelPath, $sourceRelPath, $expecte $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 @@ protected static function getContentHash($composerFileContents) 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 1125d47a5f441a58b82343967fc57dad07fd6ecf..5d6937866389e440fa1a6baf15d274748909a839 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 c641a6968089726d59a86ca5cbe891c25b68b83d..4e0ef6e790d985556934b6a16c2b8b9e4103733e 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 29738aabdb8f1dd2733f0775f2bbc1a4ffaf2f6f..dffc523912c0eb9a8a1159c63ca94d83756be001 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 f02935a27abc36fbebfb9bcb04a1360b1c200243..64c749d4d012bd76018457db99d0e32e6ea45789 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 f91b9afb29418b1637cd02a830629206ee3013d9..73671ab164bf72cd65bf925d8bad7172320bb4d7 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 daaf68272a50ba90845ccda2eed1c3c405f3739f..32dca95ad6371a73e18570a57f84b1027b10350c 100644 --- a/sites/example.sites.php +++ b/sites/example.sites.php @@ -1,6 +1,6 @@ <?php -// @codingStandardsIgnoreFile +// phpcs:ignoreFile /** * @file