@@ -42,9 +42,9 @@ |
||
42 | 42 | */ |
43 | 43 | public function __construct(bool $status, ?string $reason = null) |
44 | 44 | { |
45 | - $this->status = (bool)$status; |
|
45 | + $this->status = (bool) $status; |
|
46 | 46 | if ($reason !== null) { |
47 | - $this->reason = (string)$reason; |
|
47 | + $this->reason = (string) $reason; |
|
48 | 48 | } |
49 | 49 | } |
50 | 50 |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | protected function getCanHandler($policy, $action): callable |
105 | 105 | { |
106 | - $method = 'can' . ucfirst($action); |
|
106 | + $method = 'can'.ucfirst($action); |
|
107 | 107 | if (!method_exists($policy, $method) && !method_exists($policy, '__call')) { |
108 | 108 | throw (new MissingMethodException())->setMessageVars([$method, $action, get_class($policy)]); |
109 | 109 | } |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | protected function getScopeHandler($policy, $action): callable |
123 | 123 | { |
124 | - $method = 'scope' . ucfirst($action); |
|
124 | + $method = 'scope'.ucfirst($action); |
|
125 | 125 | if (!method_exists($policy, $method)) { |
126 | 126 | throw (new MissingMethodException())->setMessageVars([$method, $action, get_class($policy)]); |
127 | 127 | } |