Releases: bgaze/laravel-php-cs-fixer
Releases · bgaze/laravel-php-cs-fixer
Stick to PHP-CS-Fixer conventions for naming config files
- Renamed default config file to
.php_cs.dist. - Allow to override
.php_cs.distwith a.php_csfor local dev. - Keep compatibility with
.php-csfile for old installs.
Default config file will now be search in this order:
.php_cs > .php_cs.dist > .php-cs > package default file
Prevent extra blank lines into fixed files
Added rules to default rule set to prevent extra blank lines into fixed files:
$rules = [
// ...
'no_blank_lines_after_phpdoc' => true,
'no_extra_blank_lines' => [
'tokens' => ['curly_brace_block', 'extra', 'parenthesis_brace_block', 'square_brace_block', 'throw', 'use'],
],
// ...
];Improve default PHP-CS-Fixer config
- Updated default PHP-CS-Fixer config to remove dependency to
@Symfonyruleset and be more compliant with Laravel coding style. - Refactored
php-cs-fixer:fixcommand andphp_cs_fixerhelper.
Fixed config file publishment
Merge pull request #3 from fridzema/patch-2 Update Command