Skip to content

Commit 976e466

Browse files
committed
Use PER3 (PHP-CS-Fixer)
1 parent 5257fef commit 976e466

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.php-cs-fixer-rules.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88
* $config->setRules($rules);
99
*/
1010
return [
11-
// Basic PER Coding Style 2.0 ruleset plus our overrides for it, see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/ruleSets/PER-CS2.0.rst
12-
'@PER-CS2.0' => true, // https://www.php-fig.org/per/coding-style/}
11+
// Basic PER Coding Style 3.0 ruleset plus our overrides for it,
12+
// see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/ruleSets/PER-CS2.0.rst
13+
// and https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/ruleSets/PER-CS3.0.rst
14+
'@PER-CS3.0' => true, // https://www.php-fig.org/per/coding-style/}
1315
'new_with_parentheses' => ['anonymous_class' => true], // It will be changed in PHP-CS-Fixer v4.0 (but we want to enforce it), see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/8148
1416
// overrides for PER-CS2.0
1517
'concat_space' => ['spacing' => 'none'], // make strings shorter "'hello' . $name . '!'" => "'hello'.$name.'!'"
1618
'blank_line_after_opening_tag' => false, // it makes "<?php declare(strict_types=1);" multiline (and more verbose)
1719

18-
// Additional rules on the top of PER-CS2
20+
// Additional rules on the top of PER-CS2/PER-CS3
1921
// Please keep these rules alphabetically
2022
'align_multiline_comment' => ['comment_type' => 'phpdocs_only'],
2123
'array_indentation' => true,

0 commit comments

Comments
 (0)