Skip to content

Commit

Permalink
Update php-cs-fixer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 30, 2018
1 parent c8c9008 commit d38dd41
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,31 @@ return PhpCsFixer\Config::create()
[
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'align_double_arrow' => true,
'align_equals' => true
'operators' => [
'=' => 'align',
'=>' => 'align',
],
],
'blank_line_after_namespace' => true,
'blank_line_before_statement' => [
'statements' => [
'break',
'continue',
'declare',
'do',
'for',
'foreach',
'if',
'include',
'include_once',
'require',
'require_once',
'return',
'switch',
'throw',
'try',
'while',
'yield',
],
],
'braces' => true,
Expand Down Expand Up @@ -57,7 +71,7 @@ return PhpCsFixer\Config::create()
'no_empty_comment' => true,
'no_empty_phpdoc' => true,
'no_empty_statement' => true,
'no_extra_consecutive_blank_lines' => true,
'no_extra_blank_lines' => true,
'no_homoglyph_names' => true,
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
Expand Down Expand Up @@ -90,16 +104,22 @@ return PhpCsFixer\Config::create()
'constant_public',
'constant_protected',
'constant_private',
'property_public_static',
'property_protected_static',
'property_private_static',
'property_public',
'property_protected',
'property_private',
'method_public_static',
'construct',
'destruct',
'magic',
'phpunit',
'method_public',
'method_protected',
'method_private',
'method_protected_static',
'method_private_static',
],
],
'ordered_imports' => true,
Expand Down Expand Up @@ -144,5 +164,5 @@ return PhpCsFixer\Config::create()
->files()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->name('*.php')
->notName('*.phpt')
);

0 comments on commit d38dd41

Please sign in to comment.