| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | 10 | public function format(array $arguments) |
|
| 8 | { |
||
| 9 | 10 | $output = new \ArrayObject(); |
|
| 10 | 10 | foreach ($arguments as $key => $value) { |
|
| 11 | 5 | if (null === $value || is_scalar($value)) { |
|
| 12 | 2 | $output[$key] = $value; |
|
| 13 | } else { |
||
| 14 | 4 | $this->expandArgument($value, $output); |
|
| 15 | } |
||
| 16 | } |
||
| 17 | |||
| 18 | 10 | return $output; |
|
| 19 | } |
||
| 20 | |||
| 32 |