@@ -23,6 +23,6 @@ |
||
| 23 | 23 | public Context $context, |
| 24 | 24 | ?Throwable $previous = null |
| 25 | 25 | ) { |
| 26 | - parent::__construct("Permission not granted for message: " . $dispatched_message::class, 0, $previous); |
|
| 26 | + parent::__construct("Permission not granted for message: ".$dispatched_message::class, 0, $previous); |
|
| 27 | 27 | } |
| 28 | 28 | } |
@@ -23,6 +23,6 @@ |
||
| 23 | 23 | public string $permission, |
| 24 | 24 | ?Throwable $previous = null |
| 25 | 25 | ) { |
| 26 | - parent::__construct("Voter not found for permission: $permission", previous: $previous); |
|
| 26 | + parent::__construct("Voter not found for permission: $permission", previous : $previous); |
|
| 27 | 27 | } |
| 28 | 28 | } |
@@ -62,10 +62,10 @@ discard block |
||
| 62 | 62 | $message = self::resolveMessage($handler); |
| 63 | 63 | |
| 64 | 64 | $definition = new Definition($handler); |
| 65 | - $definition->addTag($this->tagForHandler, [ $this->attributeForMessage => $message ]); |
|
| 65 | + $definition->addTag($this->tagForHandler, [$this->attributeForMessage => $message]); |
|
| 66 | 66 | |
| 67 | 67 | foreach ($permissions[$message] ?? [] as $permission) { |
| 68 | - $definition->addTag($this->tagForPermission, [ $this->attributeForPermission => $permission ]); |
|
| 68 | + $definition->addTag($this->tagForPermission, [$this->attributeForPermission => $permission]); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | $definitions[$handler] = $definition; |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $permission = $targetClass->attribute->permission; |
| 77 | 77 | |
| 78 | 78 | $definition = new Definition($voter); |
| 79 | - $definition->addTag($this->tagForVoter, [ $this->attributeForPermission => $permission ]); |
|
| 79 | + $definition->addTag($this->tagForVoter, [$this->attributeForPermission => $permission]); |
|
| 80 | 80 | |
| 81 | 81 | $definitions[$voter] = $definition; |
| 82 | 82 | } |