@@ -48,7 +48,7 @@ |
||
| 48 | 48 | */ |
| 49 | 49 | public function getName() |
| 50 | 50 | { |
| 51 | - return new StringLiteral((string) $this->label); |
|
| 51 | + return new StringLiteral((string)$this->label); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | public static function getPermission() |
@@ -26,10 +26,10 @@ |
||
| 26 | 26 | StringLiteral $userId, |
| 27 | 27 | AuthorizableCommandInterface $command |
| 28 | 28 | ) { |
| 29 | - parent::__construct('User with id: ' . $userId->toNative() . |
|
| 30 | - ' has no permission: "' . $command::getPermission()->toNative() . |
|
| 31 | - '" on item: ' . $command->getItemId() . |
|
| 32 | - ' when executing command: ' . get_class($command)); |
|
| 29 | + parent::__construct('User with id: '.$userId->toNative(). |
|
| 30 | + ' has no permission: "'.$command::getPermission()->toNative(). |
|
| 31 | + '" on item: '.$command->getItemId(). |
|
| 32 | + ' when executing command: '.get_class($command)); |
|
| 33 | 33 | |
| 34 | 34 | $this->userId = $userId; |
| 35 | 35 | $this->command = $command; |
@@ -22,8 +22,8 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public function __construct(StringLiteral $userId, $command) |
| 24 | 24 | { |
| 25 | - parent::__construct('User with id: ' . $userId->toNative() . |
|
| 26 | - ' failed to execute command: ' . get_class($command) . |
|
| 25 | + parent::__construct('User with id: '.$userId->toNative(). |
|
| 26 | + ' failed to execute command: '.get_class($command). |
|
| 27 | 27 | ' because it is not authorizable.'); |
| 28 | 28 | |
| 29 | 29 | $this->userId = $userId; |