Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added configuration for PHP Coding Standards Fixer, including its fix…
…es, resolving #47
- Loading branch information
Showing
17 changed files
with
114 additions
and
90 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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
/** | ||
* Configuration file for PHP Coding Standards Fixer (php-cs-fixer). | ||
* | ||
* On GitHub: https://github.com/FriendsOfPhp/php-cs-fixer | ||
* More information: http://cs.sensiolabs.org/ | ||
*/ | ||
|
||
$finder = Symfony\CS\Finder\DefaultFinder::create() | ||
->in('lib') | ||
; | ||
|
||
return Symfony\CS\Config\Config::create() | ||
->level(Symfony\CS\FixerInterface::PSR2_LEVEL) | ||
->fixers(['concat_with_spaces', 'long_array_syntax', 'standardize_not_equal', | ||
'operators_spaces', 'duplicate_semicolon', | ||
'remove_leading_slash_use', 'align_equals', | ||
'single_array_no_trailing_comma', 'phpdoc_indent', 'phpdoc_scalar', | ||
'phpdoc_to_comment', 'phpdoc_trim', | ||
'phpdoc_types', 'print_to_echo', 'self_accessor', 'single_quote', | ||
'spaces_cast', 'ternary_spaces', 'phpdoc_order']) | ||
->finder($finder) | ||
; |
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
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
Oops, something went wrong.