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.

RectorConfig   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 17
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 15 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace WyriHaximus\TestUtilities;
6
7
use Rector\Config;
8
use Rector\Configuration\RectorConfigBuilder;
9
10
final class RectorConfig
11
{
12
    public static function configure(string $packageRootPath): RectorConfigBuilder
13
    {
14
        return Config\RectorConfig::configure()
15
            ->withPaths([
16
                $packageRootPath . '/etc',
17
                $packageRootPath . '/src',
18
                $packageRootPath . '/tests',
19
            ])
20
            ->withAttributesSets(all: true)
21
            ->withComposerBased(twig: true, doctrine: true, phpunit: true, symfony: true)
22
            ->withPreparedSets(
23
                codeQuality: true,
24
                typeDeclarations: true,
25
            )
26
            ->withPhpSets();
27
    }
28
}
29