Passed
Push — master ( b24d1f...919982 )
by Anthony
03:12
created
Controller/PageController.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -8,28 +8,28 @@
 block discarded – undo
8 8
 
9 9
 class PageController extends AbstractController
10 10
 {
11
-    /**
12
-     * @Route("/contents", name="ribsadmin_contents")
13
-     * @return Response
14
-     */
15
-    public function index(): Response
16
-    {
17
-        $navigation = $this->getDoctrine()->getManager()->getRepository("RibsAdminBundle:Navigation")->findAllNavigationPage();
11
+				/**
12
+				 * @Route("/contents", name="ribsadmin_contents")
13
+				 * @return Response
14
+				 */
15
+				public function index(): Response
16
+				{
17
+								$navigation = $this->getDoctrine()->getManager()->getRepository("RibsAdminBundle:Navigation")->findAllNavigationPage();
18 18
 
19
-        return $this->render('@RibsAdmin/page/index.html.twig', ["navigation" => $navigation]);
20
-    }
19
+								return $this->render('@RibsAdmin/page/index.html.twig', ["navigation" => $navigation]);
20
+				}
21 21
 
22
-    /**
23
-     * @Route("/contents/edit-page/{page_id}", name="ribsadmin_contents_edit_page")
24
-     * @param int $page_id
25
-     * @return Response
26
-     */
27
-    public function editPage(int $page_id): Response
28
-    {
29
-        $em = $this->getDoctrine()->getManager();
30
-        $navigation = $em->getRepository("RibsAdminBundle:Navigation")->findAllNavigationPage();
31
-        $page = $em->getRepository("RibsAdminBundle:Page")->find($page_id);
22
+				/**
23
+				 * @Route("/contents/edit-page/{page_id}", name="ribsadmin_contents_edit_page")
24
+				 * @param int $page_id
25
+				 * @return Response
26
+				 */
27
+				public function editPage(int $page_id): Response
28
+				{
29
+								$em = $this->getDoctrine()->getManager();
30
+								$navigation = $em->getRepository("RibsAdminBundle:Navigation")->findAllNavigationPage();
31
+								$page = $em->getRepository("RibsAdminBundle:Page")->find($page_id);
32 32
 
33
-        return $this->render('@RibsAdmin/page/edit-page.html.twig', ["navigation" => $navigation, "page" => $page]);
34
-    }
33
+								return $this->render('@RibsAdmin/page/edit-page.html.twig', ["navigation" => $navigation, "page" => $page]);
34
+				}
35 35
 }
Please login to merge, or discard this patch.