Skip to content

Commit

Permalink
Merge pull request #336 from mimmi20/updates
Browse files Browse the repository at this point in the history
update coding standard
  • Loading branch information
mimmi20 authored Jun 19, 2023
2 parents ba4bc01 + 66193a1 commit a746f79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"require": {
"php": "^8.1.0",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"friendsofphp/php-cs-fixer": "^v3.17.0",
"friendsofphp/php-cs-fixer": "^v3.18.0",
"sirbrillig/phpcs-variable-analysis": "^2.11.16",
"slevomat/coding-standard": "^8.12.1",
"squizlabs/php_codesniffer": "^3.7.2"
Expand Down
6 changes: 5 additions & 1 deletion src/php-cs-fixer.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
'default' => 'single_space',
'operators' => ['=' => null, '-=' => null, '.=' => null, '+=' => null],
],
'blank_line_after_namespace' => true,
'blank_lines_before_namespace' => [
'min_line_breaks' => 2,
'max_line_breaks' => 2,
],
'blank_line_before_statement' => [
'statements' => [
'break',
Expand Down Expand Up @@ -246,7 +251,6 @@
'semicolon_after_instruction' => true,
'set_type_to_cast' => true,
'simple_to_complex_string_variable' => true,
'single_blank_line_before_namespace' => true,
'single_class_element_per_statement' => ['elements' => ['const', 'property']],
'single_import_per_statement' => ['group_to_single_imports' => true],
'single_line_comment_spacing' => true,
Expand Down

0 comments on commit a746f79

Please sign in to comment.