Skip to content

Commit

Permalink
Fix: Configure braces fixer using all non-deprecated options
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 26, 2020
1 parent 94bfabe commit 1ea5cf9
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/RuleSet/Php71.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet
],
'braces' => [
'allow_single_line_anonymous_class_with_empty_body' => true,
'allow_single_line_closure' => false,
'position_after_anonymous_constructs' => 'same',
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => [
'space' => 'single',
Expand Down
4 changes: 4 additions & 0 deletions src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
],
'braces' => [
'allow_single_line_anonymous_class_with_empty_body' => true,
'allow_single_line_closure' => false,
'position_after_anonymous_constructs' => 'same',
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => [
'space' => 'single',
Expand Down
4 changes: 4 additions & 0 deletions src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
],
'braces' => [
'allow_single_line_anonymous_class_with_empty_body' => true,
'allow_single_line_closure' => false,
'position_after_anonymous_constructs' => 'same',
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => [
'space' => 'single',
Expand Down
4 changes: 4 additions & 0 deletions test/Unit/RuleSet/Php71Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ final class Php71Test extends ExplicitRuleSetTestCase
],
'braces' => [
'allow_single_line_anonymous_class_with_empty_body' => true,
'allow_single_line_closure' => false,
'position_after_anonymous_constructs' => 'same',
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => [
'space' => 'single',
Expand Down
4 changes: 4 additions & 0 deletions test/Unit/RuleSet/Php73Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ final class Php73Test extends ExplicitRuleSetTestCase
],
'braces' => [
'allow_single_line_anonymous_class_with_empty_body' => true,
'allow_single_line_closure' => false,
'position_after_anonymous_constructs' => 'same',
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => [
'space' => 'single',
Expand Down
4 changes: 4 additions & 0 deletions test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ final class Php74Test extends ExplicitRuleSetTestCase
],
'braces' => [
'allow_single_line_anonymous_class_with_empty_body' => true,
'allow_single_line_closure' => false,
'position_after_anonymous_constructs' => 'same',
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
],
'cast_spaces' => [
'space' => 'single',
Expand Down

0 comments on commit 1ea5cf9

Please sign in to comment.