Skip to content

Releases: bgaze/laravel-php-cs-fixer

Stick to PHP-CS-Fixer conventions for naming config files

10 Mar 09:49
Compare
Choose a tag to compare
  • 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

23 Feb 11:55
Compare
Choose a tag to compare

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

23 Feb 11:29
856af58
Compare
Choose a tag to compare
  • 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 and php_cs_fixer helper.

Fixed config file publishment

17 Mar 15:06
a0526ad
Compare
Choose a tag to compare
Merge pull request #3 from fridzema/patch-2

Update Command