Skip to content

Commit 9bbfe66

Browse files
committed
CS.
1 parent 9348866 commit 9bbfe66

File tree

9 files changed

+3
-16
lines changed

9 files changed

+3
-16
lines changed

.scrutinizer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ build:
1818
command: phpunit --coverage-clover=my-coverage-file
1919
coverage:
2020
file: my-coverage-file
21-
format: php-clover
21+
format: php-clover

src/Core/AbstractAPI.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@ public function setAccessToken(AccessToken $accessToken)
117117
*
118118
* @param string $method
119119
* @param array $args
120-
* @param bool $throws
121120
*
122121
* @return \EasyWeChat\Support\Collection
123122
*/
124-
public function parseJSON($method, array $args, $throws = true)
123+
public function parseJSON($method, array $args)
125124
{
126125
$http = $this->getHttp();
127126

src/Core/Http.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
use EasyWeChat\Support\Log;
2626
use GuzzleHttp\Client as HttpClient;
2727
use GuzzleHttp\HandlerStack;
28-
use GuzzleHttp\Psr7\Request;
29-
use GuzzleHttp\Psr7\Response;
3028
use Psr\Http\Message\ResponseInterface;
3129

3230
/**
@@ -212,13 +210,12 @@ public function request($url, $method = 'GET', $options = [])
212210

213211
/**
214212
* @param \Psr\Http\Message\ResponseInterface|string $body
215-
* @param bool|true $throws
216213
*
217214
* @return mixed
218215
*
219216
* @throws \EasyWeChat\Core\Exceptions\HttpException
220217
*/
221-
public function parseJSON($body, $throws = true)
218+
public function parseJSON($body)
222219
{
223220
if ($body instanceof ResponseInterface) {
224221
$body = $body->getBody();

src/Js/Js.php

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
use Doctrine\Common\Cache\Cache;
2424
use Doctrine\Common\Cache\FilesystemCache;
2525
use EasyWeChat\Core\AbstractAPI;
26-
use EasyWeChat\Core\Http;
2726
use EasyWeChat\Support\Str;
2827
use EasyWeChat\Support\Url as UrlHelper;
2928

src/Material/Material.php

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
use EasyWeChat\Core\AbstractAPI;
2424
use EasyWeChat\Core\Exceptions\InvalidArgumentException;
25-
use EasyWeChat\Core\Http;
2625
use EasyWeChat\Message\Article;
2726

2827
/**

src/Material/Temporary.php

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
use EasyWeChat\Core\AbstractAPI;
2424
use EasyWeChat\Core\Exceptions\InvalidArgumentException;
2525
use EasyWeChat\Core\Exceptions\RuntimeException;
26-
use EasyWeChat\Core\Http;
2726
use EasyWeChat\Support\File;
2827

2928
/**

src/Staff/Staff.php

-4
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ public function update($email, $nickname, $password)
104104
*/
105105
public function delete($email)
106106
{
107-
$params = [
108-
'kf_account' => $email,
109-
];
110-
111107
return $this->parseJSON('get', [sprintf(self::API_DELETE.'?kf_account=%s', $email)]);
112108
}
113109

src/Url/Url.php

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
namespace EasyWeChat\Url;
2222

2323
use EasyWeChat\Core\AbstractAPI;
24-
use EasyWeChat\Core\Http;
2524

2625
/**
2726
* Class Url.

src/User/User.php

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
namespace EasyWeChat\User;
2222

2323
use EasyWeChat\Core\AbstractAPI;
24-
use EasyWeChat\Core\Http;
2524

2625
/**
2726
* Class User.

0 commit comments

Comments
 (0)