Code Duplication    Length = 4-4 lines in 2 locations

src/AppBundle/Controller/AdminScoreController.php 1 location

@@ 182-185 (lines=4) @@
179
            }
180
        }
181
182
        if ($id == 0) {
183
            $this->addFlash("notice", [ "no-result", $username ]);
184
            return $this->redirectToRoute("AdminScore", [ "project"=>$project ]);
185
        }
186
187
        return $this->render('adminscore/result.html.twig', [
188
            'xtPage' => 'adminscore',

src/AppBundle/Controller/PagesController.php 1 location

@@ 269-272 (lines=4) @@
266
            }
267
        }
268
269
        if ($total < 1) {
270
            $this->addFlash("notice", [ "no-result", $username ]);
271
            return $this->redirectToRoute("PagesProject", [ "project"=>$project ]);
272
        }
273
274
        ksort($pagesByNamespaceByDate);
275
        ksort($countsByNamespace);