Completed
Push — master ( e552c5...5b1e94 )
by Gaetano
07:24
created
Core/Executor/RoleManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         if (array_key_exists('policies', $this->dsl)) {
44 44
             $ymlPolicies = $this->dsl['policies'];
45
-            foreach($ymlPolicies as $key => $ymlPolicy) {
45
+            foreach ($ymlPolicies as $key => $ymlPolicy) {
46 46
                 $this->addPolicy($role, $roleService, $ymlPolicy);
47 47
             }
48 48
         }
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
                 // Removing all policies so we can add them back.
83 83
                 // TODO: Check and update policies instead of remove and add.
84 84
                 $policies = $role->getPolicies();
85
-                foreach($policies as $policy) {
85
+                foreach ($policies as $policy) {
86 86
                     $roleService->deletePolicy($policy);
87 87
                 }
88 88
 
89
-                foreach($ymlPolicies as $key => $ymlPolicy) {
89
+                foreach ($ymlPolicies as $key => $ymlPolicy) {
90 90
                     $this->addPolicy($role, $roleService, $ymlPolicy);
91 91
                 }
92 92
             }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
         $limitationValue = is_array($limitation['values']) ? $limitation['values'] : array($limitation['values']);
177 177
 
178
-        foreach($limitationValue as $id => $value) {
178
+        foreach ($limitationValue as $id => $value) {
179 179
             if ($this->referenceResolver->isReference($value)) {
180 180
                 $value = $this->referenceResolver->getReferenceValue($value);
181 181
                 $limitationValue[$id] = $value;
Please login to merge, or discard this patch.