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
                if ('\\' === DIRECTORY_SEPARATOR) {
73
                    $path = str_replace('\\', '/', $path);
74
                    $this->trait_proxies_directory = str_replace('\\', '/', $this->trait_proxies_directory);

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

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