| Conditions | 1 |
| Paths | 1 |
| Total Lines | 26 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 9 | public static function create(): Config |
||
| 10 | { |
||
| 11 | return Config::create() |
||
| 12 | ->setRules([ |
||
| 13 | '@PSR2' => true, |
||
| 14 | 'ordered_imports' => true, |
||
| 15 | 'ordered_class_elements' => true, |
||
| 16 | 'single_blank_line_before_namespace' => true, |
||
| 17 | 'method_separation' => true, |
||
| 18 | 'declare_strict_types' => true, |
||
| 19 | 'strict_param' => true, |
||
| 20 | 'single_class_element_per_statement' => true, |
||
| 21 | 'no_extra_consecutive_blank_lines' => true, |
||
| 22 | 'trailing_comma_in_multiline_array' => true, |
||
| 23 | 'single_quote' => true, |
||
| 24 | 'no_whitespace_in_blank_line' => true, |
||
| 25 | 'no_whitespace_before_comma_in_array' => true, |
||
| 26 | 'no_unused_imports' => true, |
||
| 27 | 'no_short_bool_cast' => true, |
||
| 28 | 'no_leading_import_slash' => true, |
||
| 29 | 'new_with_braces' => true, |
||
| 30 | 'blank_line_before_return' => true, |
||
| 31 | 'array_syntax' => ['syntax' => 'short'], |
||
| 32 | ]) |
||
| 33 | ; |
||
| 34 | } |
||
| 35 | } |
||
| 36 |