diff --git a/core/lib/Drupal/Core/Cache/BackendChain.php b/core/lib/Drupal/Core/Cache/BackendChain.php index af8af0d911745cc4156e82976666a34b812cce85..851978b2930ecd149102da74e14f367f1e57641a 100644 --- a/core/lib/Drupal/Core/Cache/BackendChain.php +++ b/core/lib/Drupal/Core/Cache/BackendChain.php @@ -19,7 +19,6 @@ * * @ingroup cache */ - class BackendChain implements CacheBackendInterface, CacheTagsInvalidatorInterface { /** diff --git a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithDependencies.php b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithDependencies.php index d26e225456d708931207ff836b9ea051fa9eecd3..f1e96dc4024f8489fd9be5ad9ee2b60a40fc86e1 100644 --- a/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithDependencies.php +++ b/core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithDependencies.php @@ -21,7 +21,6 @@ * } * ) */ - class TestItemWithDependencies extends TestItem { /** diff --git a/core/modules/forum/src/Form/Overview.php b/core/modules/forum/src/Form/Overview.php index 9e77482c14ef444fe4ddcfc38d2d776a2d7f19b0..ba9c033de723a053a747e20a807bda79c987e131 100644 --- a/core/modules/forum/src/Form/Overview.php +++ b/core/modules/forum/src/Form/Overview.php @@ -10,7 +10,7 @@ use Drupal\Core\Extension\ModuleHandlerInterface; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; -/* +/** * Provides forum overview form for the forum vocabulary. */ class Overview extends OverviewTerms { diff --git a/core/modules/taxonomy/src/Form/OverviewTerms.php b/core/modules/taxonomy/src/Form/OverviewTerms.php index b5f1ef7f69d62917d598550ab95792c9c5443fa9..cdc661956b2df97a392bd9a9ce7c2918b03361f5 100644 --- a/core/modules/taxonomy/src/Form/OverviewTerms.php +++ b/core/modules/taxonomy/src/Form/OverviewTerms.php @@ -9,7 +9,7 @@ use Drupal\taxonomy\VocabularyInterface; use Symfony\Component\DependencyInjection\ContainerInterface; -/* +/** * Provides terms overview form for a taxonomy vocabulary. */ class OverviewTerms extends FormBase { diff --git a/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php b/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php index b6e15d7b0c1099d537dc313bc6eb55a398d5b758..f137105ddb4d96abb8ee83db2e474810dfbd9f20 100644 --- a/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php @@ -249,7 +249,9 @@ public function testExecuteCountQueryWithOffset() { } -// As StatementInterface extends \Traversable, which though always needs -// an additional interface. The Statement class itself can't be mocked because -// of its __wakeup function. +/** + * As StatementInterface extends \Traversable, which though always needs + * an additional interface. The Statement class itself can't be mocked because + * of its __wakeup function. + */ interface TestStatementInterface extends StatementInterface, \Iterator {} diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist index 129168ab16b2b6a93689d0ce9e3ee214b4e77cb0..66aa48526c6b36b35986b17c0333c3d9a13bcdd0 100644 --- a/core/phpcs.xml.dist +++ b/core/phpcs.xml.dist @@ -17,6 +17,9 @@ <rule ref="Drupal.Classes.UnusedUseStatement"/> <rule ref="Drupal.CSS.ClassDefinitionNameSpacing"/> <rule ref="Drupal.CSS.ColourDefinition"/> + <rule ref="Drupal.Commenting.ClassComment"> + <exclude name="Drupal.Commenting.ClassComment.Missing"/> + </rule> <rule ref="Drupal.Commenting.DocComment"> <!-- Sniff for these errors: SpacingAfterTagGroup, WrongEnd, SpacingBetween, ContentAfterOpen, SpacingBeforeShort, TagValueIndent, ShortStartSpace,