protected function assertIsInsideMethod() { if (!$this->codeAnalysis->isInsideMethod($this->file, LineRange::fromSingleLine($this->line))) { throw RefactoringException::rangeIsNotInsideMethod(LineRange::fromSingleLine($this->line)); } }
protected function assertIsInsideMethod() { if (!$this->codeAnalysis->isInsideMethod($this->file, $this->extractRange)) { throw RefactoringException::rangeIsNotInsideMethod($this->extractRange); } }