| Conditions | 5 |
| Paths | 5 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 11.1035 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 1 | public static function extractAttributes(Response $response) |
|
| 16 | { |
||
| 17 | 1 | foreach ($response->getAllAssertions() as $assertion) { |
|
| 18 | foreach ($assertion->getAllAttributeStatements() as $statement) { |
||
| 19 | foreach ($statement->getAllAttributes() as $attribute) { |
||
| 20 | yield $attribute->getName() => \count($attribute->getAllAttributeValues()) > 1 |
||
| 21 | ? $attribute->getAllAttributeValues() |
||
| 22 | : $attribute->getFirstAttributeValue(); |
||
| 23 | } |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | 1 | yield from []; |
|
| 28 | 1 | } |
|
| 30 |