@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | public function startListening($response, $exception) |
| 38 | 38 | { |
| 39 | - $callbackListener = app(ListenerFactory::class)->make($response, $exception ); |
|
| 39 | + $callbackListener = app(ListenerFactory::class)->make($response, $exception); |
|
| 40 | 40 | $this->authorizer->startGuarding($callbackListener); |
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | \ No newline at end of file |
@@ -24,8 +24,8 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | private function exceptionCallback($e, $cb): \Closure |
| 26 | 26 | { |
| 27 | - return function () use ($e, $cb) { |
|
| 28 | - if (! $cb()) { |
|
| 27 | + return function() use ($e, $cb) { |
|
| 28 | + if (!$cb()) { |
|
| 29 | 29 | throw $e; |
| 30 | 30 | } |
| 31 | 31 | }; |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | private function responseCallback($resp, $cb): \Closure |
| 40 | 40 | { |
| 41 | - return function () use ($resp, $cb) { |
|
| 42 | - if (! $cb()) { |
|
| 41 | + return function() use ($resp, $cb) { |
|
| 42 | + if (!$cb()) { |
|
| 43 | 43 | list($method, $args) = $resp; |
| 44 | 44 | respondWith(response()->{$method}(...$args)); |
| 45 | 45 | } |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | $this->response = [__FUNCTION__, func_get_args()]; |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | - public function weThrowNew($exception, $message= '') |
|
| 168 | + public function weThrowNew($exception, $message = '') |
|
| 169 | 169 | { |
| 170 | 170 | $this->exception = new $exception($message); |
| 171 | 171 | } |