Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function pathToArray(string $path, ?array $defaultValue = null, ?string $delimiter = null): ?array |
||
20 | { |
||
21 | $ret = $this->path($path, $defaultValue, $delimiter); |
||
22 | |||
23 | if (is_null($ret)) { |
||
24 | return null; |
||
25 | } |
||
26 | |||
27 | if ($ret instanceof \Phalcon\Config) { |
||
28 | return $ret->toArray(); |
||
29 | } |
||
30 | |||
31 | return (array)$ret; |
||
32 | } |
||
58 |