Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | public function testExecute() |
||
52 | { |
||
53 | if (!$this->category || !$this->url) { |
||
54 | throw new MissingConfigurationException('Both the category and the url must be provided'); |
||
55 | } |
||
56 | $this->commandOpen($this->url); |
||
57 | |||
58 | $extractor = $this->getExtractor(Menu::EXTRACTOR); |
||
59 | /* @var $extractor Menu */ |
||
60 | $extractor->setPath($this->category); |
||
61 | $extractor->extract(); |
||
62 | $this->baseXpath = $extractor->getBaseXpath(); |
||
|
|||
63 | $this->childXpath = $extractor->getChildXpath(); |
||
64 | } |
||
65 | |||
66 | } |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.