Skip to content

Commit

Permalink
add more files to php cs fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-sainthillier committed Sep 28, 2024
1 parent 43b0573 commit 79d2d0c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
25 changes: 17 additions & 8 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@

use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;

$finder = (new Finder())
->in([__DIR__ . '/src', __DIR__ . '/tests'])
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->append([
__FILE__,
__DIR__ . '/rector.php',
])
;

return (new Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setParallelConfig(ParallelConfigFactory::detect())
->setRiskyAllowed(false)
->setRules([
'@PSR2' => true,
Expand All @@ -20,20 +28,21 @@
'yoda_style' => false,
'ordered_class_elements' => false,
'ordered_imports' => false,
//'method_argument_space' => null,
//'no_whitespace_in_blank_line' => null,
//'no_extra_blank_lines' => null,
//'braces' => null,
// 'method_argument_space' => null,
// 'no_whitespace_in_blank_line' => null,
// 'no_extra_blank_lines' => null,
// 'braces' => null,
'blank_line_before_statement' => false,
'phpdoc_align' => ['align' => 'left'],
'phpdoc_var_without_name' => false,
'phpdoc_types_order' => false,
'phpdoc_order' => false,
'phpdoc_separation' => false,
//'no_superfluous_elseif' => null,
// 'no_superfluous_elseif' => null,
'class_definition' => false,
'ternary_to_null_coalescing' => true,
'php_unit_test_class_requires_covers' => false,
'php_unit_internal_class' => false,
])
->setFinder($finder);
->setFinder($finder)
;
4 changes: 2 additions & 2 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Rector\Config\RectorConfig;
use Rector\Symfony\Set\JMSSetList;
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictNativeCallRector;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictScalarReturnExprRector;

Expand All @@ -19,4 +18,5 @@
])
->withSets([
JMSSetList::ANNOTATIONS_TO_ATTRIBUTES,
]);
])
;

0 comments on commit 79d2d0c

Please sign in to comment.