GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( ab3cd1...f8a5b6 )
by Cees-Jan
04:24
created

PhpCsFixerConfig::create()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 37
Code Lines 32

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 4
Bugs 0 Features 0
Metric Value
c 4
b 0
f 0
dl 0
loc 37
ccs 4
cts 4
cp 1
rs 8.8571
cc 1
eloc 32
nc 1
nop 1
crap 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Tools\TestUtilities;
4
5
use PhpCsFixer\Config;
6
7
final class PhpCsFixerConfig
8
{
9
    /**
10
     * @return Config
11
     */
12 1
    public static function create(array $extraRules = []): Config
13
    {
14 1
        return Config::create()
15 1
            ->setRules(
16
            [
17
                '@PSR2' => true,
18
                'array_syntax' => [
19
                    'syntax' => 'short',
20
                ],
21
                'indentation_type' => true,
22
                'blank_line_before_return' => true,
23
                'declare_strict_types' => true,
24
                'method_separation' => true,
25
                'new_with_braces' => true,
26
                'no_extra_consecutive_blank_lines' => true,
27
                'no_leading_import_slash' => true,
28
                'no_short_bool_cast' => true,
29
                'no_unused_imports' => true,
30
                'no_whitespace_before_comma_in_array' => true,
31
                'no_whitespace_in_blank_line' => true,
32
                'ordered_class_elements' => true,
33
                'ordered_imports' => true,
34
                'phpdoc_add_missing_param_annotation' => true,
35
                'phpdoc_align' => true,
36
                'phpdoc_no_empty_return' => true,
37
                'phpdoc_order' => true,
38
                'phpdoc_scalar' => true,
39
                'phpdoc_summary' => true,
40
                'return_type_declaration' => true,
41
                'single_blank_line_before_namespace' => true,
42
                'single_class_element_per_statement' => true,
43
                'single_quote' => true,
44
                'strict_param' => true,
45
                'trailing_comma_in_multiline_array' => true,
46 1
            ] + $extraRules
47
        );
48
    }
49
}
50