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   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 29
ccs 0
cts 26
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
B create() 0 26 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
    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