Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function resolve($value, array $args, ResolveContext $context, ResolveInfo $info) { |
||
30 | if ($value instanceof \DOMElement) { |
||
31 | $xpath = new \DOMXPath($value->ownerDocument); |
||
32 | foreach ($xpath->query($args['query'], $value) as $el) { |
||
33 | /** @var $el \DOMElement */ |
||
34 | $iterator = parent::resolveValues(NULL, ['path' => $el->textContent], $context, $info); |
||
|
|||
35 | return iterator_to_array($iterator); |
||
36 | } |
||
37 | } |
||
38 | } |
||
39 | |||
41 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.