Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | protected function parse(string $arg) |
||
28 | { |
||
29 | $this->name = $name = \str_replace(['<', '>', '[', ']', '.'], '', $arg); |
||
30 | |||
31 | // Format is "name:default+value1,default+value2" ('+' => ' ')! |
||
32 | if (\strpos($name, ':') !== false) { |
||
33 | $name = \str_replace('+', ' ', $name); |
||
34 | list($this->name, $this->default) = \explode(':', $name, 2); |
||
35 | } |
||
36 | |||
37 | $this->prepDefault(); |
||
38 | } |
||
47 |