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.dist
with a.php_cs
for local dev. - Keep compatibility with
.php-cs
file 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
@Symfony
ruleset and be more compliant with Laravel coding style. - Refactored
php-cs-fixer:fix
command andphp_cs_fixer
helper.
Fixed config file publishment
Merge pull request #3 from fridzema/patch-2 Update Command