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 = 9-9 lines in 2 locations

src/ExcelWriter.php 1 location

@@ 603-611 (lines=9) @@
600
     *
601
     * @return mixed
602
     */
603
    public static function checkFilename($filename)
604
    {
605
        $invalidCharacter = array_merge(
606
            array_map('chr', range(0, 31)),
607
            ['<', '>', '?', '"', ':', '|', '\\', '/', '*', '&']
608
        );
609
610
        return str_replace($invalidCharacter, '', $filename);
611
    }
612
613
    /**
614
     * @param \ZipArchive $zip

src/Helpers/ExcelHelper.php 1 location

@@ 93-101 (lines=9) @@
90
     *
91
     * @return mixed
92
     */
93
    public static function checkFilename($filename)
94
    {
95
        $invalidCharacter = array_merge(
96
            array_map('chr', range(0, 31)),
97
            ['<', '>', '?', '"', ':', '|', '\\', '/', '*', '&']
98
        );
99
100
        return str_replace($invalidCharacter, '', $filename);
101
    }
102
}
103