Passed
Branch master (6bd187)
by Anthony
07:41 queued 05:08
created
Service/ModuleService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 		foreach ($modules as $module) {
37 37
 			$modules_data[] = [
38 38
 				"name" => $module->getTitle(),
39
-				"rights" => (array)json_decode(file_get_contents($this->globals->getBaseBundlePath($module->getPackageName()) . "/Resources/json/ribsadmin_rights.json"))
39
+				"rights" => (array) json_decode(file_get_contents($this->globals->getBaseBundlePath($module->getPackageName()) . "/Resources/json/ribsadmin_rights.json"))
40 40
 			];
41 41
 		}
42 42
 		
@@ -59,6 +59,6 @@  discard block
 block discarded – undo
59 59
 			$rights[] = json_decode(file_get_contents($this->globals->getBaseBundlePath($module->getPackageName()) . "/Resources/json/ribsadmin_rights.json"));
60 60
 		}
61 61
 		
62
-		return (object)$rights;
62
+		return (object) $rights;
63 63
 	}
64 64
 }
Please login to merge, or discard this patch.
Service/AccessRights.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 		
80 80
 		$ribs_admin_rights = json_decode(file_get_contents($this->globals->getBaseBundlePath() . "/Resources/json/ribsadmin_rights.json"));
81 81
 		$modules_rights = $this->module->getModuleRights();
82
-		$ribs_admin_rights = (object)array_merge((array)$ribs_admin_rights, (array)$modules_rights);
82
+		$ribs_admin_rights = (object) array_merge((array) $ribs_admin_rights, (array) $modules_rights);
83 83
 		
84 84
 		if ($admin_page == "ribsadmin" && $api !== "api" && strpos($route, "login") === false && strpos($route, "register") === false) {
85 85
 			//redirection if user not connected
Please login to merge, or discard this patch.
Service/Globals.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@
 block discarded – undo
51 51
 		$dev_mode = $this->container->getParameter("ribs_admin")["dev_mode"];
52 52
 		
53 53
 		if ($dev_mode === true) {
54
-			$package = "lib/".$this->getPackageDevName($package);
54
+			$package = "lib/" . $this->getPackageDevName($package);
55 55
 		}
56 56
 		
57
-		return implode("/", $path)."/../../" . $package;
57
+		return implode("/", $path) . "/../../" . $package;
58 58
 	}
59 59
 }
Please login to merge, or discard this patch.