示例#1
0
 public function getBranches()
 {
     $user_repo = $this->repo->getUser() . '/' . $this->repo->getRepo();
     $item =& self::$Branches[$user_repo];
     if ($item) {
         return $item;
     }
     $url = 'https://api.github.com/repos/' . $user_repo . '/branches';
     $item = $this->getResponse($url);
     return $item;
 }