| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 58 | protected function toArray(bool $secure = true): array |
||
| 59 | { |
||
| 60 | $options = \get_object_vars($this); |
||
| 61 | |||
| 62 | foreach ($options as $key => $value) { |
||
| 63 | if ($secure && \in_array($key, $this->nonPrintableOptions, true)) { |
||
| 64 | $value = '<hidden>'; |
||
| 65 | } |
||
| 66 | |||
| 67 | $options[$key] = $value; |
||
| 68 | } |
||
| 69 | |||
| 70 | return $options; |
||
| 71 | } |
||
| 73 |