Passed
Push — master ( 1c7155...943d23 )
by Jan
03:08
created
src/Services/PermissionResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
      */
180 180
     public function listOperationsForPermission(string $permission): array
181 181
     {
182
-        if(!$this->isValidPermission($permission)) {
182
+        if (!$this->isValidPermission($permission)) {
183 183
             throw new \InvalidArgumentException(sprintf('A permission with that name is not existing! Got %s.', $permission));
184 184
         }
185 185
         $operations = $this->permission_structure['perms'][$permission]['operations'];
Please login to merge, or discard this patch.
src/Entity/PermissionsEmbed.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      */
274 274
     public function getBitValue(string $permission_name, int $bit_n): int
275 275
     {
276
-        if(!$this->isValidPermissionName($permission_name)) {
276
+        if (!$this->isValidPermissionName($permission_name)) {
277 277
             throw new \InvalidArgumentException('No permission with the given name is existing!');
278 278
         }
279 279
 
@@ -317,9 +317,9 @@  discard block
 block discarded – undo
317 317
     public function setPermissionValue(string $permission_name, int $bit_n, ?bool $new_value) : self
318 318
     {
319 319
         //Determine which bit value the given value is.
320
-        if($new_value === true) {
320
+        if ($new_value === true) {
321 321
             $bit_value = static::ALLOW;
322
-        } elseif($new_value === false) {
322
+        } elseif ($new_value === false) {
323 323
             $bit_value = static::DISALLOW;
324 324
         } else {
325 325
             $bit_value = static::INHERIT;
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
      */
340 340
     public function setBitValue(string $permission_name, int $bit_n, int $new_value) : self
341 341
     {
342
-        if(!$this->isValidPermissionName($permission_name)) {
342
+        if (!$this->isValidPermissionName($permission_name)) {
343 343
             throw new \InvalidArgumentException('No permission with the given name is existing!');
344 344
         }
345 345
 
Please login to merge, or discard this patch.