|
50 | 50 | // - Remove unused use statements in the PHP source code |
51 | 51 | // - Ensure Concatenation to have at least one whitespace around |
52 | 52 | // - Remove trailing whitespace at the end of blank lines. |
53 | | -return PhpCsFixer\Config::create()->setRiskyAllowed(true)->setRules([ |
| 53 | + |
| 54 | +$config = new PhpCsFixer\Config(); |
| 55 | + |
| 56 | +return $config |
| 57 | + ->setRiskyAllowed(true) |
| 58 | + ->setRules([ |
54 | 59 | '@PSR2' => true, |
55 | 60 | '@DoctrineAnnotation' => true, |
56 | 61 | 'no_leading_import_slash' => true, |
|
62 | 67 | 'ordered_imports' => true, |
63 | 68 | 'single_quote' => true, |
64 | 69 | 'no_empty_statement' => true, |
65 | | - 'no_extra_consecutive_blank_lines' => true, |
| 70 | + 'no_extra_blank_lines' => true, |
66 | 71 | 'phpdoc_no_package' => true, |
67 | 72 | 'phpdoc_scalar' => true, |
68 | 73 | 'no_blank_lines_after_phpdoc' => true, |
69 | 74 | 'array_syntax' => ['syntax' => 'short'], |
70 | 75 | 'whitespace_after_comma_in_array' => true, |
71 | 76 | 'function_typehint_space' => true, |
72 | | - 'hash_to_slash_comment' => true, |
| 77 | + 'single_line_comment_style' => true, |
73 | 78 | 'no_alias_functions' => true, |
74 | 79 | 'lowercase_cast' => true, |
75 | 80 | 'no_leading_namespace_whitespace' => true, |
|
0 commit comments