Passed
Push — master ( 45313f...e6cf50 )
by Anthony
01:47
created
Controller/AccessRightsController.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@  discard block
 block discarded – undo
10 10
 use Symfony\Component\HttpFoundation\Response;
11 11
 use Symfony\Component\Routing\Annotation\Route;
12 12
 
13
-class AccessRightsController extends Controller
14
-{
13
+class AccessRightsController extends Controller {
15 14
 	//---------------------------------------------- VIEWS METHODS ---------------------------------------------------------//
16 15
 	/**
17 16
 	 * @Route("/access-rights-management/", name="ribsadmin_access_rights")
@@ -41,7 +40,8 @@  discard block
 block discarded – undo
41 40
 		
42 41
 		if ($guid === null) {
43 42
 			$access_right = new AccessRight();
44
-		} else {
43
+		}
44
+		else {
45 45
 			$access_right = $em->getRepository("RibsAdminBundle:AccessRight")->findOneBy(["guid" => $guid]);
46 46
 			$list_rights_user = explode(",", $access_right->getAccessRights());
47 47
 		}
@@ -98,7 +98,8 @@  discard block
 block discarded – undo
98 98
 			$em->flush();
99 99
 			
100 100
 			$this->addFlash("success-flash", "The right list was deleted");
101
-		} else {
101
+		}
102
+		else {
102 103
 			$this->addFlash("error-flash", "The right list wasn't found");
103 104
 		}
104 105
 		
Please login to merge, or discard this patch.