private function getFileContent($search, GitRepository $git)
    {
        $cacheId = \md5(__FUNCTION__ . $search);
        if (!$this->cachePool->has($cacheId)) {
            $fileContent = $git->show()->execute($search);

            $this->cachePool->set($cacheId, $fileContent);

            return $fileContent;
        }

        return $this->cachePool->get($cacheId);
    }
private function getFileContent($search, GitRepository $git)
    {
        $cacheId = \md5(__FUNCTION__ . $search);
        if (!$this->cachePool->has($cacheId)) {
            $fileContent = $git->show()->execute($search);

            $this->cachePool->set($cacheId, $fileContent);

            return $fileContent;
        }

        return $this->cachePool->get($cacheId);
    }
private function getFileContent ( $ search , GitRepository $ git ) { $ cacheId = \ md5 ( __FUNCTION__ . $ search ) ; if ( ! $ this -> cachePool -> has ( $ cacheId ) ) { $ fileContent = $ git -> show ( ) -> execute ( $ search ) ; $ this -> cachePool -> set ( $ cacheId , $ fileContent ) ; return $ fileContent ; } return $ this -> cachePool -> get ( $ cacheId ) ; }
Get the file content.

@param string        $search The search key (COMMIT:FILE_PATH).
@param GitRepository $git    The git repository.

@return string
Get the file content .