@@ -27,7 +27,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -17,7 +17,7 @@ |
||
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 | } |
@@ -25,7 +25,7 @@ |
||
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 | /** |
@@ -44,7 +44,7 @@ |
||
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 |