|
9 | 9 | 'pre-commit' => PreCommitHookCommand::class, |
10 | 10 | ], |
11 | 11 |
|
12 | | - 'recommended_preset' => [ |
13 | | - 'preset' => 'psr12', |
14 | | - 'rules' => [ |
15 | | - 'array_syntax' => ['syntax' => 'short'], |
16 | | - 'binary_operator_spaces' => [ |
17 | | - 'default' => 'single_space', |
18 | | - 'operators' => [ |
19 | | - '=' => null, |
| 12 | + 'pint' => [ |
| 13 | + 'presets' => [ |
| 14 | + 'laravel' => 'Laravel (Default)', |
| 15 | + 'symfony' => 'Symfony', |
| 16 | + 'psr12' => 'PSR-12', |
| 17 | + 'recommended' => 'Recommended (PSR-12 Extended)', |
| 18 | + ], |
| 19 | + |
| 20 | + 'recommended_preset' => [ |
| 21 | + 'preset' => 'psr12', |
| 22 | + 'rules' => [ |
| 23 | + 'array_syntax' => ['syntax' => 'short'], |
| 24 | + 'binary_operator_spaces' => [ |
| 25 | + 'default' => 'single_space', |
| 26 | + 'operators' => [ |
| 27 | + '=' => null, |
| 28 | + ], |
20 | 29 | ], |
| 30 | + 'blank_line_before_statement' => [ |
| 31 | + 'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'], |
| 32 | + ], |
| 33 | + 'concat_space' => [ |
| 34 | + 'spacing' => 'one', |
| 35 | + ], |
| 36 | + 'function_typehint_space' => true, |
| 37 | + 'native_function_casing' => true, |
| 38 | + 'no_extra_blank_lines' => true, |
| 39 | + 'no_leading_namespace_whitespace' => true, |
| 40 | + 'no_spaces_around_offset' => true, |
| 41 | + 'no_unused_imports' => true, |
| 42 | + 'not_operator_with_successor_space' => true, |
| 43 | + 'object_operator_without_whitespace' => true, |
| 44 | + 'single_quote' => true, |
| 45 | + 'trailing_comma_in_multiline' => true, |
| 46 | + 'unary_operator_spaces' => true, |
| 47 | + 'whitespace_after_comma_in_array' => true, |
21 | 48 | ], |
22 | | - 'blank_line_before_statement' => [ |
23 | | - 'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'], |
24 | | - ], |
25 | | - 'concat_space' => [ |
26 | | - 'spacing' => 'one', |
27 | | - ], |
28 | | - 'function_typehint_space' => true, |
29 | | - 'native_function_casing' => true, |
30 | | - 'no_extra_blank_lines' => true, |
31 | | - 'no_leading_namespace_whitespace' => true, |
32 | | - 'no_spaces_around_offset' => true, |
33 | | - 'no_unused_imports' => true, |
34 | | - 'not_operator_with_successor_space' => true, |
35 | | - 'object_operator_without_whitespace' => true, |
36 | | - 'single_quote' => true, |
37 | | - 'trailing_comma_in_multiline' => true, |
38 | | - 'unary_operator_spaces' => true, |
39 | | - 'whitespace_after_comma_in_array' => true, |
40 | 49 | ], |
41 | 50 | ], |
42 | 51 | ]; |
0 commit comments