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 21
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 16
c 3
b 0
f 0
dl 0
loc 21
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 19 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
use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector;
10
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\ReplaceTestFunctionPrefixWithAttributeRector;
11
12
final class RectorConfig
13
{
14
    public static function configure(string $packageRootPath): RectorConfigBuilder
15
    {
16
        return Config\RectorConfig::configure()
17
            ->withPaths([
18
                $packageRootPath . '/etc',
19
                $packageRootPath . '/src',
20
                $packageRootPath . '/tests',
21
            ])
22
            ->withAttributesSets(all: true)
23
            ->withComposerBased(twig: true, doctrine: true, phpunit: true, symfony: true)
24
            ->withPreparedSets(
25
                codeQuality: true,
26
                typeDeclarations: true,
27
            )
28
            ->withPhpSets()
29
            ->withRules([
30
                ReplaceTestFunctionPrefixWithAttributeRector::class,
31
            ])->withSkip([
32
                RemoveExtraParametersRector::class,
33
            ]);
34
    }
35
}
36