Skip to content
Permalink
Browse files

Updated PHP CS fixer (#23)

  • Loading branch information...
vidarl authored and SylvainGuittard committed Jul 19, 2017
1 parent c967a14 commit 1f1446f7b5d1862629326fad3b727108b2af66a1
Showing with 15 additions and 18 deletions.
  1. +15 −18 .php_cs
33 .php_cs
@@ -1,26 +1,23 @@
<?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',
'-single_blank_line_before_namespace',
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'concat_space' => ['spacing' => 'one'],
'phpdoc_align' => false,
'phpdoc_separation' => false,
'phpdoc_to_comment' => false,
'cast_spaces' => false,
'blank_line_after_opening_tag' => false,
'single_blank_line_before_namespace' => false,
])
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude([
'vendor',
'Resources'
'Resources',
])
->files()->name('*.php')
)

0 comments on commit 1f1446f

Please sign in to comment.
You can’t perform that action at this time.