@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | public function createAccessTokenForUser(UserInterface $user): AccessToken; |
| 13 | 13 | |
| 14 | - public function findUserByToken(string $token): ?UserInterface; |
|
| 14 | + public function findUserByToken(string $token): ? UserInterface; |
|
| 15 | 15 | |
| 16 | 16 | public function cleanUpExpiredTokens(): int; |
| 17 | 17 | |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | return null; |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | - private function isIncluded($currentPath, array $paths, ?array $includes): bool |
|
| 98 | + private function isIncluded($currentPath, array $paths, ? array $includes) : bool |
|
| 99 | 99 | { |
| 100 | 100 | if (null === $includes) { |
| 101 | 101 | return false; |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | /** |
| 64 | 64 | * {@inheritdoc} |
| 65 | 65 | */ |
| 66 | - public function findUserByToken(string $token): ?UserInterface |
|
| 66 | + public function findUserByToken(string $token): ? UserInterface |
|
| 67 | 67 | { |
| 68 | 68 | return $this->accessTokenRepository->findUserByToken($token); |
| 69 | 69 | } |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | /** |
| 220 | 220 | * @return null|\string[] |
| 221 | 221 | */ |
| 222 | - public function getIncludablePaths(): ?array |
|
| 222 | + public function getIncludablePaths(): ? array |
|
| 223 | 223 | { |
| 224 | 224 | return $this->includablePaths; |
| 225 | 225 | } |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | /** |
| 228 | 228 | * @param null|\string[] $includablePaths |
| 229 | 229 | */ |
| 230 | - public function setIncludablePaths(?array $includablePaths) |
|
| 230 | + public function setIncludablePaths(? array $includablePaths) |
|
| 231 | 231 | { |
| 232 | 232 | $this->includablePaths = $includablePaths; |
| 233 | 233 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function findUserByToken($token) |
| 15 | 15 | { |
| 16 | 16 | return $this->getEntityManager()->transactional( |
| 17 | - function () use ($token) { |
|
| 17 | + function() use ($token) { |
|
| 18 | 18 | /** @var AccessToken $accessToken */ |
| 19 | 19 | $accessToken = $this->createFindUserByTokenQuery($token)->getOneOrNullResult(); |
| 20 | 20 | if (null === $accessToken) { |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | $event->setResponse($response); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - private function isInterceptionPath(?Request $request): bool |
|
| 70 | + private function isInterceptionPath(? Request $request) : bool |
|
| 71 | 71 | { |
| 72 | 72 | if (null === $request) { |
| 73 | 73 | return false; |