| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4.0466 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 27 | 1 | public function render($value) |
|
| 28 | { |
||
| 29 | 1 | if (!is_array($value) && !($value instanceof Traversable)) { |
|
| 30 | throw new Exception('Value should be an array instead of '.gettype($value)); |
||
| 31 | } |
||
| 32 | 1 | if ($value instanceof Collection) { |
|
| 33 | 1 | $value = $value->toArray(); |
|
| 34 | 1 | } |
|
| 35 | |||
| 36 | 1 | return implode($this->glue, $value); |
|
| 37 | } |
||
| 38 | |||
| 73 |