@@ -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 | /** |