Completed
Pull Request — master (#65)
by
unknown
06:34
created
Core/Executor/RoleManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,12 +38,12 @@  discard block
 block discarded – undo
38 38
 
39 39
         // Publish new role
40 40
         $role = $roleService->createRole($roleCreateStruct);
41
-        if(is_callable(array($roleService, 'publishRoleDraft')) {
41
+        if (is_callable(array($roleService, 'publishRoleDraft')) {
42 42
             $roleService->publishRoleDraft($role);
43 43
         }
44 44
 
45 45
         if (array_key_exists('policies', $this->dsl)) {
46
-            foreach($this->dsl['policies'] as $key => $ymlPolicy) {
46
+            foreach ($this->dsl['policies'] as $key => $ymlPolicy) {
47 47
                 $this->addPolicy($role, $roleService, $ymlPolicy);
48 48
             }
49 49
         }
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
                 // Removing all policies so we can add them back.
94 94
                 // TODO: Check and update policies instead of remove and add.
95 95
                 $policies = $role->getPolicies();
96
-                foreach($policies as $policy) {
96
+                foreach ($policies as $policy) {
97 97
                     $roleService->deletePolicy($policy);
98 98
                 }
99 99
 
100
-                foreach($ymlPolicies as $ymlPolicy) {
100
+                foreach ($ymlPolicies as $ymlPolicy) {
101 101
                     $this->addPolicy($role, $roleService, $ymlPolicy);
102 102
                 }
103 103
             }
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 
229 229
         $limitationValue = is_array($limitation['values']) ? $limitation['values'] : array($limitation['values']);
230 230
 
231
-        foreach($limitationValue as $id => $value) {
231
+        foreach ($limitationValue as $id => $value) {
232 232
             if ($this->referenceResolver->isReference($value)) {
233 233
                 $value = $this->referenceResolver->getReferenceValue($value);
234 234
                 $limitationValue[$id] = $value;
Please login to merge, or discard this patch.