| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 45 | protected static function splitParts(DOMElement $node, $typeName) |
|
| 15 | { |
||
| 16 | 45 | $prefix = null; |
|
| 17 | 45 | $name = $typeName; |
|
| 18 | 45 | if (strpos($typeName, ':') !== false) { |
|
| 19 | 45 | list($prefix, $name) = explode(':', $typeName); |
|
| 20 | 45 | } |
|
| 21 | |||
| 22 | 45 | $namespace = $node->lookupNamespaceUri($prefix ?: ''); |
|
| 23 | |||
| 24 | return array( |
||
| 25 | 45 | $name, |
|
| 26 | 45 | $namespace, |
|
| 27 | 45 | $prefix, |
|
| 28 | 45 | ); |
|
| 31 |