Passed
Push — master ( a39faa...c94eb5 )
by Jelmer
02:19
created
src/Acl/BasicAclEntry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         } elseif (substr($this->actorMatcher, -3, 3) === '::*') {
28 28
             return $actor->getType() === substr($this->actorMatcher, 0, -3);
29 29
         }
30
-        return $actor->getType().'::'.$actor->getId() === $this->actorMatcher;
30
+        return $actor->getType() . '::' . $actor->getId() === $this->actorMatcher;
31 31
     }
32 32
 
33 33
     /**
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         } elseif (substr($this->resourceMatcher, -3, 3) === '::*') {
43 43
             return $resource->getType() === substr($this->resourceMatcher, 0, -3);
44 44
         }
45
-        return $resource->getType().'::'.$resource->getId() === $this->resourceMatcher;
45
+        return $resource->getType() . '::' . $resource->getId() === $this->resourceMatcher;
46 46
     }
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
src/Rbac/BasicRoleProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public function getRolesForActor(AuthorizationEntityInterface $actor): RolesCollection
19 19
     {
20
-        $actorIdentifier = $actor->getType().'::'.$actor->getId();
20
+        $actorIdentifier = $actor->getType() . '::' . $actor->getId();
21 21
         return $this->roleMap[$actorIdentifier] ?? new RolesCollection();
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Rbac/BasicPermission.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         } elseif (substr($this->resourceMatcher, -3, 3) === '::*') {
26 26
             return $resource->getType() === substr($this->resourceMatcher, 0, -3);
27 27
         }
28
-        return $resource->getType().'::'.$resource->getId() === $this->resourceMatcher;
28
+        return $resource->getType() . '::' . $resource->getId() === $this->resourceMatcher;
29 29
     }
30 30
 
31 31
     /**
Please login to merge, or discard this patch.
src/Abac/ClosureBasedAccessEvaluator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     private function checkType(ReflectionParameter $parameter, int $number, string $type)
45 45
     {
46 46
         if (!$parameter->hasType() || strval($parameter->getType()) !== $type) {
47
-            throw new InvalidArgumentException('Parameter '.$number.' must be '.$type);
47
+            throw new InvalidArgumentException('Parameter ' . $number . ' must be ' . $type);
48 48
         }
49 49
     }
50 50
 }
51 51
\ No newline at end of file
Please login to merge, or discard this patch.