Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | protected function parse(string $arg) |
||
19 | { |
||
20 | $this->name = $name = \str_replace(['<', '>', '[', ']', '.'], '', $arg); |
||
21 | |||
22 | // Format is "name:default+value1,default+value2" ('+' => ' ')! |
||
23 | if (\strpos($name, ':') !== false) { |
||
24 | $name = \str_replace('+', ' ', $name); |
||
25 | list($this->name, $this->default) = \explode(':', $name, 2); |
||
26 | } |
||
27 | |||
28 | $this->prepDefault(); |
||
29 | } |
||
38 |