Skip to content

Commit

Permalink
Update .php_cs.dist.php
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and brendt committed Dec 9, 2021
1 parent 2e318bf commit 712e92e
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .php_cs.dist.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
<?php

use PhpCsFixer\Config;
use PhpCsFixer\Finder;

$finder = Finder::create()
$finder = Symfony\Component\Finder\Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
;
->ignoreVCS(true);

return (new Config())
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
Expand All @@ -29,11 +26,6 @@
],
'phpdoc_single_line_var_spacing' => true,
'phpdoc_var_without_name' => true,
'class_attributes_separation' => [
'elements' => [
'method',
],
],
'method_argument_space' => [
'on_multiline' => 'ensure_fully_multiline',
'keep_multiple_spaces_after_comma' => true,
Expand Down

0 comments on commit 712e92e

Please sign in to comment.