Code Duplication    Length = 12-12 lines in 2 locations

src/Eccube/Controller/Admin/Store/TemplateController.php 2 locations

@@ 280-291 (lines=12) @@
277
                }
278
279
                // appディレクトリの存在チェック.
280
                if (!file_exists($appDir)) {
281
                    $form['file']->addError(new FormError('appディレクトリが見つかりません。ファイルの形式を確認してください。'));
282
283
                    if (file_exists($tmpDir)) {
284
                        $fs = new Filesystem();
285
                        $fs->remove($tmpDir);
286
                    }
287
288
                    return $app->render('Store/template_add.twig', array(
289
                        'form' => $form->createView(),
290
                    ));
291
                }
292
293
                // htmlディレクトリの存在チェック.
294
                if (!file_exists($htmlDir)) {
@@ 294-305 (lines=12) @@
291
                }
292
293
                // htmlディレクトリの存在チェック.
294
                if (!file_exists($htmlDir)) {
295
                    $form['file']->addError(new FormError('htmlディレクトリが見つかりません。ファイルの形式を確認してください。'));
296
297
                    if (file_exists($tmpDir)) {
298
                        $fs = new Filesystem();
299
                        $fs->remove($tmpDir);
300
                    }
301
302
                    return $app->render('Store/template_add.twig', array(
303
                        'form' => $form->createView(),
304
                    ));
305
                }
306
307
                // 一時ディレクトリから該当テンプレートのディレクトリへコピーする.
308
                $fs = new Filesystem();