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

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