Пример #1
0
 private function getReadmeFile($path, $node, $commit_sha1)
 {
     $files_list = $this->git_exec->lsTree($commit_sha1, $node);
     $markdown_files_list = array_values(preg_grep('/^readme\\.(markdown|mdown|mkdn|md|mkd|mdwn|mdtxt|mdtext|text)$/i', $files_list));
     if (isset($markdown_files_list[0])) {
         return $markdown_files_list[0];
     }
     return false;
 }