Code Duplication    Length = 8-8 lines in 2 locations

code/Support/SuperSakeChecker.php 2 locations

@@ 34-41 (lines=8) @@
31
     * @param string $file
32
     * @return bool|string
33
     */
34
    protected function checkHtAccessProtection($file)
35
    {
36
        if(!is_file($file) || strpos(file_get_contents($file), '<Files supersake>') !== false) {
37
            return 'supersake is not protected in .htaccess';
38
        }
39
40
        return false;
41
    }
42
43
    /**
44
     * @param string $file
@@ 47-54 (lines=8) @@
44
     * @param string $file
45
     * @return bool|string
46
     */
47
    protected function checkWebConfigProtection($file)
48
    {
49
        if(!is_file($file) || strpos(file_get_contents($file), '<add fileExtension="supersake" allowed="false"/>') !== false) {
50
            return 'supersake is not protected in web.config';
51
        }
52
53
        return false;
54
    }
55
}
56