| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function handle(RevokePreConfiguredAuthorizationCommand $command) |
||
| 39 | { |
||
| 40 | $preConfiguredAuthorization = $this->preConfiguredAuthorizationRepository->find( |
||
| 41 | $command->getUserAccountId(), |
||
| 42 | $command->getClientId(), |
||
| 43 | $command->getScopes(), |
||
| 44 | $command->getResourceServerId() |
||
| 45 | ); |
||
| 46 | |||
| 47 | if (null !== $preConfiguredAuthorization && !$preConfiguredAuthorization->isRevoked()) { |
||
| 48 | $preConfiguredAuthorization = $preConfiguredAuthorization->markAsRevoked(); |
||
| 49 | $this->preConfiguredAuthorizationRepository->save($preConfiguredAuthorization); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | } |
||
| 53 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.