Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
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 function ($key): string { |
|
46 | 24 | return str_replace(['.', '*'], ['\\' . '.', '\\' . '*'], (string)$key); |
|
47 | }, |
||
48 | 25 | $this->valuePath |
|
49 | ); |
||
57 |