Skip to content

Fixed CS #54

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 2 commits into from
Aug 31, 2013
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
2 changes: 1 addition & 1 deletion lib/Github/Api/CurrentUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function watched($page = 1)
'page' => $page
));
}

/**
* @link http://developer.github.com/changes/2012-9-5-watcher-api/
*/
Expand Down
8 changes: 4 additions & 4 deletions lib/Github/Api/CurrentUser/Followers.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Followers extends AbstractApi
* List followed users by the authenticated user
* @link http://developer.github.com/v3/repos/followers/
*
* @param integer $page
* @param integer $page
* @return array
*/
public function all($page = 1)
Expand All @@ -28,7 +28,7 @@ public function all($page = 1)
* Check that the authenticated user follows a user
* @link http://developer.github.com/v3/repos/followers/
*
* @param string $username the username to follow
* @param string $username the username to follow
* @return array
*/
public function check($username)
Expand All @@ -40,7 +40,7 @@ public function check($username)
* Make the authenticated user follow a user
* @link http://developer.github.com/v3/repos/followers/
*
* @param string $username the username to follow
* @param string $username the username to follow
* @return array
*/
public function follow($username)
Expand All @@ -52,7 +52,7 @@ public function follow($username)
* Make the authenticated user un-follow a user
* @link http://developer.github.com/v3/repos/followers/
*
* @param string $username the username to un-follow
* @param string $username the username to un-follow
* @return array
*/
public function unfollow($username)
Expand Down
30 changes: 15 additions & 15 deletions lib/Github/Api/CurrentUser/Notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Notifications extends AbstractApi
* List all notifications for the authenticated user
* @link http://developer.github.com/v3/activity/notifications/#list-your-notifications
*
* @param array $params
* @param array $params
* @return array
*/
public function all(array $params = array())
Expand All @@ -26,9 +26,9 @@ public function all(array $params = array())
* List all notifications for the authenticated user in selected repository
* @link http://developer.github.com/v3/activity/notifications/#list-your-notifications-in-a-repository
*
* @param string $username the user who owns the repo
* @param string $repository the name of the repo
* @param array $params
* @param string $username the user who owns the repo
* @param string $repository the name of the repo
* @param array $params
* @return array
*/
public function allInRepository($username, $repository, array $params = array())
Expand All @@ -39,7 +39,7 @@ public function allInRepository($username, $repository, array $params = array())
/**
* @link http://developer.github.com/v3/activity/notifications/#mark-as-read
*
* @param array $params
* @param array $params
* @return array
*/
public function markAsReadAll(array $params = array())
Expand All @@ -50,9 +50,9 @@ public function markAsReadAll(array $params = array())
/**
* @link http://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository
*
* @param string $username the user who owns the repo
* @param string $repository the name of the repo
* @param array $params
* @param string $username the user who owns the repo
* @param string $repository the name of the repo
* @param array $params
* @return array
*/
public function markAsReadInRepository($username, $repository, array $params = array())
Expand All @@ -63,8 +63,8 @@ public function markAsReadInRepository($username, $repository, array $params = a
/**
* @link http://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read
*
* @param string $id the notification number
* @param array $params
* @param string $id the notification number
* @param array $params
* @return array
*/
public function markAsRead($id, array $params)
Expand All @@ -75,7 +75,7 @@ public function markAsRead($id, array $params)
/**
* @link http://developer.github.com/v3/activity/notifications/#view-a-single-thread
*
* @param string $id the notification number
* @param string $id the notification number
* @return array
*/
public function show($id)
Expand All @@ -86,7 +86,7 @@ public function show($id)
/**
* @link http://developer.github.com/v3/activity/notifications/#get-a-thread-subscription
*
* @param string $id the notification number
* @param string $id the notification number
* @return array
*/
public function showSubscription($id)
Expand All @@ -97,8 +97,8 @@ public function showSubscription($id)
/**
* @link http://developer.github.com/v3/activity/notifications/#set-a-thread-subscription
*
* @param string $id the notification number
* @param array $params
* @param string $id the notification number
* @param array $params
* @return array
*/
public function createSubscription($id, array $params)
Expand All @@ -109,7 +109,7 @@ public function createSubscription($id, array $params)
/**
* @link http://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription
*
* @param string $id the notification number
* @param string $id the notification number
* @return array
*/
public function removeSubscription($id)
Expand Down
14 changes: 7 additions & 7 deletions lib/Github/Api/CurrentUser/Watchers.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Watchers extends AbstractApi
* List repositories watched by the authenticated user
* @link http://developer.github.com/v3/repos/watching/
*
* @param integer $page
* @param integer $page
* @return array
*/
public function all($page = 1)
Expand All @@ -28,8 +28,8 @@ public function all($page = 1)
* Check that the authenticated user watches a repository
* @link http://developer.github.com/v3/repos/watching/
*
* @param string $username the user who owns the repo
* @param string $repository the name of the repo
* @param string $username the user who owns the repo
* @param string $repository the name of the repo
* @return array
*/
public function check($username, $repository)
Expand All @@ -41,8 +41,8 @@ public function check($username, $repository)
* Make the authenticated user watch a repository
* @link http://developer.github.com/v3/repos/watching/
*
* @param string $username the user who owns the repo
* @param string $repository the name of the repo
* @param string $username the user who owns the repo
* @param string $repository the name of the repo
* @return array
*/
public function watch($username, $repository)
Expand All @@ -54,8 +54,8 @@ public function watch($username, $repository)
* Make the authenticated user unwatch a repository
* @link http://developer.github.com/v3/repos/watching/
*
* @param string $username the user who owns the repo
* @param string $repository the name of the repo
* @param string $username the user who owns the repo
* @param string $repository the name of the repo
* @return array
*/
public function unwatch($username, $repository)
Expand Down
54 changes: 27 additions & 27 deletions lib/Github/Api/Issue.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ class Issue extends AbstractApi
* List issues by username, repo and state
* @link http://developer.github.com/v3/issues/
*
* @param string $username the username
* @param string $repository the repository
* @param array $params the additional parameters like milestone, assignees, labels, sort, direction
* @return array list of issues found
* @param string $username the username
* @param string $repository the repository
* @param array $params the additional parameters like milestone, assignees, labels, sort, direction
* @return array list of issues found
*/
public function all($username, $repository, array $params = array())
{
Expand All @@ -35,12 +35,12 @@ public function all($username, $repository, array $params = array())
* Search issues by username, repo, state and keyword
* @link http://developer.github.com/v3/search/#search-issues
*
* @param string $username the username
* @param string $repository the repository
* @param string $state the issue state, can be open or closed
* @param string $keyword the keyword to filter issues by
* @param string $username the username
* @param string $repository the repository
* @param string $state the issue state, can be open or closed
* @param string $keyword the keyword to filter issues by
*
* @return array list of issues found
* @return array list of issues found
*/
public function find($username, $repository, $state, $keyword)
{
Expand All @@ -55,10 +55,10 @@ public function find($username, $repository, $state, $keyword)
* List issues by organization
* @link http://developer.github.com/v3/issues/
*
* @param string $organization the organization
* @param string $state the issue state, can be open or closed
* @param array $params the additional parameters like milestone, assignees, labels, sort, direction
* @return array list of issues found
* @param string $organization the organization
* @param string $state the issue state, can be open or closed
* @param array $params the additional parameters like milestone, assignees, labels, sort, direction
* @return array list of issues found
*/
public function org($organization, $state, array $params = array())
{
Expand All @@ -73,10 +73,10 @@ public function org($organization, $state, array $params = array())
* Get extended information about an issue by its username, repo and number
* @link http://developer.github.com/v3/issues/
*
* @param string $username the username
* @param string $repository the repository
* @param string $id the issue number
* @return array information about the issue
* @param string $username the username
* @param string $repository the repository
* @param string $id the issue number
* @return array information about the issue
*/
public function show($username, $repository, $id)
{
Expand All @@ -88,10 +88,10 @@ public function show($username, $repository, $id)
* The issue is assigned to the authenticated user. Requires authentication.
* @link http://developer.github.com/v3/issues/
*
* @param string $username the username
* @param string $repository the repository
* @param array $params the new issue data
* @return array information about the issue
* @param string $username the username
* @param string $repository the repository
* @param array $params the new issue data
* @return array information about the issue
*
* @throws MissingArgumentException
*/
Expand All @@ -108,12 +108,12 @@ public function create($username, $repository, array $params)
* Update issue information's by username, repo and issue number. Requires authentication.
* @link http://developer.github.com/v3/issues/
*
* @param string $username the username
* @param string $repository the repository
* @param string $id the issue number
* @param array $params key=>value user attributes to update.
* key can be title or body
* @return array information about the issue
* @param string $username the username
* @param string $repository the repository
* @param string $id the issue number
* @param array $params key=>value user attributes to update.
* key can be title or body
* @return array information about the issue
*/
public function update($username, $repository, $id, array $params)
{
Expand Down
10 changes: 5 additions & 5 deletions lib/Github/Api/Organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class Organization extends AbstractApi
* Get extended information about an organization by its name
* @link http://developer.github.com/v3/orgs/#get
*
* @param string $organization the organization to show
* @param string $organization the organization to show
*
* @return array informations about the organization
* @return array informations about the organization
*/
public function show($organization)
{
Expand All @@ -36,10 +36,10 @@ public function update($organization, array $params)
* List all repositories across all the organizations that you can access
* @link http://developer.github.com/v3/repos/#list-organization-repositories
*
* @param string $organization the user name
* @param string $type the type of repositories
* @param string $organization the user name
* @param string $type the type of repositories
*
* @return array the repositories
* @return array the repositories
*/
public function repositories($organization, $type = 'all')
{
Expand Down
36 changes: 18 additions & 18 deletions lib/Github/Api/PullRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ class PullRequest extends AbstractApi
* Get a listing of a project's pull requests by the username, repository and (optionally) state.
* @link http://developer.github.com/v3/pulls/
*
* @param string $username the username
* @param string $repository the repository
* @param string $state the state of the fetched pull requests.
* The API seems to automatically default to 'open'
* @param integer $page the page
* @param integer $perPage the per page
* @param string $username the username
* @param string $repository the repository
* @param string $state the state of the fetched pull requests.
* The API seems to automatically default to 'open'
* @param integer $page the page
* @param integer $perPage the per page
*
* @return array array of pull requests for the project
* @return array array of pull requests for the project
*/
public function all($username, $repository, $state = null, $page = 1, $perPage = 30)
{
Expand All @@ -41,11 +41,11 @@ public function all($username, $repository, $state = null, $page = 1, $perPage =
* Show all details of a pull request, including the discussions.
* @link http://developer.github.com/v3/pulls/
*
* @param string $username the username
* @param string $repository the repository
* @param string $id the ID of the pull request for which details are retrieved
* @param string $username the username
* @param string $repository the repository
* @param string $id the ID of the pull request for which details are retrieved
*
* @return array array of pull requests for the project
* @return array array of pull requests for the project
*/
public function show($username, $repository, $id)
{
Expand All @@ -71,13 +71,13 @@ public function comments()
* Create a pull request
* @link http://developer.github.com/v3/pulls/
*
* @param string $username the username
* @param string $repository the repository
* @param array $params A String of the branch or commit SHA that you want your changes to be pulled to.
* A String of the branch or commit SHA of your changes. Typically this will be a branch.
* If the branch is in a fork of the original repository, specify the username first:
* "my-user:some-branch". The String title of the Pull Request. The String body of
* the Pull Request. The issue number. Used when title and body is not set.
* @param string $username the username
* @param string $repository the repository
* @param array $params A String of the branch or commit SHA that you want your changes to be pulled to.
* A String of the branch or commit SHA of your changes. Typically this will be a branch.
* If the branch is in a fork of the original repository, specify the username first:
* "my-user:some-branch". The String title of the Pull Request. The String body of
* the Pull Request. The issue number. Used when title and body is not set.
*
* @return array
*
Expand Down
Loading