Code Duplication    Length = 5-5 lines in 3 locations

src/Eccube/Controller/Admin/Product/CategoryController.php 3 locations

@@ 147-151 (lines=5) @@
144
145
                $cacheUtil->clearDoctrineCache();
146
147
                if ($Parent) {
148
                    return $this->redirectToRoute('admin_product_category_show', ['parent_id' => $Parent->getId()]);
149
                } else {
150
                    return $this->redirectToRoute('admin_product_category');
151
                }
152
            }
153
154
            foreach ($forms as $editForm) {
@@ 178-182 (lines=5) @@
175
176
                    $cacheUtil->clearDoctrineCache();
177
178
                    if ($Parent) {
179
                        return $this->redirectToRoute('admin_product_category_show', ['parent_id' => $Parent->getId()]);
180
                    } else {
181
                        return $this->redirectToRoute('admin_product_category');
182
                    }
183
                }
184
            }
185
        }
@@ 251-255 (lines=5) @@
248
            $this->addError($message, 'admin');
249
        }
250
251
        if ($Parent) {
252
            return $this->redirectToRoute('admin_product_category_show', ['parent_id' => $Parent->getId()]);
253
        } else {
254
            return $this->redirectToRoute('admin_product_category');
255
        }
256
    }
257
258
    /**