Skip to content

Commit

Permalink
Update .php_cs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilos committed Jun 6, 2016
1 parent 1c32fd5 commit 8df6ed6
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<?php

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

$header = <<<EOT
This file is part of the tmilos-value package.
Expand All @@ -15,9 +11,18 @@ EOT;

Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);

return Symfony\CS\Config\Config::create()
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'header_comment' => true,
'simplified_null_return' => false,
'phpdoc_no_empty_return' => false,
'phpdoc_to_comment' => false,
'print_to_echo' => false,
])
->setUsingCache(false)
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
->fixers(array('-empty_return', '-phpdoc_no_empty_return', 'header_comment'))
->finder($finder)
->finder(
PhpCsFixer\Finder::create()
->in('src')
)
;

0 comments on commit 8df6ed6

Please sign in to comment.