-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow older CS fixer version for PHP versions below 7.4.
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
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,30 @@ | ||
<?php | ||
|
||
// For more information visit the Github repository: https://github.com/FriendsOfPHP/PHP-CS-Fixer | ||
|
||
// How to set up PHP-CS-Fixer in PHPStorm: | ||
// https://hackernoon.com/how-to-configure-phpstorm-to-use-php-cs-fixer-1844991e521f | ||
|
||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
|
||
$fixers = array( | ||
'@PSR1' => true, | ||
'@PSR2' => true, | ||
'array_syntax' => array( | ||
'syntax' => 'long', | ||
), | ||
'blank_line_after_opening_tag' => true, | ||
'method_argument_space' => false, | ||
); | ||
|
||
return Config::create() | ||
->setRiskyAllowed(true) | ||
->setUsingCache(true) | ||
->setRules($fixers) | ||
->setFinder( | ||
Finder::create() | ||
->exclude('vendor') | ||
->exclude('vendors') | ||
->in(__DIR__) | ||
); |
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