Skip to content

Commit

Permalink
Update PHP CS Fixer and custom fixers (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos authored Feb 13, 2022
1 parent 623df12 commit d4c5212
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
],
"require": {
"php": "^8.0",
"friendsofphp/php-cs-fixer": "^3.5.0",
"kubawerlos/php-cs-fixer-custom-fixers": "^3.7.0"
"friendsofphp/php-cs-fixer": "^3.6.0",
"kubawerlos/php-cs-fixer-custom-fixers": "^3.8.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5.10"
Expand Down
1 change: 1 addition & 0 deletions src/Builder/Modifier/LibraryRulesModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function __invoke(array $rules): array
'property',
'requires',
'return',
'runInSeparateProcess',
'var',
]];

Expand Down
4 changes: 3 additions & 1 deletion src/Rules/LibraryRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function getRules(): array
'single_item_single_line' => true,
'space_before_parenthesis' => true,
],
'class_reference_name_casing' => true,
'clean_namespace' => true,
'combine_consecutive_issets' => false,
'combine_consecutive_unsets' => false,
Expand Down Expand Up @@ -216,6 +217,7 @@ public function getRules(): array
'no_unneeded_control_parentheses' => true,
'no_unneeded_curly_braces' => true,
'no_unneeded_final_method' => true,
'no_unneeded_import_alias' => true,
'no_unreachable_default_argument_value' => true,
'no_unset_cast' => true,
'no_unset_on_property' => true,
Expand Down Expand Up @@ -354,7 +356,6 @@ public function getRules(): array
Fixer\DataProviderReturnTypeFixer::name() => true,
Fixer\DataProviderStaticFixer::name() => true,
Fixer\DeclareAfterOpeningTagFixer::name() => true,
Fixer\InternalClassCasingFixer::name() => true,
Fixer\IssetToArrayKeyExistsFixer::name() => true,
Fixer\MultilineCommentOpeningClosingAloneFixer::name() => true,
Fixer\MultilinePromotedPropertiesFixer::name() => true,
Expand Down Expand Up @@ -394,6 +395,7 @@ public function getRules(): array
'property',
'requires',
'return',
'runInSeparateProcess',
'var',
],
],
Expand Down
3 changes: 2 additions & 1 deletion src/Rules/ProjectRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function getRules(): array
'single_item_single_line' => true,
'space_before_parenthesis' => true,
],
'class_reference_name_casing' => true,
'clean_namespace' => true,
'combine_consecutive_issets' => false,
'combine_consecutive_unsets' => false,
Expand Down Expand Up @@ -194,6 +195,7 @@ public function getRules(): array
'no_unneeded_control_parentheses' => true,
'no_unneeded_curly_braces' => true,
'no_unneeded_final_method' => true,
'no_unneeded_import_alias' => true,
'no_unreachable_default_argument_value' => true,
'no_unset_cast' => true,
'no_unset_on_property' => true,
Expand Down Expand Up @@ -332,7 +334,6 @@ public function getRules(): array
Fixer\DataProviderReturnTypeFixer::name() => true,
Fixer\DataProviderStaticFixer::name() => true,
Fixer\DeclareAfterOpeningTagFixer::name() => true,
Fixer\InternalClassCasingFixer::name() => true,
Fixer\IssetToArrayKeyExistsFixer::name() => true,
Fixer\MultilineCommentOpeningClosingAloneFixer::name() => true,
Fixer\MultilinePromotedPropertiesFixer::name() => true,
Expand Down

0 comments on commit d4c5212

Please sign in to comment.