Skip to content

Commit

Permalink
Add codings standard fixing files
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot committed Jun 9, 2016
1 parent f7fb40e commit 54e85f2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Expand Up @@ -2,5 +2,7 @@

.gitattributes export-ignore
.gitignore export-ignore
.php_cs export-ignore
.styleci.yml export-ignore
.travis.yml export-ignore
phpunit.xml.dist export-ignore
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@ vendor
composer.phar
composer.lock
.idea
.php_cs.cache
15 changes: 15 additions & 0 deletions .php_cs
@@ -0,0 +1,15 @@
<?php

$finder = Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__);

$fixers = array(
'-psr0',
'long_array_syntax',
);

return Symfony\CS\Config\Config::create()
->finder($finder)
->fixers($fixers)
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->setUsingCache(true);
5 changes: 5 additions & 0 deletions .styleci.yml
@@ -0,0 +1,5 @@
preset: psr2

enabled:
- long_array_syntax
- method_separation

0 comments on commit 54e85f2

Please sign in to comment.