@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function __construct(User $user, callable $credentialsValidator = null) |
| 26 | 26 | { |
| 27 | 27 | $this->user = $user; |
| 28 | - $this->credentialsValidator = $credentialsValidator ?: function () { |
|
| 28 | + $this->credentialsValidator = $credentialsValidator ?: function() { |
|
| 29 | 29 | $this->user->logout(true); |
| 30 | 30 | try { |
| 31 | 31 | $this->user->login(...func_get_args()); |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $authorizationRequest->setUser(new UserEntity($this->getUser()->getId())); |
| 50 | 50 | } |
| 51 | 51 | $control = $this->approveControlFactory->create($authorizationRequest); |
| 52 | - $control->onResponse[] = function (ApplicationPsr7ResponseInterface $response) { |
|
| 52 | + $control->onResponse[] = function(ApplicationPsr7ResponseInterface $response) { |
|
| 53 | 53 | $this->sendResponse($response); |
| 54 | 54 | }; |
| 55 | 55 | return $control; |