Skip to content
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
1 change: 1 addition & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ preset: psr2

enabled:
- long_array_syntax
- return
1 change: 1 addition & 0 deletions lib/Github/Api/Deployment.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public function updateStatus($username, $repository, $id, array $params)
if (!isset($params['state'])) {
throw new MissingArgumentException(array('state'));
}

return $this->post('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/deployments/'.rawurlencode($id).'/statuses', $params);
}

Expand Down
1 change: 1 addition & 0 deletions lib/Github/Api/Repository/Commits.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function compare($username, $repository, $base, $head, $mediaType = null)
if (null !== $mediaType) {
$headers['Accept'] = $mediaType;
}

return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/compare/'.rawurlencode($base).'...'.rawurlencode($head), array(), $headers);
}

Expand Down
1 change: 1 addition & 0 deletions lib/Github/Api/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function all($id = null)
if (!is_int($id)) {
return $this->get('users');
}

return $this->get('users?since=' . rawurldecode($id));
}

Expand Down