From b3f4b3408ab113e733229c585df64f768242153d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 30 Aug 2021 10:30:29 +0200 Subject: [PATCH] Fix: Extract constant --- src/RuleSet/AbstractRuleSet.php | 100 +++++ src/RuleSet/Php73.php | 368 +----------------- src/RuleSet/Php74.php | 368 +----------------- src/RuleSet/Php80.php | 368 +----------------- test/Unit/RuleSet/AbstractRuleSetTestCase.php | 100 +++++ test/Unit/RuleSet/Php73Test.php | 368 +----------------- test/Unit/RuleSet/Php74Test.php | 368 +----------------- test/Unit/RuleSet/Php80Test.php | 368 +----------------- 8 files changed, 224 insertions(+), 2184 deletions(-) diff --git a/src/RuleSet/AbstractRuleSet.php b/src/RuleSet/AbstractRuleSet.php index aed91321..a69b18a9 100644 --- a/src/RuleSet/AbstractRuleSet.php +++ b/src/RuleSet/AbstractRuleSet.php @@ -20,6 +20,106 @@ */ abstract class AbstractRuleSet implements RuleSet { + /** + * A list of tags that should be ignored by fixers related to Doctrine. + * + * @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/rules/doctrine_annotation/doctrine_annotation_array_assignment.rst + * @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/rules/doctrine_annotation/doctrine_annotation_braces.rst + * @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/rules/doctrine_annotation/doctrine_annotation_indentation.rst + * @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/rules/doctrine_annotation/doctrine_annotation_spaces.rst + */ + protected const DOCTRINE_IGNORED_TAGS = [ + 'abstract', + 'access', + 'after', + 'afterClass', + 'api', + 'author', + 'backupGlobals', + 'backupStaticAttributes', + 'before', + 'beforeClass', + 'category', + 'code', + 'codeCoverageIgnore', + 'codeCoverageIgnoreEnd', + 'codeCoverageIgnoreStart', + 'copyright', + 'covers', + 'coversDefaultClass', + 'coversNothing', + 'dataProvider', + 'depends', + 'deprec', + 'deprecated', + 'encode', + 'enduml', + 'example', + 'exception', + 'expectedException', + 'expectedExceptionCode', + 'expectedExceptionMessage', + 'expectedExceptionMessageRegExp', + 'filesource', + 'final', + 'fix', + 'FIXME', + 'fixme', + 'global', + 'group', + 'ignore', + 'ingroup', + 'inheritdoc', + 'inheritDoc', + 'internal', + 'large', + 'license', + 'link', + 'magic', + 'medium', + 'method', + 'name', + 'noinspection', + 'override', + 'package', + 'package_version', + 'param', + 'preserveGlobalState', + 'private', + 'property', + 'property-read', + 'property-write', + 'requires', + 'return', + 'runInSeparateProcess', + 'runTestsInSeparateProcesses', + 'see', + 'since', + 'small', + 'source', + 'startuml', + 'static', + 'staticvar', + 'staticVar', + 'subpackage', + 'SuppressWarnings', + 'template', + 'test', + 'testdox', + 'throw', + 'throws', + 'ticket', + 'toc', + 'todo', + 'TODO', + 'tutorial', + 'usedBy', + 'uses', + 'uses', + 'var', + 'version', + ]; + /** * @var string */ diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index 1e1b29e7..13a7189a 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -102,285 +102,15 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet 'declare_strict_types' => true, 'dir_constant' => true, 'doctrine_annotation_array_assignment' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'operator' => ':', ], 'doctrine_annotation_braces' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'syntax' => 'without_braces', ], 'doctrine_annotation_indentation' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritDoc', - 'inheritdoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'indent_mixed_lines' => false, ], 'doctrine_annotation_spaces' => [ @@ -392,97 +122,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet 'before_argument_assignments' => false, 'before_array_assignments_colon' => false, 'before_array_assignments_equals' => false, - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, ], 'echo_tag_syntax' => [ 'format' => 'long', diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 8a7d147f..e7328252 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -102,285 +102,15 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'declare_strict_types' => true, 'dir_constant' => true, 'doctrine_annotation_array_assignment' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'operator' => ':', ], 'doctrine_annotation_braces' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'syntax' => 'without_braces', ], 'doctrine_annotation_indentation' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritDoc', - 'inheritdoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'indent_mixed_lines' => false, ], 'doctrine_annotation_spaces' => [ @@ -392,97 +122,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'before_argument_assignments' => false, 'before_array_assignments_colon' => false, 'before_array_assignments_equals' => false, - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, ], 'echo_tag_syntax' => [ 'format' => 'long', diff --git a/src/RuleSet/Php80.php b/src/RuleSet/Php80.php index 0738bfd0..b0851b7a 100644 --- a/src/RuleSet/Php80.php +++ b/src/RuleSet/Php80.php @@ -102,285 +102,15 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'declare_strict_types' => true, 'dir_constant' => true, 'doctrine_annotation_array_assignment' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'operator' => ':', ], 'doctrine_annotation_braces' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'syntax' => 'without_braces', ], 'doctrine_annotation_indentation' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritDoc', - 'inheritdoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'indent_mixed_lines' => false, ], 'doctrine_annotation_spaces' => [ @@ -392,97 +122,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'before_argument_assignments' => false, 'before_array_assignments_colon' => false, 'before_array_assignments_equals' => false, - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, ], 'echo_tag_syntax' => [ 'format' => 'long', diff --git a/test/Unit/RuleSet/AbstractRuleSetTestCase.php b/test/Unit/RuleSet/AbstractRuleSetTestCase.php index 1409eaab..a58d7d23 100644 --- a/test/Unit/RuleSet/AbstractRuleSetTestCase.php +++ b/test/Unit/RuleSet/AbstractRuleSetTestCase.php @@ -24,6 +24,106 @@ */ abstract class AbstractRuleSetTestCase extends Framework\TestCase { + /** + * A list of tags that should be ignored by fixers related to Doctrine. + * + * @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/rules/doctrine_annotation/doctrine_annotation_array_assignment.rst + * @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/rules/doctrine_annotation/doctrine_annotation_braces.rst + * @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/rules/doctrine_annotation/doctrine_annotation_indentation.rst + * @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/rules/doctrine_annotation/doctrine_annotation_spaces.rst + */ + protected const DOCTRINE_IGNORED_TAGS = [ + 'abstract', + 'access', + 'after', + 'afterClass', + 'api', + 'author', + 'backupGlobals', + 'backupStaticAttributes', + 'before', + 'beforeClass', + 'category', + 'code', + 'codeCoverageIgnore', + 'codeCoverageIgnoreEnd', + 'codeCoverageIgnoreStart', + 'copyright', + 'covers', + 'coversDefaultClass', + 'coversNothing', + 'dataProvider', + 'depends', + 'deprec', + 'deprecated', + 'encode', + 'enduml', + 'example', + 'exception', + 'expectedException', + 'expectedExceptionCode', + 'expectedExceptionMessage', + 'expectedExceptionMessageRegExp', + 'filesource', + 'final', + 'fix', + 'FIXME', + 'fixme', + 'global', + 'group', + 'ignore', + 'ingroup', + 'inheritdoc', + 'inheritDoc', + 'internal', + 'large', + 'license', + 'link', + 'magic', + 'medium', + 'method', + 'name', + 'noinspection', + 'override', + 'package', + 'package_version', + 'param', + 'preserveGlobalState', + 'private', + 'property', + 'property-read', + 'property-write', + 'requires', + 'return', + 'runInSeparateProcess', + 'runTestsInSeparateProcesses', + 'see', + 'since', + 'small', + 'source', + 'startuml', + 'static', + 'staticvar', + 'staticVar', + 'subpackage', + 'SuppressWarnings', + 'template', + 'test', + 'testdox', + 'throw', + 'throws', + 'ticket', + 'toc', + 'todo', + 'TODO', + 'tutorial', + 'usedBy', + 'uses', + 'uses', + 'var', + 'version', + ]; + /** * @var string */ diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index 02f969a0..0ff1aec9 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -108,285 +108,15 @@ final class Php73Test extends ExplicitRuleSetTestCase 'declare_strict_types' => true, 'dir_constant' => true, 'doctrine_annotation_array_assignment' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'operator' => ':', ], 'doctrine_annotation_braces' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'syntax' => 'without_braces', ], 'doctrine_annotation_indentation' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritDoc', - 'inheritdoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'indent_mixed_lines' => false, ], 'doctrine_annotation_spaces' => [ @@ -398,97 +128,7 @@ final class Php73Test extends ExplicitRuleSetTestCase 'before_argument_assignments' => false, 'before_array_assignments_colon' => false, 'before_array_assignments_equals' => false, - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, ], 'echo_tag_syntax' => [ 'format' => 'long', diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 897755bf..1f09233e 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -108,285 +108,15 @@ final class Php74Test extends ExplicitRuleSetTestCase 'declare_strict_types' => true, 'dir_constant' => true, 'doctrine_annotation_array_assignment' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'operator' => ':', ], 'doctrine_annotation_braces' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'syntax' => 'without_braces', ], 'doctrine_annotation_indentation' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritDoc', - 'inheritdoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'indent_mixed_lines' => false, ], 'doctrine_annotation_spaces' => [ @@ -398,97 +128,7 @@ final class Php74Test extends ExplicitRuleSetTestCase 'before_argument_assignments' => false, 'before_array_assignments_colon' => false, 'before_array_assignments_equals' => false, - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, ], 'echo_tag_syntax' => [ 'format' => 'long', diff --git a/test/Unit/RuleSet/Php80Test.php b/test/Unit/RuleSet/Php80Test.php index 32497a06..e7fbdb88 100644 --- a/test/Unit/RuleSet/Php80Test.php +++ b/test/Unit/RuleSet/Php80Test.php @@ -108,285 +108,15 @@ final class Php80Test extends ExplicitRuleSetTestCase 'declare_strict_types' => true, 'dir_constant' => true, 'doctrine_annotation_array_assignment' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'operator' => ':', ], 'doctrine_annotation_braces' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'syntax' => 'without_braces', ], 'doctrine_annotation_indentation' => [ - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritDoc', - 'inheritdoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, 'indent_mixed_lines' => false, ], 'doctrine_annotation_spaces' => [ @@ -398,97 +128,7 @@ final class Php80Test extends ExplicitRuleSetTestCase 'before_argument_assignments' => false, 'before_array_assignments_colon' => false, 'before_array_assignments_equals' => false, - 'ignored_tags' => [ - 'abstract', - 'access', - 'after', - 'afterClass', - 'api', - 'author', - 'backupGlobals', - 'backupStaticAttributes', - 'before', - 'beforeClass', - 'category', - 'code', - 'codeCoverageIgnore', - 'codeCoverageIgnoreEnd', - 'codeCoverageIgnoreStart', - 'copyright', - 'covers', - 'coversDefaultClass', - 'coversNothing', - 'dataProvider', - 'depends', - 'deprec', - 'deprecated', - 'encode', - 'enduml', - 'example', - 'exception', - 'expectedException', - 'expectedExceptionCode', - 'expectedExceptionMessage', - 'expectedExceptionMessageRegExp', - 'filesource', - 'final', - 'fix', - 'FIXME', - 'fixme', - 'global', - 'group', - 'ignore', - 'ingroup', - 'inheritdoc', - 'inheritDoc', - 'internal', - 'large', - 'license', - 'link', - 'magic', - 'medium', - 'method', - 'name', - 'noinspection', - 'override', - 'package', - 'package_version', - 'param', - 'preserveGlobalState', - 'private', - 'property', - 'property-read', - 'property-write', - 'requires', - 'return', - 'runInSeparateProcess', - 'runTestsInSeparateProcesses', - 'see', - 'since', - 'small', - 'source', - 'startuml', - 'static', - 'staticvar', - 'staticVar', - 'subpackage', - 'SuppressWarnings', - 'template', - 'test', - 'testdox', - 'throw', - 'throws', - 'ticket', - 'toc', - 'todo', - 'TODO', - 'tutorial', - 'usedBy', - 'uses', - 'uses', - 'var', - 'version', - ], + 'ignored_tags' => self::DOCTRINE_IGNORED_TAGS, ], 'echo_tag_syntax' => [ 'format' => 'long',