@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Lookyman\NetteOAuth2Server\UI; |
4 | 4 | |
5 | -use League\OAuth2\Server\AuthorizationServer; |
|
6 | 5 | use Lookyman\NetteOAuth2Server\RedirectConfig; |
7 | 6 | use Lookyman\NetteOAuth2Server\Storage\IAuthorizationRequestSerializer; |
8 | 7 | use Lookyman\NetteOAuth2Server\User\UserEntity; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | { |
44 | 44 | $control = $this->approveControlFactory->create(); |
45 | 45 | |
46 | - $control->onAnchor[] = function (ApproveControl $control) { |
|
46 | + $control->onAnchor[] = function(ApproveControl $control) { |
|
47 | 47 | if (!$this->redirectConfig) { |
48 | 48 | $this->error('RedirectConfig not set', IResponse::S500_INTERNAL_SERVER_ERROR); |
49 | 49 | } |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use Nette\Http\IResponse; |
11 | 11 | use Psr\Log\LoggerAwareInterface; |
12 | 12 | use Psr\Log\LoggerAwareTrait; |
13 | -use Zend\Diactoros\Stream; |
|
14 | 13 | |
15 | 14 | abstract class ResourcePresenter extends Presenter implements LoggerAwareInterface |
16 | 15 | { |
@@ -22,7 +22,7 @@ |
||
22 | 22 | public function __construct(User $user, callable $credentialsValidator = null) |
23 | 23 | { |
24 | 24 | $this->user = $user; |
25 | - $this->credentialsValidator = $credentialsValidator ?: function () { |
|
25 | + $this->credentialsValidator = $credentialsValidator ?: function() { |
|
26 | 26 | try { |
27 | 27 | call_user_func_array([$this->user, 'login'], func_get_args()); |
28 | 28 |