PHPUnit_Util_XML::convertSelectToTag
Parse a CSS selector into an associative array suitable for use with findNodes().
- Author: Mike Naberezny <mike@maintainable.com>
Signature
public function convertSelectToTag(string
$selector,
[mixed
$content = true] )
Parameters
$selector
—
string
$content
—
mixed
Returns
- array
Violations
PHPMessDetector
Line |
Rule |
Message |
358 - 469 |
CyclomaticComplexity
|
The method convertSelectToTag() has a Cyclomatic Complexity of 21. The configured cyclomatic complexity threshold is 10. |
358 - 469 |
NPathComplexity
|
The method convertSelectToTag() has an NPath complexity of 8452. The configured NPath complexity threshold is 200. |
358 - 469 |
ExcessiveMethodLength
|
The method convertSelectToTag() has 112 lines of code. Current threshold is set to 100. Avoid really long methods. |
Checkstyle
Line |
Column |
Severity |
Message |
365 |
51 |
error
|
Only one argument is allowed per line in a multi-line function call |
365 |
68 |
error
|
Only one argument is allowed per line in a multi-line function call |
404 |
59 |
error
|
Only one argument is allowed per line in a multi-line function call |
404 |
69 |
error
|
Only one argument is allowed per line in a multi-line function call |
416 |
21 |
error
|
Expected "} elseif (...) {\n"; found "} // class matched\n elseif (...) {\n" |
419 |
21 |
error
|
Expected "} elseif (...) {\n"; found "} // attribute matched\n elseif (...) {\n" |
429 |
25 |
error
|
Expected "} elseif (...) {\n"; found "} // match substring\n elseif (...) {\n" |
433 |
25 |
error
|
Expected "} else {\n"; found "} // exact match\n else {\n" |