Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 72-76 (lines=5) @@
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);
75
                    $sourceFile = str_replace('\\', '/', $sourceFile);
76
                }
77
                $proxyFile = str_replace($path, $this->trait_proxies_directory, $sourceFile);
78
                if (file_exists($proxyFile)) {
79
                    require_once $proxyFile;

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

@@ 93-97 (lines=5) @@
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);
96
                    $sourceFile = str_replace('\\', '/', $sourceFile);
97
                }
98
                $proxyFile = str_replace($path, $this->trait_proxies_directory, $sourceFile);
99
                if (file_exists($proxyFile)) {
100
                    $sourceFile = $proxyFile;