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 ( 41f90b...45dfdd )
by Cees-Jan
10s
created

PhpCsFixerConfig::create()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 26
Code Lines 22

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 26
ccs 0
cts 26
cp 0
rs 8.8571
cc 1
eloc 22
nc 1
nop 0
crap 2
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Tools\TestUtilities;
4
5
use PhpCsFixer\Config;
6
7
final class PhpCsFixerConfig
8
{
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