Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
69 | public function __toString(): string |
||
70 | { |
||
71 | $return = ''; |
||
72 | |||
73 | 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 | $return = $this->name . ' = ' . $this->value . PHP_EOL; |
||
79 | } |
||
80 | |||
81 | return $return; |
||
82 | } |
||
84 |