mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 11:01:04 +00:00
CS
This commit is contained in:
parent
1048c9c4a8
commit
448d99f84e
5 changed files with 7 additions and 8 deletions
|
@ -6,9 +6,9 @@ use GuzzleHttp\Client as GuzzleClient;
|
|||
use GuzzleHttp\Cookie\CookieJar;
|
||||
use GuzzleHttp\Event\SubscriberInterface;
|
||||
use Http\Adapter\Guzzle5\Client as GuzzleAdapter;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Http\Client\HttpClient;
|
||||
use Http\HttplugBundle\ClientFactory\ClientFactory;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/**
|
||||
* Builds and configures the HTTP client.
|
||||
|
|
|
@ -5,12 +5,12 @@ namespace Wallabag\ImportBundle\Import;
|
|||
use Http\Client\Common\HttpMethodsClient;
|
||||
use Http\Client\Common\Plugin\ErrorPlugin;
|
||||
use Http\Client\Common\PluginClient;
|
||||
use Http\Client\Exception\RequestException;
|
||||
use Http\Client\HttpClient;
|
||||
use Http\Discovery\MessageFactoryDiscovery;
|
||||
use Http\Message\MessageFactory;
|
||||
use Http\Client\Exception\RequestException;
|
||||
use Wallabag\CoreBundle\Entity\Entry;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Wallabag\CoreBundle\Entity\Entry;
|
||||
|
||||
class PocketImport extends AbstractImport
|
||||
{
|
||||
|
@ -88,7 +88,6 @@ class PocketImport extends AbstractImport
|
|||
*/
|
||||
public function authorize($code)
|
||||
{
|
||||
|
||||
try {
|
||||
$response = $this->client->post('https://getpocket.com/v3/oauth/authorize', [], json_encode([
|
||||
'consumer_key' => $this->user->getConfig()->getPocketConsumerKey(),
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
namespace Tests\Wallabag\CoreBundle\Helper;
|
||||
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Psr7\Response;
|
||||
use GuzzleHttp\Stream\Stream;
|
||||
use GuzzleHttp\Subscriber\Mock;
|
||||
use Http\Mock\Client as HttpMockClient;
|
||||
use GuzzleHttp\Psr7\Response;
|
||||
use Monolog\Handler\TestHandler;
|
||||
use Monolog\Logger;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
namespace Tests\Wallabag\ImportBundle\Import;
|
||||
|
||||
use Http\Mock\Client as HttpMockClient;
|
||||
use GuzzleHttp\Psr7\Response;
|
||||
use Http\Mock\Client as HttpMockClient;
|
||||
use M6Web\Component\RedisMock\RedisMockFactory;
|
||||
use Monolog\Handler\TestHandler;
|
||||
use Monolog\Logger;
|
||||
|
|
Loading…
Reference in a new issue