Skip to content

Commit

Permalink
use php-cs-fixer ^3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dartcafe committed Oct 26, 2021
1 parent 68370dd commit 89c3aeb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"description": "Nextcloud coding standards for the php cs fixer",
"type": "library",
"require": {
"php": "^7.2|^8.0",
"friendsofphp/php-cs-fixer": "^2.17"
"php": "^7.4|^8.0",
"friendsofphp/php-cs-fixer": "^3.2"
},
"license": "MIT",
"authors": [
Expand Down
12 changes: 4 additions & 8 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@ public function __construct($name = 'default') {
$this->setIndent("\t");
}

public function getRules() {
public function getRules() : array {
return [
'@PSR1' => true,
'@PSR2' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'array_syntax' => [
'syntax' => 'short',
],
'binary_operator_spaces' => [
'default' => 'single_space',
],
Expand All @@ -39,11 +36,10 @@ public function getRules() {
],
'indentation_type' => true,
'line_ending' => true,
'list_syntax' => [
'syntax' => 'short',
],
'lowercase_keywords' => true,
'method_argument_space' => [],
'method_argument_space' => [
'on_multiline' => 'ignore',
],
'no_closing_tag' => true,
'no_spaces_after_function_name' => true,
'no_spaces_inside_parenthesis' => true,
Expand Down

0 comments on commit 89c3aeb

Please sign in to comment.