Conditions | 5 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | protected function fixValue() |
||
29 | { |
||
30 | if (is_string($this->value)) { |
||
31 | $parts = explode(' ', $this->value); |
||
32 | $this->value = []; |
||
33 | foreach ($parts as $part) { |
||
34 | if (0 != strlen(trim($part))) { |
||
35 | $this->value[] = new xsNMTOKEN(trim($part)); |
||
36 | } |
||
37 | } |
||
38 | } |
||
39 | assert(is_array($this->value), 'Somehow, xsNMTOKENs ended up not being an array.'); |
||
40 | foreach ($this->value as $v) { |
||
41 | $v->fixValue($v); |
||
42 | } |
||
43 | } |
||
44 | |||
57 |