Skip to content

Commit

Permalink
add php-cs-fixer rules
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Jul 28, 2017
1 parent 09e7d12 commit c36da2c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

$finder = PhpCsFixer\Finder::create()
->exclude('3rdparty')
->exclude('composer')
->exclude('3rdparty')
->exclude('build')
->in(__DIR__)
;

return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
'binary_operator_spaces' => ['align_double_arrow' => false, 'align_equals' => false],
])
->setIndent("\t")
->setFinder($finder)
;

0 comments on commit c36da2c

Please sign in to comment.