| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 38 | 87 | public function getValuePath(bool $escape = false): array |
|
| 39 | { |
||
| 40 | 87 | if ($escape === false) { |
|
| 41 | 83 | return $this->valuePath; |
|
| 42 | } |
||
| 43 | |||
| 44 | 25 | return array_map( |
|
| 45 | 25 | static fn ($key): string => str_replace(['.', '*'], ['\\' . '.', '\\' . '*'], (string)$key), |
|
| 46 | 25 | $this->valuePath |
|
| 47 | ); |
||
| 55 |