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.

Code Duplication    Length = 22-22 lines in 2 locations

src/FileGenerators/AbstractEmptyExtendingClassGenerator.php 1 location

@@ 28-49 (lines=22) @@
25
    /**
26
     * @return string
27
     */
28
    public function getFilename(): string
29
    {
30
        $classChunks = explode('\\', $this->yaml['class']);
31
        $className = array_pop($classChunks);
32
        $className = 'Empty' . $className;
33
        $namespace = '';
34
        if (count($classChunks) > 0) {
35
            $namespace .= '\\' . implode('\\', $classChunks);
36
            $namespace = str_replace('\\\\', '\\', $namespace);
37
        }
38
39
        return $this->yaml['src']['path'] .
40
            DIRECTORY_SEPARATOR .
41
            static::NAMESPACE .
42
            DIRECTORY_SEPARATOR .
43
            str_replace(
44
                '\\',
45
                DIRECTORY_SEPARATOR,
46
                $namespace . '\\' . $className
47
            ) .
48
            '.php'
49
        ;
50
    }
51
52
    /**

src/FileGenerators/AbstractEmptyExtendingTestGenerator.php 1 location

@@ 29-50 (lines=22) @@
26
    /**
27
     * @return string
28
     */
29
    public function getFilename(): string
30
    {
31
        $classChunks = explode('\\', $this->yaml['class']);
32
        $className = array_pop($classChunks);
33
        $className = 'Empty' . $className;
34
        $namespace = '';
35
        if (count($classChunks) > 0) {
36
            $namespace .= '\\' . implode('\\', $classChunks);
37
            $namespace = str_replace('\\\\', '\\', $namespace);
38
        }
39
40
        return $this->yaml['tests']['path'] .
41
            DIRECTORY_SEPARATOR .
42
            static::NAMESPACE .
43
            DIRECTORY_SEPARATOR .
44
            str_replace(
45
                '\\',
46
                DIRECTORY_SEPARATOR,
47
                $namespace . '\\' . $className
48
            ) .
49
            'Test.php'
50
        ;
51
    }
52
53
    /**