Skip to content

Add missing parameter types #763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions lib/Github/Api/Authorizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function all()
/**
* Show a single authorization.
*
* @param $clientId
* @param string $clientId
*
* @return array
*/
Expand All @@ -51,8 +51,8 @@ public function create(array $params, $OTPCode = null)
/**
* Update an authorization.
*
* @param $clientId
* @param array $params
* @param string $clientId
* @param array $params
*
* @return array
*/
Expand All @@ -64,7 +64,7 @@ public function update($clientId, array $params)
/**
* Remove an authorization.
*
* @param $clientId
* @param string $clientId
*
* @return array
*/
Expand All @@ -76,8 +76,8 @@ public function remove($clientId)
/**
* Check an authorization.
*
* @param $clientId
* @param $token
* @param string $clientId
* @param string $token
*
* @return array
*/
Expand All @@ -89,8 +89,8 @@ public function check($clientId, $token)
/**
* Reset an authorization.
*
* @param $clientId
* @param $token
* @param string $clientId
* @param string $token
*
* @return array
*/
Expand All @@ -102,8 +102,8 @@ public function reset($clientId, $token)
/**
* Remove an authorization.
*
* @param $clientId
* @param $token
* @param string $clientId
* @param string $token
*/
public function revoke($clientId, $token)
{
Expand All @@ -113,7 +113,7 @@ public function revoke($clientId, $token)
/**
* Revoke all authorizations.
*
* @param $clientId
* @param string $clientId
*/
public function revokeAll($clientId)
{
Expand Down
6 changes: 3 additions & 3 deletions lib/Github/Api/Issue/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public function all($username, $repository, $issue = null, $page = 1)
*
* @link https://developer.github.com/v3/issues/events/#get-a-single-event
*
* @param $username
* @param $repository
* @param $event
* @param string $username
* @param string $repository
* @param string $event
*
* @return array
*/
Expand Down
6 changes: 3 additions & 3 deletions lib/Github/Api/Organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ public function teams()
/**
* @link http://developer.github.com/v3/issues/#list-issues
*
* @param $organization
* @param array $params
* @param int $page
* @param string $organization
* @param array $params
* @param int $page
*
* @return array
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Github/Api/PullRequest/Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Comments extends AbstractApi
* @link https://developer.github.com/v3/pulls/comments/#custom-media-types
*
* @param string|null $bodyType
* @param string|null @apiVersion
* @param string|null $apiVersion
*
* @return self
*/
Expand Down
32 changes: 16 additions & 16 deletions lib/Github/Api/Repository/Collaborators.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ class Collaborators extends AbstractApi
/**
* @link https://developer.github.com/v3/repos/collaborators/#list-collaborators
*
* @param $username
* @param $repository
* @param array $params
* @param string $username
* @param string $repository
* @param array $params
*
* @return array|string
*/
Expand All @@ -28,9 +28,9 @@ public function all($username, $repository, array $params = [])
/**
* @link https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator
*
* @param $username
* @param $repository
* @param $collaborator
* @param string $username
* @param string $repository
* @param string $collaborator
*
* @return array|string
*/
Expand All @@ -42,10 +42,10 @@ public function check($username, $repository, $collaborator)
/**
* @link https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator
*
* @param $username
* @param $repository
* @param $collaborator
* @param array $params
* @param string $username
* @param string $repository
* @param string $collaborator
* @param array $params
*
* @return array|string
*/
Expand All @@ -57,9 +57,9 @@ public function add($username, $repository, $collaborator, array $params = [])
/**
* @link https://developer.github.com/v3/repos/collaborators/#remove-user-as-a-collaborator
*
* @param $username
* @param $repository
* @param $collaborator
* @param string $username
* @param string $repository
* @param string $collaborator
*
* @return array|string
*/
Expand All @@ -71,9 +71,9 @@ public function remove($username, $repository, $collaborator)
/**
* @link https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level
*
* @param $username
* @param $repository
* @param $collaborator
* @param string $username
* @param string $repository
* @param string $collaborator
*
* @return array|string
*/
Expand Down
10 changes: 5 additions & 5 deletions lib/Github/Api/Repository/Releases.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Releases extends AbstractApi
/**
* Get the latest release.
*
* @param $username
* @param $repository
* @param string $username
* @param string $repository
*
* @return array
*/
Expand All @@ -29,9 +29,9 @@ public function latest($username, $repository)
/**
* List releases for a tag.
*
* @param $username
* @param $repository
* @param $tag
* @param string $username
* @param string $repository
* @param string $tag
*
* @return array
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Github/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public function getApiVersion()
/**
* Add a cache plugin to cache responses locally.
*
* @param CacheItemPoolInterface $cache
* @param CacheItemPoolInterface $cachePool
* @param array $config
*/
public function addCache(CacheItemPoolInterface $cachePool, array $config = [])
Expand Down