We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43fbbb7 commit bdf066bCopy full SHA for bdf066b
src/PhpCsFixerConfig.php
@@ -9,10 +9,11 @@ final class PhpCsFixerConfig
9
/**
10
* @return Config
11
*/
12
- public static function create(): Config
+ public static function create(array $extraRules = []): Config
13
{
14
return Config::create()
15
- ->setRules([
+ ->setRules(
16
+ [
17
'@PSR2' => true,
18
'array_syntax' => [
19
'syntax' => 'short',
@@ -41,7 +42,7 @@ public static function create(): Config
41
42
'single_quote' => true,
43
'strict_param' => true,
44
'trailing_comma_in_multiline_array' => true,
- ])
45
- ;
+ ] + $extraRules
46
+ );
47
}
48
0 commit comments