/**
  * @param AbstractNode $scope
  * @param AbstractNode $node
  * @param integer      $adjustment number of lines to add to the final line of the node being checked.
  * @return boolean
  */
 private function isFinalStatement(AbstractNode $scope, AbstractNode $node, $adjustment = 1)
 {
     if ($node->getEndLine() + $adjustment === $scope->getEndLine()) {
         return true;
     }
     return false;
 }
예제 #2
0
 /**
  * Returns the last line of the node that causes this rule violation.
  *
  * @return integer
  */
 public function getEndLine()
 {
     return $this->node->getEndLine();
 }