瀏覽代碼

protected unused methods.

xaav 13 年之前
父節點
當前提交
2213b21002
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/Packagist/WebBundle/Repository/Repository/GitRepository.php

+ 3 - 3
src/Packagist/WebBundle/Repository/Repository/GitRepository.php

@@ -17,12 +17,12 @@ class GitRepository implements RepositoryInterface
     /**
      * @deprecated
      */
-    public function getComposerFile($hash)
+    protected function getComposerFile($hash)
     {
         return json_decode(file_get_contents('https://raw.github.com/'.$this->owner.'/'.$this->repository.'/'.$hash.'/composer.json'), true);
     }
 
-    public function getRepoData()
+    protected function getRepoData()
     {
         return json_decode(file_get_contents('http://github.com/api/v2/json/repos/show/'.$this->owner.'/'.$this->repository), true);
     }
@@ -30,7 +30,7 @@ class GitRepository implements RepositoryInterface
     /**
      * @deprecated
      */
-    public function getTagsData()
+    protected function getTagsData()
     {
         return json_decode(file_get_contents('http://github.com/api/v2/json/repos/show/'.$this->owner.'/'.$this->repository.'/tags'), true);
     }