@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | public function hasPermission(string $component = null, string $instance = null, int $level = ACCESS_NONE, int $user = null): bool |
91 | 91 | { |
92 | 92 | if (!isset($user)) { |
93 | - $user = (int)$this->currentUserApi->get('uid'); |
|
93 | + $user = (int) $this->currentUserApi->get('uid'); |
|
94 | 94 | } |
95 | 95 | $user = !$user ? Constant::USER_ID_ANONYMOUS : $user; |
96 | 96 | if (!isset($this->groupPermsByUser[$user]) || false === $this->groupPermsByUser[$user]) { |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | foreach ($permsByGroup as $perm) { |
133 | 133 | $component = $this->normalizeRegexString($perm['component']); |
134 | 134 | $instance = $this->normalizeRegexString($perm['instance']); |
135 | - $level = (int)$perm['level']; // this string must be a numeric and not normalized. |
|
135 | + $level = (int) $perm['level']; // this string must be a numeric and not normalized. |
|
136 | 136 | $groupPerms[] = [ |
137 | 137 | 'component' => $component, |
138 | 138 | 'instance' => $instance, |