Skip to content

Commit c842fcc

Browse files
authored
Merge pull request #763 from acrobat/add-missing-parameter-types
Add missing parameter types
2 parents 53acae4 + 0efd4f5 commit c842fcc

File tree

7 files changed

+40
-40
lines changed

7 files changed

+40
-40
lines changed

lib/Github/Api/Authorizations.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function all()
2424
/**
2525
* Show a single authorization.
2626
*
27-
* @param $clientId
27+
* @param string $clientId
2828
*
2929
* @return array
3030
*/
@@ -51,8 +51,8 @@ public function create(array $params, $OTPCode = null)
5151
/**
5252
* Update an authorization.
5353
*
54-
* @param $clientId
55-
* @param array $params
54+
* @param string $clientId
55+
* @param array $params
5656
*
5757
* @return array
5858
*/
@@ -64,7 +64,7 @@ public function update($clientId, array $params)
6464
/**
6565
* Remove an authorization.
6666
*
67-
* @param $clientId
67+
* @param string $clientId
6868
*
6969
* @return array
7070
*/
@@ -76,8 +76,8 @@ public function remove($clientId)
7676
/**
7777
* Check an authorization.
7878
*
79-
* @param $clientId
80-
* @param $token
79+
* @param string $clientId
80+
* @param string $token
8181
*
8282
* @return array
8383
*/
@@ -89,8 +89,8 @@ public function check($clientId, $token)
8989
/**
9090
* Reset an authorization.
9191
*
92-
* @param $clientId
93-
* @param $token
92+
* @param string $clientId
93+
* @param string $token
9494
*
9595
* @return array
9696
*/
@@ -102,8 +102,8 @@ public function reset($clientId, $token)
102102
/**
103103
* Remove an authorization.
104104
*
105-
* @param $clientId
106-
* @param $token
105+
* @param string $clientId
106+
* @param string $token
107107
*/
108108
public function revoke($clientId, $token)
109109
{
@@ -113,7 +113,7 @@ public function revoke($clientId, $token)
113113
/**
114114
* Revoke all authorizations.
115115
*
116-
* @param $clientId
116+
* @param string $clientId
117117
*/
118118
public function revokeAll($clientId)
119119
{

lib/Github/Api/Issue/Events.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public function all($username, $repository, $issue = null, $page = 1)
4141
*
4242
* @link https://developer.github.com/v3/issues/events/#get-a-single-event
4343
*
44-
* @param $username
45-
* @param $repository
46-
* @param $event
44+
* @param string $username
45+
* @param string $repository
46+
* @param string $event
4747
*
4848
* @return array
4949
*/

lib/Github/Api/Organization.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ public function teams()
9191
/**
9292
* @link http://developer.github.com/v3/issues/#list-issues
9393
*
94-
* @param $organization
95-
* @param array $params
96-
* @param int $page
94+
* @param string $organization
95+
* @param array $params
96+
* @param int $page
9797
*
9898
* @return array
9999
*/

lib/Github/Api/PullRequest/Comments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Comments extends AbstractApi
2121
* @link https://developer.github.com/v3/pulls/comments/#custom-media-types
2222
*
2323
* @param string|null $bodyType
24-
* @param string|null @apiVersion
24+
* @param string|null $apiVersion
2525
*
2626
* @return self
2727
*/

lib/Github/Api/Repository/Collaborators.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class Collaborators extends AbstractApi
1414
/**
1515
* @link https://developer.github.com/v3/repos/collaborators/#list-collaborators
1616
*
17-
* @param $username
18-
* @param $repository
19-
* @param array $params
17+
* @param string $username
18+
* @param string $repository
19+
* @param array $params
2020
*
2121
* @return array|string
2222
*/
@@ -28,9 +28,9 @@ public function all($username, $repository, array $params = [])
2828
/**
2929
* @link https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator
3030
*
31-
* @param $username
32-
* @param $repository
33-
* @param $collaborator
31+
* @param string $username
32+
* @param string $repository
33+
* @param string $collaborator
3434
*
3535
* @return array|string
3636
*/
@@ -42,10 +42,10 @@ public function check($username, $repository, $collaborator)
4242
/**
4343
* @link https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator
4444
*
45-
* @param $username
46-
* @param $repository
47-
* @param $collaborator
48-
* @param array $params
45+
* @param string $username
46+
* @param string $repository
47+
* @param string $collaborator
48+
* @param array $params
4949
*
5050
* @return array|string
5151
*/
@@ -57,9 +57,9 @@ public function add($username, $repository, $collaborator, array $params = [])
5757
/**
5858
* @link https://developer.github.com/v3/repos/collaborators/#remove-user-as-a-collaborator
5959
*
60-
* @param $username
61-
* @param $repository
62-
* @param $collaborator
60+
* @param string $username
61+
* @param string $repository
62+
* @param string $collaborator
6363
*
6464
* @return array|string
6565
*/
@@ -71,9 +71,9 @@ public function remove($username, $repository, $collaborator)
7171
/**
7272
* @link https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level
7373
*
74-
* @param $username
75-
* @param $repository
76-
* @param $collaborator
74+
* @param string $username
75+
* @param string $repository
76+
* @param string $collaborator
7777
*
7878
* @return array|string
7979
*/

lib/Github/Api/Repository/Releases.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class Releases extends AbstractApi
1616
/**
1717
* Get the latest release.
1818
*
19-
* @param $username
20-
* @param $repository
19+
* @param string $username
20+
* @param string $repository
2121
*
2222
* @return array
2323
*/
@@ -29,9 +29,9 @@ public function latest($username, $repository)
2929
/**
3030
* List releases for a tag.
3131
*
32-
* @param $username
33-
* @param $repository
34-
* @param $tag
32+
* @param string $username
33+
* @param string $repository
34+
* @param string $tag
3535
*
3636
* @return array
3737
*/

lib/Github/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public function getApiVersion()
361361
/**
362362
* Add a cache plugin to cache responses locally.
363363
*
364-
* @param CacheItemPoolInterface $cache
364+
* @param CacheItemPoolInterface $cachePool
365365
* @param array $config
366366
*/
367367
public function addCache(CacheItemPoolInterface $cachePool, array $config = [])

0 commit comments

Comments
 (0)