protected function getLocation(Operation $operation) { $isFullPath = $this->fullPath; if ($isFullPath) { $location = $operation->getLocation(); } else { $location = str_replace($this->cwd . DIRECTORY_SEPARATOR, '', $operation->getLocation()); } return $location . ':' . $operation->getLine(); }
/** * @param string $context * @param \PHPSemVerChecker\Operation\Operation $operation * @return $this */ public function add($context, Operation $operation) { $level = $operation->getLevel(); $this->differences[$context][$level][] = $operation; return $this; }