Skip to content

Commit d3e656c

Browse files
committed
[BUGFIX] Update php-cs-fixer configuration file
Related #717 Signed-off-by: Marcus Schwemer <marcus.schwemer@in2code.de>
1 parent 920a48e commit d3e656c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.project/tests/.php-cs-fixer.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@
5050
// - Remove unused use statements in the PHP source code
5151
// - Ensure Concatenation to have at least one whitespace around
5252
// - 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([
5459
'@PSR2' => true,
5560
'@DoctrineAnnotation' => true,
5661
'no_leading_import_slash' => true,
@@ -62,14 +67,14 @@
6267
'ordered_imports' => true,
6368
'single_quote' => true,
6469
'no_empty_statement' => true,
65-
'no_extra_consecutive_blank_lines' => true,
70+
'no_extra_blank_lines' => true,
6671
'phpdoc_no_package' => true,
6772
'phpdoc_scalar' => true,
6873
'no_blank_lines_after_phpdoc' => true,
6974
'array_syntax' => ['syntax' => 'short'],
7075
'whitespace_after_comma_in_array' => true,
7176
'function_typehint_space' => true,
72-
'hash_to_slash_comment' => true,
77+
'single_line_comment_style' => true,
7378
'no_alias_functions' => true,
7479
'lowercase_cast' => true,
7580
'no_leading_namespace_whitespace' => true,

0 commit comments

Comments
 (0)