| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function transform(Assertion $assertion) |
||
| 24 | { |
||
| 25 | if (!$this->identityProvider->hasBase64EncodedAttributes()) { |
||
| 26 | return $assertion; |
||
| 27 | } |
||
| 28 | |||
| 29 | $attributes = $assertion->getAttributes(); |
||
| 30 | $keys = array_keys($attributes); |
||
| 31 | $decoded = array_map(array($this, 'decodeValue'), $attributes); |
||
| 32 | |||
| 33 | $attributes = array_combine($keys, $decoded); |
||
| 34 | |||
| 35 | $assertion->setAttributes($attributes); |
||
| 36 | } |
||
| 37 | |||
| 50 |