Skip to content
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

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'],
    ],
    // ...
];
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.
a0526ad
Compare
Choose a tag to compare
Merge pull request #3 from fridzema/patch-2

Update Command