@@ -7,7 +7,6 @@ |
||
7 | 7 | use Lookyman\NetteOAuth2Server\Storage\IAuthorizationRequestSerializer; |
8 | 8 | use Lookyman\NetteOAuth2Server\User\UserEntity; |
9 | 9 | use Nette\Http\IResponse; |
10 | -use Nette\Security\User; |
|
11 | 10 | use Nextras\Application\UI\SecuredLinksPresenterTrait; |
12 | 11 | |
13 | 12 | trait ApprovePresenterTrait |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Lookyman\NetteOAuth2Server\UI; |
5 | 5 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | { |
45 | 45 | $control = $this->approveControlFactory->create(); |
46 | 46 | |
47 | - $control->onAnchor[] = function (ApproveControl $control) { |
|
47 | + $control->onAnchor[] = function(ApproveControl $control) { |
|
48 | 48 | if (!$this->redirectConfig) { |
49 | 49 | $this->error('RedirectConfig not set', IResponse::S500_INTERNAL_SERVER_ERROR); |
50 | 50 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Lookyman\NetteOAuth2Server\User; |
5 | 5 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | public function __construct(User $user, callable $credentialsValidator = null) |
24 | 24 | { |
25 | 25 | $this->user = $user; |
26 | - $this->credentialsValidator = $credentialsValidator ?: function () { |
|
26 | + $this->credentialsValidator = $credentialsValidator ?: function() { |
|
27 | 27 | try { |
28 | 28 | call_user_func_array([$this->user, 'login'], func_get_args()); |
29 | 29 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Lookyman\NetteOAuth2Server; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Lookyman\NetteOAuth2Server; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Lookyman\NetteOAuth2Server; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Lookyman\NetteOAuth2Server; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Lookyman\NetteOAuth2Server; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Lookyman\NetteOAuth2Server; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Lookyman\NetteOAuth2Server; |
5 | 5 |