| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.2098 |
| Changes | 0 | ||
| 1 | <?php |
||
| 69 | 2 | public function __toString(): string |
|
| 70 | { |
||
| 71 | 2 | $return = ''; |
|
| 72 | |||
| 73 | 2 | if (is_array($this->value)) { |
|
| 74 | foreach ($this->value as $key => $value) { |
||
| 75 | $return .= $this->name . '[' . $key . '] = ' . $this->escape($value) . PHP_EOL; |
||
| 76 | } |
||
| 77 | } else { |
||
| 78 | 2 | $return = $this->name . ' = ' . $this->value . PHP_EOL; |
|
| 79 | } |
||
| 80 | |||
| 81 | 2 | return $return; |
|
| 82 | } |
||
| 83 | } |
||
| 84 |