Skip to content

Commit

Permalink
Added config for php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
lolautruche authored and pspanja committed Jul 28, 2015
1 parent 33b1df9 commit c235109
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/vendor/
composer.lock
.php_cs.cache

28 changes: 28 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

return Symfony\CS\Config\Config::create()
->setUsingLinter(false)
->setUsingCache(true)
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
->fixers([
'concat_with_spaces',
'-concat_without_spaces',
'-empty_return',
'-phpdoc_params',
'-phpdoc_separation',
'-phpdoc_to_comment',
'-spaces_cast',
'-blankline_after_open_tag',
// psr0 has weird issues with our PSR-4 layout, so deactivating it.
'-psr0',
])
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->name('*.php')
->in(__DIR__)
->notPath('phpunit.xml')
->exclude([
'vendor',
])
)
;

0 comments on commit c235109

Please sign in to comment.