| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function finalizeScopes( |
||
| 52 | array $scopes, |
||
| 53 | $grantType, |
||
| 54 | ClientEntityInterface $clientEntity, |
||
| 55 | $userIdentifier = null, |
||
| 56 | $authCodeId = null |
||
| 57 | ): array { |
||
| 58 | // Example of programatically modifying the final scope of the access token |
||
| 59 | if ((int) $userIdentifier === 1) { |
||
| 60 | $scope = new ScopeEntity(); |
||
| 61 | $scope->setIdentifier('email'); |
||
| 62 | $scopes[] = $scope; |
||
| 63 | } |
||
| 64 | |||
| 65 | return $scopes; |
||
| 66 | } |
||
| 68 |