Skip to content

Commit

Permalink
Merge pull request #12 from nextcloud/nickvergessen-patch-1
Browse files Browse the repository at this point in the history
fix(rules): Replace deprecated braces rules
  • Loading branch information
artonge committed Apr 13, 2023
2 parents 88d3ffd + facd4c6 commit 20efa30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"require": {
"php": "^7.3|^8.0",
"friendsofphp/php-cs-fixer": "^3.2"
"friendsofphp/php-cs-fixer": "^3.9"
},
"license": "MIT",
"authors": [
Expand Down
7 changes: 3 additions & 4 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ public function getRules() : array {
],
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'braces' => [
'position_after_anonymous_constructs' => 'same',
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'same',
'curly_braces_position' => [
'classes_opening_brace' => 'same_line',
'functions_opening_brace' => 'same_line',
],
'elseif' => true,
'encoding' => true,
Expand Down

0 comments on commit 20efa30

Please sign in to comment.