Code Duplication    Length = 10-10 lines in 2 locations

src/Eccube/Repository/BlockRepository.php 1 location

@@ 199-208 (lines=10) @@
196
            $this->appConfig['block_realdir'],
197
            $this->appConfig['block_default_realdir'],
198
        );
199
        foreach ($readPaths as $readPath) {
200
            $filePath = $readPath . '/' . $fileName . '.twig';
201
            $fs = new Filesystem();
202
            if ($fs->exists($filePath)) {
203
                return array(
204
                    'file_name' => $fileName,
205
                    'tpl_data' => file_get_contents($filePath),
206
                );
207
            }
208
        }
209
    }
210
}
211

src/Eccube/Repository/PageRepository.php 1 location

@@ 264-273 (lines=10) @@
261
            );
262
        }
263
264
        foreach ($readPaths as $readPath) {
265
            $filePath = $readPath . '/' . $fileName . '.twig';
266
            $fs = new Filesystem();
267
            if ($fs->exists($filePath)) {
268
                return array(
269
                    'file_name' => $fileName,
270
                    'tpl_data' => file_get_contents($filePath),
271
                );
272
            }
273
        }
274
    }
275
}
276