Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 306-312 (lines=7) @@
303
304
//        $cacheUtil->clearCache();
305
306
        if ($request->isXmlHttpRequest()) {
307
            return $this->json(['success' => true, 'log' => $log]);
308
        } else {
309
            $this->addSuccess(trans('「%plugin_name%」を有効にしました。', ['%plugin_name%' => $Plugin->getName()]), 'admin');
310
311
            return $this->redirectToRoute('admin_store_plugin');
312
        }
313
    }
314
315
    /**
@@ 369-375 (lines=7) @@
366
        $url = $this->generateUrl('admin_store_plugin');
367
//        $cacheUtil->clearCache();
368
369
        if ($request->isXmlHttpRequest()) {
370
            return $this->json(['success' => true, 'log' => $log]);
371
        } else {
372
            $this->addSuccess('admin.plugin.disable.complete', 'admin');
373
374
            return $this->redirect($url);
375
        }
376
    }
377
378
    /**