diff --git a/src/Configuration/Defaults/CommonRules.php b/src/Configuration/Defaults/CommonRules.php index fbc69fa..f5d0220 100644 --- a/src/Configuration/Defaults/CommonRules.php +++ b/src/Configuration/Defaults/CommonRules.php @@ -113,6 +113,7 @@ use PhpCsFixer\Fixer\Whitespace\NoSpacesAroundOffsetFixer; use PhpCsFixer\Fixer\Whitespace\NoWhitespaceInBlankLineFixer; use PhpCsFixer\Fixer\Whitespace\SingleBlankLineAtEofFixer; +use PhpCsFixer\Fixer\Whitespace\SpacesInsideParenthesesFixer; use PhpCsFixer\Fixer\Whitespace\StatementIndentationFixer; use PhpCsFixer\Fixer\Whitespace\TypeDeclarationSpacesFixer; use PhpCsFixerCustomFixers\Fixer\CommentedOutFunctionFixer; @@ -346,5 +347,6 @@ class CommonRules extends Rules NoBlankLinesAfterPhpdocFixer::class => true, ConstantCaseFixer::class => true, PhpUnitAttributesFixer::class => true, + SpacesInsideParenthesesFixer::class => true, ]; } diff --git a/tests/codestyle/CommonRulesetTest.php b/tests/codestyle/CommonRulesetTest.php index 843a96c..296fc45 100644 --- a/tests/codestyle/CommonRulesetTest.php +++ b/tests/codestyle/CommonRulesetTest.php @@ -68,6 +68,7 @@ public static function providePhp80Fixtures(): array ["noMultilineWhitespaceAroundDoubleArrow"], ["compactArray"], ["classesImport"], + ["spacesInsideParentheses"], ]; } diff --git a/tests/fixtures/spacesInsideParentheses/actual.php b/tests/fixtures/spacesInsideParentheses/actual.php new file mode 100644 index 0000000..a43809b --- /dev/null +++ b/tests/fixtures/spacesInsideParentheses/actual.php @@ -0,0 +1,6 @@ +