Code Duplication    Length = 4-4 lines in 2 locations

src/AppBundle/Controller/AdminScoreController.php 1 location

@@ 206-209 (lines=4) @@
203
            }
204
        }
205
206
        if ($id == 0) {
207
            $this->addFlash("notice", [ "no-result", $username ]);
208
            return $this->redirectToRoute("AdminScore", [ "project"=>$project ]);
209
        }
210
211
        return $this->render('adminscore/result.html.twig', [
212
            'xtPage' => 'adminscore',

src/AppBundle/Controller/PagesController.php 1 location

@@ 209-212 (lines=4) @@
206
            }
207
        }
208
209
        if ($total < 1) {
210
            $this->addFlash('notice', [ 'no-result', $username ]);
211
            return $this->redirectToRoute('PagesProject', [ 'project' => $project ]);
212
        }
213
214
        ksort($pagesByNamespaceByDate);
215
        ksort($countsByNamespace);