| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function finalizeScopes( |
||
| 27 | array $scopes, |
||
| 28 | $grantType, |
||
| 29 | ClientEntityInterface $clientEntity, |
||
| 30 | $userIdentifier = null |
||
| 31 | ): array { |
||
| 32 | $filteredScopes = []; |
||
| 33 | /** @var OauthScope $scope */ |
||
| 34 | foreach ($scopes as $scope) { |
||
| 35 | $hasScope = OauthScope::hasScope($scope->getIdentifier()); |
||
| 36 | if ($hasScope) { |
||
| 37 | $filteredScopes[] = $scope; |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | return $filteredScopes; |
||
| 42 | } |
||
| 43 | } |
||
| 44 |