Skip to content

Commit b379e37

Browse files
committed
Changes order of getters in Api class to be alphabetical.
1 parent 5c3d958 commit b379e37

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Api.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff 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 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

0 commit comments

Comments
 (0)