| Conditions | 4 |
| Paths | 6 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function toString(): string |
||
| 37 | { |
||
| 38 | $result = \str_repeat(self::INDENT, $this->indentLevel); |
||
| 39 | if ($this->key !== null) { |
||
| 40 | $result = $this->wrapKey ? "'{$this->key}' => " : "{$this->key} => "; |
||
| 41 | } |
||
| 42 | if ($this->value instanceof Indentable) { |
||
| 43 | $this->value->setIndentLevel($this->indentLevel); |
||
| 44 | } |
||
| 45 | return $result . ValueRenderer::render($this->value, $this->wrapValue, $this->indentLevel); |
||
| 46 | } |
||
| 59 |