PHPUnit_Util_XML::findNodes

Parse out the options from the tag using DOM object tree.

Signature

public function findNodes(DOMDocument $dom, [array $options = true, [boolean $isHtml = true]] )

Parameters

$domDOMDocument



$options — array
$isHtml — boolean

Returns

array

Violations

PHPMessDetector

Line Rule Message
514 - 877 CyclomaticComplexity The method findNodes() has a Cyclomatic Complexity of 88. The configured cyclomatic complexity threshold is 10.
514 - 877 NPathComplexity The method findNodes() has an NPath complexity of 81020998681623000. The configured NPath complexity threshold is 200.
514 - 877 ExcessiveMethodLength The method findNodes() has 364 lines of code. Current threshold is set to 100. Avoid really long methods.

Checkstyle

Line Column Severity Message
537 27 error Only one argument is allowed per line in a multi-line function call
551 9 error Expected "} else {\n"; found "} // no tag selected, get them all\n else {\n"
575 31 error Only one argument is allowed per line in a multi-line function call
603 21 error Expected "} elseif (...) {\n"; found "} // class can match only a part\n elseif (...) {\n"
606 34 error Only one argument is allowed per line in a multi-line function call
621 21 error Expected "} else {\n"; found "} // match by exact string\n else {\n"
653 17 error Expected "} elseif (...) {\n"; found "} // match empty string\n elseif (...) {\n"
658 17 error Expected "} elseif (...) {\n"; found "} // match by exact string\n elseif (...) {\n"
803 39 error Only one argument is allowed per line in a multi-line function call
824 21 error Expected "} elseif (...) {\n"; found "} // range count of children\n elseif (...) {\n"
831 21 error Expected "} elseif (...) {\n"; found "} // less than a given count\n elseif (...) {\n"
836 21 error Expected "} elseif (...) {\n"; found "} // more than a given count\n elseif (...) {\n"
845 35 error Only one argument is allowed per line in a multi-line function call
845 58 error Only one argument is allowed per line in a multi-line function call