| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function parse(DOMDocument $dom, DOMXPath $xpath) |
||
|
|
|||
| 19 | { |
||
| 20 | $confPath = $xpath->query('//h4'); |
||
| 21 | |||
| 22 | if (! $confPath || $confPath->length == 0) { |
||
| 23 | throw new \InvalidArgumentException('The CfP does not seem to have an eventname'); |
||
| 24 | } |
||
| 25 | |||
| 26 | return trim($confPath->item(0)->textContent); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.