Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php 1 location

@@ 64-71 (lines=8) @@
61
                    $sourceFile = realpath($sourceFile);
62
                }
63
64
                foreach ($this->excludePaths as $excludePath) {
65
                    $exclude = str_replace('\\', '/', realpath($excludePath));
66
                    $current = str_replace('\\', '/', $sourceFile);
67
68
                    if (strpos($current, $exclude) !== false) {
69
                        continue 2;
70
                    }
71
                }
72
73
                $proxyFile = str_replace($path, $this->trait_proxies_directory, $sourceFile);
74
                if (file_exists($proxyFile)) {

src/Eccube/Doctrine/ORM/Mapping/Driver/ReloadSafeAnnotationDriver.php 1 location

@@ 83-90 (lines=8) @@
80
                    $sourceFile = realpath($sourceFile);
81
                }
82
83
                foreach ($this->excludePaths as $excludePath) {
84
                    $exclude = str_replace('\\', '/', realpath($excludePath));
85
                    $current = str_replace('\\', '/', $sourceFile);
86
87
                    if (strpos($current, $exclude) !== false) {
88
                        continue 2;
89
                    }
90
                }
91
92
                $proxyFile = str_replace($path, $this->trait_proxies_directory, $sourceFile);
93
                if (file_exists($proxyFile)) {