Skip to content

Commit

Permalink
Phpcs (#104)
Browse files Browse the repository at this point in the history
change code style to follow psr2
  • Loading branch information
jochenmanz authored Mar 29, 2017
1 parent e926d06 commit fdacfea
Show file tree
Hide file tree
Showing 1,118 changed files with 35,161 additions and 37,991 deletions.
25 changes: 25 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

$finder = PhpCsFixer\Finder::create()->in(__DIR__);


return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
'@Symfony' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'phpdoc_summary' => false,
'phpdoc_to_comment' => false,
'phpdoc_align' => false,
'phpdoc_var_without_name' => false,
'blank_line_after_opening_tag' => true,
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short']
])
->setFinder($finder)
;

17 changes: 17 additions & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
preset: symfony

enabled:
- no_useless_else
- no_useless_return
- ordered_class_elements
- ordered_imports
- phpdoc_order
- short_array_syntax
- concat_with_spaces

disabled:
- concat_without_spaces
- phpdoc_summary
- phpdoc_to_comment
- phpdoc_align
- phpdoc_var_without_name
Loading

0 comments on commit fdacfea

Please sign in to comment.