Skip to content

Commit

Permalink
Fix: Configure closure_fn_spacing option of function_declaration fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Nov 1, 2022
1 parent e51173e commit b24c9c9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'full_opening_tag' => true,
'fully_qualified_strict_types' => true,
'function_declaration' => [
'closure_fn_spacing' => 'one',
'closure_function_spacing' => 'one',
'trailing_comma_single_line' => false,
],
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'full_opening_tag' => true,
'fully_qualified_strict_types' => true,
'function_declaration' => [
'closure_fn_spacing' => 'one',
'closure_function_spacing' => 'one',
'trailing_comma_single_line' => false,
],
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'full_opening_tag' => true,
'fully_qualified_strict_types' => true,
'function_declaration' => [
'closure_fn_spacing' => 'one',
'closure_function_spacing' => 'one',
'trailing_comma_single_line' => false,
],
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
'full_opening_tag' => true,
'fully_qualified_strict_types' => true,
'function_declaration' => [
'closure_fn_spacing' => 'one',
'closure_function_spacing' => 'one',
'trailing_comma_single_line' => false,
],
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
'full_opening_tag' => true,
'fully_qualified_strict_types' => true,
'function_declaration' => [
'closure_fn_spacing' => 'one',
'closure_function_spacing' => 'one',
'trailing_comma_single_line' => false,
],
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ final class Php81Test extends ExplicitRuleSetTestCase
'full_opening_tag' => true,
'fully_qualified_strict_types' => true,
'function_declaration' => [
'closure_fn_spacing' => 'one',
'closure_function_spacing' => 'one',
'trailing_comma_single_line' => false,
],
Expand Down

0 comments on commit b24c9c9

Please sign in to comment.