| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function getClaims(IdentityInterface $identity, string $claims): \stdClass |
||
| 13 | { |
||
| 14 | $claimed = explode(' ', trim($claims)); |
||
| 15 | |||
| 16 | $response = []; |
||
| 17 | foreach ($this->claimBuilders() as $claim => $provider) { |
||
| 18 | if (\in_array($claim, $claimed, true)) { |
||
| 19 | $response = array_merge($response, $provider($identity)); |
||
| 20 | } |
||
| 21 | } |
||
| 22 | |||
| 23 | return (object)$response; |
||
| 24 | } |
||
| 25 | |||
| 45 |