Permalink
Browse files

CS.

  • Loading branch information...
1 parent 9348866 commit 9bbfe6635be51cdb8bd8fee1adc8136bb73da034 @overtrue committed Jan 26, 2016
View
@@ -18,4 +18,4 @@ build:
command: phpunit --coverage-clover=my-coverage-file
coverage:
file: my-coverage-file
- format: php-clover
+ format: php-clover
@@ -117,11 +117,10 @@ public function setAccessToken(AccessToken $accessToken)
*
* @param string $method
* @param array $args
- * @param bool $throws
*
* @return \EasyWeChat\Support\Collection
*/
- public function parseJSON($method, array $args, $throws = true)
+ public function parseJSON($method, array $args)
{
$http = $this->getHttp();
View
@@ -25,8 +25,6 @@
use EasyWeChat\Support\Log;
use GuzzleHttp\Client as HttpClient;
use GuzzleHttp\HandlerStack;
-use GuzzleHttp\Psr7\Request;
-use GuzzleHttp\Psr7\Response;
use Psr\Http\Message\ResponseInterface;
/**
@@ -212,13 +210,12 @@ public function request($url, $method = 'GET', $options = [])
/**
* @param \Psr\Http\Message\ResponseInterface|string $body
- * @param bool|true $throws
*
* @return mixed
*
* @throws \EasyWeChat\Core\Exceptions\HttpException
*/
- public function parseJSON($body, $throws = true)
+ public function parseJSON($body)
{
if ($body instanceof ResponseInterface) {
$body = $body->getBody();
View
@@ -23,7 +23,6 @@
use Doctrine\Common\Cache\Cache;
use Doctrine\Common\Cache\FilesystemCache;
use EasyWeChat\Core\AbstractAPI;
-use EasyWeChat\Core\Http;
use EasyWeChat\Support\Str;
use EasyWeChat\Support\Url as UrlHelper;
@@ -22,7 +22,6 @@
use EasyWeChat\Core\AbstractAPI;
use EasyWeChat\Core\Exceptions\InvalidArgumentException;
-use EasyWeChat\Core\Http;
use EasyWeChat\Message\Article;
/**
@@ -23,7 +23,6 @@
use EasyWeChat\Core\AbstractAPI;
use EasyWeChat\Core\Exceptions\InvalidArgumentException;
use EasyWeChat\Core\Exceptions\RuntimeException;
-use EasyWeChat\Core\Http;
use EasyWeChat\Support\File;
/**
View
@@ -104,10 +104,6 @@ public function update($email, $nickname, $password)
*/
public function delete($email)
{
- $params = [
- 'kf_account' => $email,
- ];
-
return $this->parseJSON('get', [sprintf(self::API_DELETE.'?kf_account=%s', $email)]);
}
View
@@ -21,7 +21,6 @@
namespace EasyWeChat\Url;
use EasyWeChat\Core\AbstractAPI;
-use EasyWeChat\Core\Http;
/**
* Class Url.
View
@@ -21,7 +21,6 @@
namespace EasyWeChat\User;
use EasyWeChat\Core\AbstractAPI;
-use EasyWeChat\Core\Http;
/**
* Class User.

0 comments on commit 9bbfe66

Please sign in to comment.