| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 59 | public function printArray(array $array) |
||
| 60 | { |
||
| 61 | $string = var_export($array, true); |
||
| 62 | $string = preg_replace('/\'\$(.+)\'/', '$' . '\\1', $string); |
||
| 63 | |||
| 64 | $statements = $this->parser->parse($string); |
||
| 65 | |||
| 66 | if (null === $statements) { |
||
| 67 | throw new RetrofitException('There was an error parsing the array'); |
||
| 68 | } |
||
| 69 | |||
| 70 | return $this->printer->prettyPrintFile($statements); |
||
| 71 | } |
||
| 72 | } |
||
| 73 |