Skip to content

Commit

Permalink
Enhancement: Enable PhpCsFixerCustomFixers/phpdoc_types_comma_spaces …
Browse files Browse the repository at this point in the history
…fixer
  • Loading branch information
localheinz committed Jan 4, 2024
1 parent 063eecc commit c77c8ae
Show file tree
Hide file tree
Showing 27 changed files with 54 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ For a full diff see [`6.18.0...main`][6.18.0...main].
- Enabled the `PhpCsFixerCustomFixers/no_duplicated_array_key` fixer ([#976]), by [@localheinz]
- Enabled the `PhpCsFixerCustomFixers/no_duplicated_imports` fixer ([#977]), by [@localheinz]
- Enabled the `PhpCsFixerCustomFixers/no_import_from_global_namespace` fixer ([#978]), by [@localheinz]
- Enabled the `PhpCsFixerCustomFixers/phpdoc_types_comma_spaces` fixer ([#979]), by [@localheinz]

## [`6.18.0`][6.18.0]

Expand Down Expand Up @@ -1492,6 +1493,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#976]: https://github.com/ergebnis/php-cs-fixer-config/pull/976
[#977]: https://github.com/ergebnis/php-cs-fixer-config/pull/977
[#978]: https://github.com/ergebnis/php-cs-fixer-config/pull/978
[#979]: https://github.com/ergebnis/php-cs-fixer-config/pull/979

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php53.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function create(): RuleSet
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
),
Name::fromString(\sprintf(
Expand All @@ -57,6 +58,7 @@ public static function create(): RuleSet
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php54.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function create(): RuleSet
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
),
Name::fromString(\sprintf(
Expand All @@ -57,6 +58,7 @@ public static function create(): RuleSet
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php55.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function create(): RuleSet
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
),
Name::fromString(\sprintf(
Expand All @@ -57,6 +58,7 @@ public static function create(): RuleSet
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php56.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function create(): RuleSet
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
),
Name::fromString(\sprintf(
Expand All @@ -57,6 +58,7 @@ public static function create(): RuleSet
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php70.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function create(): RuleSet
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
),
Name::fromString(\sprintf(
Expand All @@ -57,6 +58,7 @@ public static function create(): RuleSet
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php71.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function create(): RuleSet
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
),
Name::fromString(\sprintf(
Expand All @@ -57,6 +58,7 @@ public static function create(): RuleSet
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php72.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function create(): RuleSet
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
),
Name::fromString(\sprintf(
Expand All @@ -57,6 +58,7 @@ public static function create(): RuleSet
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function create(): RuleSet
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
),
Name::fromString(\sprintf(
Expand All @@ -57,6 +58,7 @@ public static function create(): RuleSet
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static function create(): RuleSet
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
),
Name::fromString(\sprintf(
Expand All @@ -57,6 +58,7 @@ public static function create(): RuleSet
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static function create(): RuleSet
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
),
Name::fromString(\sprintf(
Expand All @@ -62,6 +63,7 @@ public static function create(): RuleSet
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static function create(): RuleSet
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
),
Name::fromString(\sprintf(
Expand All @@ -62,6 +63,7 @@ public static function create(): RuleSet
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php82.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static function create(): RuleSet
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
),
Name::fromString(\sprintf(
Expand All @@ -62,6 +63,7 @@ public static function create(): RuleSet
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions src/RuleSet/Php83.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static function create(): RuleSet
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
),
Name::fromString(\sprintf(
Expand All @@ -62,6 +63,7 @@ public static function create(): RuleSet
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions test/Unit/RuleSet/Php53Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ protected function expectedCustomFixers(): Fixers
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
);
}
Expand Down Expand Up @@ -80,6 +81,7 @@ protected function expectedRules(): Rules
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions test/Unit/RuleSet/Php54Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ protected function expectedCustomFixers(): Fixers
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
);
}
Expand Down Expand Up @@ -80,6 +81,7 @@ protected function expectedRules(): Rules
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions test/Unit/RuleSet/Php55Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ protected function expectedCustomFixers(): Fixers
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
);
}
Expand Down Expand Up @@ -80,6 +81,7 @@ protected function expectedRules(): Rules
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions test/Unit/RuleSet/Php56Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ protected function expectedCustomFixers(): Fixers
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
);
}
Expand Down Expand Up @@ -80,6 +81,7 @@ protected function expectedRules(): Rules
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions test/Unit/RuleSet/Php70Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ protected function expectedCustomFixers(): Fixers
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
);
}
Expand Down Expand Up @@ -80,6 +81,7 @@ protected function expectedRules(): Rules
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions test/Unit/RuleSet/Php71Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ protected function expectedCustomFixers(): Fixers
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
);
}
Expand Down Expand Up @@ -80,6 +81,7 @@ protected function expectedRules(): Rules
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions test/Unit/RuleSet/Php72Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ protected function expectedCustomFixers(): Fixers
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
);
}
Expand Down Expand Up @@ -80,6 +81,7 @@ protected function expectedRules(): Rules
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions test/Unit/RuleSet/Php73Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ protected function expectedCustomFixers(): Fixers
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
);
}
Expand Down Expand Up @@ -80,6 +81,7 @@ protected function expectedRules(): Rules
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
2 changes: 2 additions & 0 deletions test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ protected function expectedCustomFixers(): Fixers
new Fixer\NoImportFromGlobalNamespaceFixer(),
new Fixer\PhpdocArrayStyleFixer(),
new Fixer\PhpdocTypeListFixer(),
new Fixer\PhpdocTypesCommaSpacesFixer(),
new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(),
);
}
Expand Down Expand Up @@ -80,6 +81,7 @@ protected function expectedRules(): Rules
'PhpCsFixerCustomFixers/no_import_from_global_namespace' => true,
'PhpCsFixerCustomFixers/phpdoc_array_style' => true,
'PhpCsFixerCustomFixers/phpdoc_type_list' => true,
'PhpCsFixerCustomFixers/phpdoc_types_comma_spaces' => true,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
Expand Down
Loading

0 comments on commit c77c8ae

Please sign in to comment.