Skip to content

Commit c297da1

Browse files
committed
Fix code
1 parent e30fc95 commit c297da1

File tree

9 files changed

+18
-19
lines changed

9 files changed

+18
-19
lines changed

lib/Github/Api/ApiInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
interface ApiInterface
1111
{
12-
1312
public function getPerPage();
1413

1514
public function setPerPage($perPage);

lib/Github/Api/Deployment.php

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Deployment extends AbstractApi
2121
* @return array the deployments requested
2222
*/
2323
public function all($username, $repository, array $params = array())
24-
{
24+
{
2525
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/deployments', $params);
2626
}
2727

@@ -41,11 +41,11 @@ public function all($username, $repository, array $params = array())
4141
*/
4242
public function create($username, $repository, array $params)
4343
{
44-
if (!isset($params['ref'])) {
45-
throw new MissingArgumentException(array('ref'));
46-
}
44+
if (!isset($params['ref'])) {
45+
throw new MissingArgumentException(array('ref'));
46+
}
4747

48-
return $this->post('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/deployments', $params);
48+
return $this->post('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/deployments', $params);
4949
}
5050

5151
/**
@@ -64,10 +64,10 @@ public function create($username, $repository, array $params)
6464
*/
6565
public function updateStatus($username, $repository, $id, array $params)
6666
{
67-
if (!isset($params['state'])) {
68-
throw new MissingArgumentException(array('state'));
69-
}
70-
return $this->post('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/deployments/'.rawurlencode($id).'/statuses', $params);
67+
if (!isset($params['state'])) {
68+
throw new MissingArgumentException(array('state'));
69+
}
70+
return $this->post('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/deployments/'.rawurlencode($id).'/statuses', $params);
7171
}
7272

7373
/**
@@ -78,7 +78,8 @@ public function updateStatus($username, $repository, $id, array $params)
7878
* @param int $id the deployment identifier
7979
* @return array the deployment statuses
8080
*/
81-
public function getStatuses($username, $repository, $id) {
81+
public function getStatuses($username, $repository, $id)
82+
{
8283
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/deployments/'.rawurlencode($id).'/statuses');
8384
}
8485
}

lib/Github/Api/Gist/Comments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ public function remove($gist, $comment)
3434
{
3535
return $this->delete('gists/'.rawurlencode($gist).'/comments/'.rawurlencode($comment));
3636
}
37-
}
37+
}

lib/Github/Api/Notification.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function all($includingRead = false, $participating = false, DateTime $si
3232
'participating' => $participating
3333
);
3434

35-
if($since !== null) {
35+
if ($since !== null) {
3636
$parameters['since'] = $since->format(DateTime::ISO8601);
3737
}
3838

@@ -51,7 +51,7 @@ public function markRead(DateTime $since = null)
5151
{
5252
$parameters = array();
5353

54-
if($since !== null) {
54+
if ($since !== null) {
5555
$parameters['last_read_at'] = $since->format(DateTime::ISO8601);
5656
}
5757

lib/Github/Api/Repository/Releases.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Releases extends AbstractApi
1717
*
1818
* @param $username
1919
* @param $repository
20-
*
20+
*
2121
* @return array
2222
*/
2323
public function latest($username, $repository)

lib/Github/Api/Search.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717
class Search extends AbstractApi
1818
{
19-
2019
/**
2120
* Search repositories by filter (q).
2221
*

test/Github/Tests/Api/Enterprise/UserAdminTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ protected function getApiClass()
4040
{
4141
return 'Github\Api\Enterprise\UserAdmin';
4242
}
43-
}
43+
}

test/Github/Tests/Api/Gist/CommentsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ protected function getApiClass()
9191
{
9292
return 'Github\Api\Gist\Comments';
9393
}
94-
}
94+
}

test/Github/Tests/Api/GistsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,4 @@ protected function getApiClass()
242242
{
243243
return 'Github\Api\Gists';
244244
}
245-
}
245+
}

0 commit comments

Comments
 (0)