/**
  * Returns the relative path to the resource based on the repository path
  *
  * @return  string
  */
 public function getLocalPath()
 {
     if (!$this->localPath) {
         $this->localPath = $this->repository->resolveLocalPath($this->fullPath);
     }
     return $this->localPath;
 }
 /**
  * Creates the log string to be fed into the string buffer
  *
  * @param   RepositoryInterface     $repository The repository
  * @param   integer|null            $limit      The maximum number of log entries returned
  * @param   integer|null            $skip       Number of log entries that are skipped from the beginning
  * @return  string
  */
 protected function createLogString(RepositoryInterface $repository, $limit, $skip)
 {
     return implode(str_repeat(PHP_EOL, 3), array_map(function (array $log) {
         return sprintf('r%d | %s | %s:' . PHP_EOL . '%s', $log[0], $log[2], $log[1], $log[3]);
     }, $repository->getLog($limit, $skip)));
 }
 /**
  * Creates the log string to be fed into the string buffer
  *
  * @param   RepositoryInterface     $repository The repository
  * @param   integer|null            $limit      The maximum number of log entries returned
  * @param   integer|null            $skip       Number of log entries that are skipped from the beginning
  * @return  string
  */
 protected function createLogString(RepositoryInterface $repository, $limit, $skip)
 {
     return implode(str_repeat(PHP_EOL, 3), $repository->getLog($limit, $skip));
 }
 /**
  * {@inheritDoc}
  */
 public function checksum($key)
 {
     return Checksum::fromFile($this->repository->resolveFullPath($key));
 }