public function apply(AbstractNode $node)
{
$this->images = array();
$this->collectVariables($node);
$this->removeParameters($node);
foreach ($this->images as $nodes) {
if (count($nodes) === 1) {
$this->doCheckNodeImage($nodes[0]);
}
}
}
/** * testLocalVariableUsedInDoubleQuoteStringGetsNotReported * * @return void */ public function testLocalVariableUsedInDoubleQuoteStringGetsNotReported() { $rule = new UnusedLocalVariable(); $rule->setReport($this->getReportMock(0)); $rule->apply($this->getMethod()); }