File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -66,36 +66,36 @@ private function getApi($name)
6666 }
6767
6868 /**
69- * @return GitData
69+ * @return \Github\Api\Repository\Contents
7070 *
7171 * @throws \Github\Exception\InvalidArgumentException
7272 */
73- private function getGitDataApi ()
73+ private function getContentApi ()
7474 {
75- return $ this ->getApi (self ::API_GIT_DATA );
75+ if ($ this ->contents === null ) {
76+ $ this ->contents = $ this ->getRepositoryApi ()->contents ();
77+ }
78+ return $ this ->contents ;
7679 }
7780
7881 /**
79- * @return Repo
82+ * @return GitData
8083 *
8184 * @throws \Github\Exception\InvalidArgumentException
8285 */
83- private function getRepositoryApi ()
86+ private function getGitDataApi ()
8487 {
85- return $ this ->getApi (self ::API_REPO );
88+ return $ this ->getApi (self ::API_GIT_DATA );
8689 }
8790
8891 /**
89- * @return \Github\Api\Repository\Contents
92+ * @return Repo
9093 *
9194 * @throws \Github\Exception\InvalidArgumentException
9295 */
93- private function getContentApi ()
96+ private function getRepositoryApi ()
9497 {
95- if ($ this ->contents === null ) {
96- $ this ->contents = $ this ->getRepositoryApi ()->contents ();
97- }
98- return $ this ->contents ;
98+ return $ this ->getApi (self ::API_REPO );
9999 }
100100
101101 //////////////////////////////// PUBLIC API \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
You can’t perform that action at this time.
0 commit comments