From 6802ea335576ca4d249509ea2ffc97b03154a79a Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Mon, 17 May 2021 20:22:22 +0100
Subject: [PATCH] Issue #3207968 by quietone, longwave, Spokje: Replace
 @codingStandards comments with phpcs: comments

---
 core/assets/scaffold/files/default.settings.php           | 2 +-
 core/assets/scaffold/files/example.settings.local.php     | 2 +-
 core/assets/scaffold/files/example.sites.php              | 2 +-
 .../Drupal/Component/Annotation/Doctrine/DocParser.php    | 2 +-
 .../Annotation/Doctrine/SimpleAnnotationReader.php        | 2 +-
 core/lib/Drupal/Core/Command/DbDumpCommand.php            | 2 +-
 .../lib/Drupal/Core/Command/GenerateProxyClassCommand.php | 2 +-
 core/lib/Drupal/Core/Database/DatabaseException.php       | 2 +-
 .../Drupal/Core/DependencyInjection/ContainerBuilder.php  | 4 +++-
 .../Drupal/Core/DependencyInjection/YamlFileLoader.php    | 4 +++-
 core/lib/Drupal/Core/ProxyClass/Batch/BatchStorage.php    | 2 +-
 .../lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php | 2 +-
 core/lib/Drupal/Core/ProxyClass/Cron.php                  | 2 +-
 .../Core/ProxyClass/Entity/ContentUninstallValidator.php  | 2 +-
 .../Extension/DatabaseDriverUninstallValidator.php        | 2 +-
 .../Drupal/Core/ProxyClass/Extension/ModuleInstaller.php  | 2 +-
 .../ModuleRequiredByThemesUninstallValidator.php          | 2 +-
 .../Extension/RequiredModuleUninstallValidator.php        | 2 +-
 .../ProxyClass/File/MimeType/ExtensionMimeTypeGuesser.php | 2 +-
 .../Core/ProxyClass/File/MimeType/MimeTypeGuesser.php     | 2 +-
 .../Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php   | 2 +-
 .../ProxyClass/Lock/PersistentDatabaseLockBackend.php     | 2 +-
 .../Core/ProxyClass/PageCache/ChainResponsePolicy.php     | 2 +-
 .../ParamConverter/AdminPathConfigEntityConverter.php     | 2 +-
 .../ProxyClass/ParamConverter/MenuLinkPluginConverter.php | 2 +-
 .../Core/ProxyClass/Plugin/CachedDiscoveryClearer.php     | 2 +-
 .../Core/ProxyClass/Render/BareHtmlPageRenderer.php       | 2 +-
 core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php | 2 +-
 core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php  | 2 +-
 .../TypedData/Validation/ConstraintViolationBuilder.php   | 4 +++-
 .../Core/TypedData/Validation/ExecutionContextFactory.php | 8 ++------
 .../block/src/Plugin/migrate/process/BlockVisibility.php  | 1 -
 .../book/src/ProxyClass/BookUninstallValidator.php        | 2 +-
 .../field/src/ProxyClass/FieldUninstallValidator.php      | 2 +-
 .../filter/src/ProxyClass/FilterUninstallValidator.php    | 2 +-
 .../forum/src/ProxyClass/ForumUninstallValidator.php      | 2 +-
 core/modules/jsonapi/tests/src/Functional/MediaTest.php   | 2 --
 .../modules/language/src/ProxyClass/LanguageConverter.php | 2 +-
 .../migrate/src/Plugin/migrate/process/MenuLinkParent.php | 1 -
 .../src/Plugin/migrate/process/MigrationLookup.php        | 1 -
 .../drupal-8.migrate-drupal-multilingual-enabled.php      | 2 +-
 core/modules/migrate_drupal/tests/fixtures/drupal6.php    | 2 +-
 core/modules/migrate_drupal/tests/fixtures/drupal7.php    | 2 +-
 .../ProxyClass/ParamConverter/NodePreviewConverter.php    | 2 +-
 .../system/tests/src/Kernel/Scripts/DbDumpCommandTest.php | 2 +-
 .../src/ProxyClass/ParamConverter/ViewUIConverter.php     | 2 +-
 core/phpcs.xml.dist                                       | 2 ++
 core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php   | 2 +-
 .../KernelTests/Core/Theme/TwigMarkupInterfaceTest.php    | 3 +--
 .../Tests/Component/Annotation/Doctrine/DocParserTest.php | 1 -
 .../Fixtures/Annotation/AnnotWithDefaultValue.php         | 1 -
 .../Annotation/Doctrine/Fixtures/Annotation/Autoload.php  | 1 -
 .../Annotation/Doctrine/Fixtures/Annotation/Route.php     | 1 -
 .../Annotation/Doctrine/Fixtures/Annotation/Secure.php    | 1 -
 .../Annotation/Doctrine/Fixtures/Annotation/Template.php  | 1 -
 .../Annotation/Doctrine/Fixtures/Annotation/Version.php   | 1 -
 .../Annotation/Doctrine/Fixtures/AnnotationEnum.php       | 1 -
 .../Doctrine/Fixtures/AnnotationEnumInvalid.php           | 1 -
 .../Doctrine/Fixtures/AnnotationEnumLiteral.php           | 1 -
 .../Doctrine/Fixtures/AnnotationEnumLiteralInvalid.php    | 1 -
 .../Annotation/Doctrine/Fixtures/AnnotationTargetAll.php  | 1 -
 .../Doctrine/Fixtures/AnnotationTargetAnnotation.php      | 1 -
 .../Doctrine/Fixtures/AnnotationTargetClass.php           | 1 -
 .../Doctrine/Fixtures/AnnotationTargetPropertyMethod.php  | 1 -
 .../Doctrine/Fixtures/AnnotationWithAttributes.php        | 1 -
 .../Doctrine/Fixtures/AnnotationWithConstants.php         | 1 -
 .../Fixtures/AnnotationWithRequiredAttributes.php         | 1 -
 .../AnnotationWithRequiredAttributesWithoutContructor.php | 1 -
 .../Doctrine/Fixtures/AnnotationWithTargetSyntaxError.php | 1 -
 .../Doctrine/Fixtures/AnnotationWithVarType.php           | 1 -
 .../Annotation/Doctrine/Fixtures/ClassWithConstants.php   | 1 -
 .../Fixtures/ClassWithInvalidAnnotationTargetAtClass.php  | 1 -
 .../Fixtures/ClassWithInvalidAnnotationTargetAtMethod.php | 1 -
 .../ClassWithInvalidAnnotationTargetAtProperty.php        | 1 -
 .../Doctrine/Fixtures/ClassWithValidAnnotationTarget.php  | 1 -
 .../Doctrine/Fixtures/IntefaceWithConstants.php           | 1 -
 .../Component/Annotation/Doctrine/Ticket/DCOM58Entity.php | 1 -
 .../Component/Annotation/Doctrine/Ticket/DCOM58Test.php   | 1 -
 core/tests/Drupal/Tests/ComposerIntegrationTest.php       | 4 ++--
 core/tests/fixtures/empty_file.php.module                 | 2 +-
 core/tests/fixtures/files/php-1.txt                       | 2 +-
 core/tests/fixtures/files/php-2.php                       | 2 +-
 sites/default/default.settings.php                        | 2 +-
 sites/example.settings.local.php                          | 2 +-
 sites/example.sites.php                                   | 2 +-
 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 f02935a27abc..64c749d4d012 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 f91b9afb2941..73671ab164bf 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 daaf68272a50..32dca95ad637 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 3c0e82e88202..04b81a0c1642 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 ddda2e3c411e..96e6b8dff158 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 1f3c5333f585..ac544d068bdd 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 fbcfb4779efc..ac99bc6c3a4f 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 7d5ae6391da0..7b7af39402ee 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 73f1757cff8b..b2f1cd8cc764 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 ff868dceac2b..fc2c14923ac3 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 7caef866855e..5e6fc6df6d21 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 e72fc43f8192..76ce0ecb1278 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 2d31df02a575..640b9d030c53 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 00cc99dca996..4d646bc40a94 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 2390c26f8c5e..43fab980d287 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 174f7fb7443f..66dab3b27ec6 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 601f482e4d30..57eb24f15c82 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 d50a3ac3c1ec..58c0043ccaa7 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 d82e30824dc9..760323619893 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 bbc8b16e32ea..ad7f37fda131 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 963fcf5dcccf..a3ff17fb760e 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 342e1d669d63..ec0ed64ae329 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 47b294dffba7..4ef163b02582 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 3e2f908993ae..f1d88d62dd53 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 bd83085d974e..5a9a45e38c54 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 2658ba8719b3..fcf84a3f315a 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 7814e2255633..9a4baad7ce68 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 e3ffe1c352a1..38d7149d6d57 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 8d82ef56044d..399df911734f 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 bfee7f09472c..a3e62d0b9757 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 118f20e20170..ad6efc68f5a3 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 ac39128bcf8a..45e4d4e7fb60 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 d0082fe8f66d..2ba59bf055de 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 17a7b37074bb..0861eea532fa 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 326f77108b87..2e7ccc184c04 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 4d398a904415..7d9469e19f3b 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 b630dcc6fb0b..0ca90296c182 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 0316bf8b14f9..5511c6859e55 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 90a0cc4e2037..40269578d7ff 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 576cea26bff8..112ad7314048 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 905a8e6f4ca9..ad57f645bec8 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 5be9fe5e5301..0badecba7952 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 5bba59f0bb47..ec81792cd8ad 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 afe5fe0fb1ac..7dcd43e7cae6 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 0313cae900f4..35412fc70645 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 3e054a72d104..9ef21bfa965c 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 ae948ae6eb7e..9c275921e8af 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 3a1cce924b2c..25bf18878b9a 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 8ca0cff099da..3fd4fc90898d 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 13aff87f87cd..ad2cd7b9068a 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 d6a0471ff9e8..7b7967290873 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 c386fb8b369e..6102dc32d42a 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 4cb6dfc2cb69..e32464fa12bb 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 80dfeaf7369f..48336f1eefcc 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 7e21c4d043e2..bc31bad21abd 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 a0b4b0d0411c..5c4789dc455b 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 51b0f03619e3..8c8993dcd858 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 65ca53181a84..3a1f94ff0000 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 258ed5f0edb5..3dc91a66bc45 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 ed8769712656..b4c9abd9be44 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 d361ca0f05c6..c40c380630aa 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 7d85bc407af9..bfd65032ea2e 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 e9ac2d9fc11c..f36e90512817 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 f6097467fb0a..31586b1e7aa2 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 82d003634551..89985aedf539 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 4c23b443844c..f03957c31ac5 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 4c90bea79710..77983ef745fd 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 81edf748db8a..f0b3c1d486ef 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 22f1e1229c25..4ab0423ca352 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 c2aca7534b09..17cc5e02a1b9 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 9068db55bac8..485d8cbb2d0f 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 31f22a4cec3c..896b64a8bee8 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 9ee0a27f86c9..5a023ec46e23 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 ed5be2678df8..456c1bbfd223 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 505aa27a131e..08551525b0ac 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 eb54ac9d481f..0b9db8ce0cce 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 a3a9ee4bb686..870ccc91aa79 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 32521db77bdb..9423fd26b350 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 33a7bd113955..c50f782f7eb6 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 1125d47a5f44..5d6937866389 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 c641a6968089..4e0ef6e790d9 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 29738aabdb8f..dffc523912c0 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 f02935a27abc..64c749d4d012 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 f91b9afb2941..73671ab164bf 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 daaf68272a50..32dca95ad637 100644
--- a/sites/example.sites.php
+++ b/sites/example.sites.php
@@ -1,6 +1,6 @@
 <?php
 
-// @codingStandardsIgnoreFile
+// phpcs:ignoreFile
 
 /**
  * @file
-- 
GitLab