Skip to content

Commit

Permalink
clean rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Rom1-B committed Sep 6, 2024
1 parent ebce427 commit 25306d8
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,15 @@
use PhpCsFixer\Config;
use PhpCsFixer\Finder;

$finder = Finder::create()
$finder = Finder::create()
->in(__DIR__)
->name('*.php');

$config = new Config();

$rules = [
'@PER-CS2.0' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['default' => 'align_single_space_minimal'],
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'blank_line_before_statement' => ['statements' => ['return']],
'braces' => ['allow_single_line_closure' => true],
'cast_spaces' => ['space' => 'single'],
'class_attributes_separation' => ['elements' => ['method' => 'one']],
'concat_space' => ['spacing' => 'one'],
'declare_equal_normalize' => ['space' => 'single'],
'function_typehint_space' => true,
'lowercase_cast' => true,
'no_whitespace_in_blank_line' => true,
'single_blank_line_at_eof' => true,
'single_quote' => true,
'space_after_semicolon' => true,
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'whitespace_after_comma_in_array' => true,
'@PER-CS2.0' => true,
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
];

return $config
Expand Down

0 comments on commit 25306d8

Please sign in to comment.