Code Duplication    Length = 10-10 lines in 2 locations

src/Eccube/Repository/BlockRepository.php 1 location

@@ 189-198 (lines=10) @@
186
            $this->app['config']['block_realdir'],
187
            $this->app['config']['block_default_realdir'],
188
        );
189
        foreach ($readPaths as $readPath) {
190
            $filePath = $readPath . '/' . $fileName . '.twig';
191
            $fs = new Filesystem();
192
            if ($fs->exists($filePath)) {
193
                return array(
194
                    'file_name' => $fileName,
195
                    'tpl_data' => file_get_contents($filePath),
196
                );
197
            }
198
        }
199
    }
200
}
201

src/Eccube/Repository/PageLayoutRepository.php 1 location

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