Skip to content

Commit d6602e7

Browse files
committed
Some fixes
1 parent 989549a commit d6602e7

32 files changed

+65
-94
lines changed

lib/Github/Api/Repository/Assets.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Github\Api\AbstractApi;
66
use Github\Exception\ErrorException;
77
use Github\Exception\MissingArgumentException;
8-
use Github\HttpClient\HttpClient;
98

109
/**
1110
* @link http://developer.github.com/v3/repos/releases/

lib/Github/Api/Repository/Contents.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ public function update($username, $repository, $path, $content, $message, $sha,
173173
return $this->put($url, $parameters);
174174
}
175175

176-
177176
/**
178177
* Deletes a file from a repository.
179178
*

lib/Github/Api/Search.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
namespace Github\Api;
44

5-
use Github\Api\Issue\Comments;
6-
use Github\Api\Issue\Events;
7-
use Github\Api\Issue\Labels;
8-
use Github\Api\Issue\Milestones;
9-
use Github\Exception\MissingArgumentException;
10-
115
/**
126
* Implement the Search API.
137
*

lib/Github/HttpClient/Listener/ErrorListener.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Github\Exception\TwoFactorAuthenticationRequiredException;
66
use Github\HttpClient\Message\ResponseMediator;
77
use Guzzle\Common\Event;
8-
use Guzzle\Http\Message\Response;
98
use Github\Exception\ApiLimitExceedException;
109
use Github\Exception\ErrorException;
1110
use Github\Exception\RuntimeException;

test/Github/Tests/Api/CurrentUser/DeployKeysTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class DeployKeysTest extends TestCase
86
{
97
/**
@@ -57,7 +55,7 @@ public function shouldCreateKey()
5755

5856
/**
5957
* @test
60-
* @expectedException Github\Exception\MissingArgumentException
58+
* @expectedException \Github\Exception\MissingArgumentException
6159
*/
6260
public function shouldNotCreateKeyWithoutTitleParam()
6361
{
@@ -72,7 +70,7 @@ public function shouldNotCreateKeyWithoutTitleParam()
7270

7371
/**
7472
* @test
75-
* @expectedException Github\Exception\MissingArgumentException
73+
* @expectedException \Github\Exception\MissingArgumentException
7674
*/
7775
public function shouldNotCreateKeyWithoutKeyParam()
7876
{
@@ -104,7 +102,7 @@ public function shouldUpdateKey()
104102

105103
/**
106104
* @test
107-
* @expectedException Github\Exception\MissingArgumentException
105+
* @expectedException \Github\Exception\MissingArgumentException
108106
*/
109107
public function shouldNotUpdateKeyWithoutTitleParam()
110108
{
@@ -119,7 +117,7 @@ public function shouldNotUpdateKeyWithoutTitleParam()
119117

120118
/**
121119
* @test
122-
* @expectedException Github\Exception\MissingArgumentException
120+
* @expectedException \Github\Exception\MissingArgumentException
123121
*/
124122
public function shouldNotUpdateKeyWithoutKeyParam()
125123
{

test/Github/Tests/Api/CurrentUser/EmailsTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class EmailsTest extends TestCase
86
{
97
/**
@@ -56,7 +54,7 @@ public function shouldRemoveEmails()
5654

5755
/**
5856
* @test
59-
* @expectedException Github\Exception\InvalidArgumentException
57+
* @expectedException \Github\Exception\InvalidArgumentException
6058
*/
6159
public function shouldNotRemoveEmailsWhenAreNotPass()
6260
{
@@ -101,7 +99,7 @@ public function shouldAddEmails()
10199

102100
/**
103101
* @test
104-
* @expectedException Github\Exception\InvalidArgumentException
102+
* @expectedException \Github\Exception\InvalidArgumentException
105103
*/
106104
public function shouldNotAddEmailsWhenAreNotPass()
107105
{

test/Github/Tests/Api/CurrentUser/FollowersTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class FollowersTest extends TestCase
86
{
97
/**

test/Github/Tests/Api/CurrentUser/StarringTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class StarringTest extends TestCase
86
{
97
/**

test/Github/Tests/Api/CurrentUser/WatchersTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class WatchersTest extends TestCase
86
{
97
/**

test/Github/Tests/Api/CurrentUserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function shouldGetWatchersApiObject()
133133

134134
$this->assertInstanceOf('Github\Api\CurrentUser\Watchers', $api->watchers());
135135
}
136-
136+
137137
/**
138138
* @test
139139
*/

0 commit comments

Comments
 (0)