@@ -40,7 +40,7 @@ |
||
| 40 | 40 | * @param string $grantType |
| 41 | 41 | * @param string|null $clientSecret |
| 42 | 42 | * @param bool $mustValidateSecret |
| 43 | - * @return ClientEntityInterface|null |
|
| 43 | + * @return ClientEntity|null |
|
| 44 | 44 | */ |
| 45 | 45 | public function getClientEntity($clientIdentifier, $grantType, $clientSecret = null, $mustValidateSecret = true) |
| 46 | 46 | { |
@@ -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\Storage\Doctrine\Client; |
| 5 | 5 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | { |
| 34 | 34 | $this->entityManager = $entityManager; |
| 35 | 35 | $this->repository = $entityManager->getRepository(ClientEntity::class); |
| 36 | - $this->secretValidator = $secretValidator ?: function ($expected, $actual) { return hash_equals($expected, $actual); }; |
|
| 36 | + $this->secretValidator = $secretValidator ?: function($expected, $actual) { return hash_equals($expected, $actual); }; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -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\Storage\Doctrine\Client; |
| 5 | 5 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public function byIdentifier(string $identifier): ClientQuery |
| 22 | 22 | { |
| 23 | - $this->filters[] = function (QueryBuilder $queryBuilder) use ($identifier) { |
|
| 23 | + $this->filters[] = function(QueryBuilder $queryBuilder) use ($identifier) { |
|
| 24 | 24 | $queryBuilder->andWhere('c.identifier = :identifier')->setParameter('identifier', $identifier); |
| 25 | 25 | }; |
| 26 | 26 | return $this; |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Lookyman\NetteOAuth2Server\Storage\Doctrine; |
| 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\Storage\Doctrine; |
| 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\Storage\Doctrine; |
| 5 | 5 | |
@@ -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\Storage\Doctrine\Client; |
| 5 | 5 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public function byIdentifier(string $identifier): ClientQuery |
| 22 | 22 | { |
| 23 | - $this->filters[] = function (QueryBuilder $queryBuilder) use ($identifier) { |
|
| 23 | + $this->filters[] = function(QueryBuilder $queryBuilder) use ($identifier) { |
|
| 24 | 24 | $queryBuilder->andWhere('c.identifier = :identifier')->setParameter('identifier', $identifier); |
| 25 | 25 | }; |
| 26 | 26 | return $this; |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Lookyman\NetteOAuth2Server\Storage\Doctrine; |
| 5 | 5 | |
@@ -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\Storage\Doctrine\Client; |
| 5 | 5 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public function byIdentifier(string $identifier): ClientQuery |
| 22 | 22 | { |
| 23 | - $this->filters[] = function (QueryBuilder $queryBuilder) use ($identifier) { |
|
| 23 | + $this->filters[] = function(QueryBuilder $queryBuilder) use ($identifier) { |
|
| 24 | 24 | $queryBuilder->andWhere('c.identifier = :identifier')->setParameter('identifier', $identifier); |
| 25 | 25 | }; |
| 26 | 26 | return $this; |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Lookyman\NetteOAuth2Server\Storage\Doctrine; |
| 5 | 5 | |