-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from webhdx/EZEE-1446_phpcs
EZEE-1446: Fix .php_cs config in EZEE repositories
- Loading branch information
Showing
6 changed files
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
<?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'], | ||
'array_syntax' => false, | ||
'simplified_null_return' => false, | ||
'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, | ||
'phpdoc_annotation_without_dot' => false, | ||
'phpdoc_no_alias_tag' => false, | ||
'space_after_semicolon' => false, | ||
]) | ||
->finder( | ||
Symfony\CS\Finder\DefaultFinder::create() | ||
->setRiskyAllowed(true) | ||
->setFinder( | ||
PhpCsFixer\Finder::create() | ||
->in(__DIR__) | ||
->exclude([ | ||
'vendor', | ||
]) | ||
->files()->name('*.php') | ||
) | ||
; | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters