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 |
||
40 | 87 | public function getValuePath(bool $escape = false): array |
|
41 | { |
||
42 | 87 | if ($escape === false) { |
|
43 | 83 | return $this->valuePath; |
|
44 | } |
||
45 | |||
46 | 25 | return array_map( |
|
47 | 25 | static fn ($key): string => str_replace(['.', '*'], ['\\' . '.', '\\' . '*'], (string)$key), |
|
48 | 25 | $this->valuePath |
|
49 | ); |
||
57 |