Skip to content

Commit

Permalink
Update .php_cs.dist.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristories committed Sep 23, 2022
1 parent 6dfd1d3 commit a9bd501
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .php_cs.dist.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?php

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

return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'no_unused_imports' => true,
'not_operator_with_successor_space' => false,
'not_operator_with_successor_space' => true,
'trailing_comma_in_multiline' => true,
'phpdoc_scalar' => true,
'unary_operator_spaces' => true,
Expand All @@ -25,6 +25,11 @@
],
'phpdoc_single_line_var_spacing' => true,
'phpdoc_var_without_name' => true,
'class_attributes_separation' => [
'elements' => [
'method' => 'one',
],
],
'method_argument_space' => [
'on_multiline' => 'ensure_fully_multiline',
'keep_multiple_spaces_after_comma' => true,
Expand Down

0 comments on commit a9bd501

Please sign in to comment.