| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public static function getXPath(DOMNode $node, bool $autoregister = false): DOMXPath |
||
| 28 | { |
||
| 29 | $xp = parent::getXPath($node, $autoregister); |
||
| 30 | |||
| 31 | /* |
||
| 32 | * - Registering 'cas' to the same URI again is fine. |
||
| 33 | * - If someone previously bound 'cas' to a different URI on the same DOMXPath, |
||
| 34 | * your call will change its meaning for subsequent queries |
||
| 35 | * */ |
||
| 36 | $xp->registerNamespace('cas', C::NS_CAS); |
||
| 37 | |||
| 38 | return $xp; |
||
| 39 | } |
||
| 41 |