aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-01-28 06:10:26 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-05-28 11:42:27 +0200
commit448d99f84e93697ce49ec31224addb1da1a37a9f (patch)
treedac85bc07ca0e6cf253d90b859811eaff28a4bd4 /src/Wallabag/ImportBundle
parent1048c9c4a811821b00cc04bfec905bebcc22bac4 (diff)
downloadwallabag-448d99f84e93697ce49ec31224addb1da1a37a9f.tar.gz
wallabag-448d99f84e93697ce49ec31224addb1da1a37a9f.tar.zst
wallabag-448d99f84e93697ce49ec31224addb1da1a37a9f.zip
CS
Diffstat (limited to 'src/Wallabag/ImportBundle')
-rw-r--r--src/Wallabag/ImportBundle/Import/PocketImport.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php
index 9467fae2..b35a561b 100644
--- a/src/Wallabag/ImportBundle/Import/PocketImport.php
+++ b/src/Wallabag/ImportBundle/Import/PocketImport.php
@@ -5,12 +5,12 @@ namespace Wallabag\ImportBundle\Import;
5use Http\Client\Common\HttpMethodsClient; 5use Http\Client\Common\HttpMethodsClient;
6use Http\Client\Common\Plugin\ErrorPlugin; 6use Http\Client\Common\Plugin\ErrorPlugin;
7use Http\Client\Common\PluginClient; 7use Http\Client\Common\PluginClient;
8use Http\Client\Exception\RequestException;
8use Http\Client\HttpClient; 9use Http\Client\HttpClient;
9use Http\Discovery\MessageFactoryDiscovery; 10use Http\Discovery\MessageFactoryDiscovery;
10use Http\Message\MessageFactory; 11use Http\Message\MessageFactory;
11use Http\Client\Exception\RequestException;
12use Wallabag\CoreBundle\Entity\Entry;
13use Psr\Http\Message\ResponseInterface; 12use Psr\Http\Message\ResponseInterface;
13use Wallabag\CoreBundle\Entity\Entry;
14 14
15class PocketImport extends AbstractImport 15class PocketImport extends AbstractImport
16{ 16{
@@ -88,7 +88,6 @@ class PocketImport extends AbstractImport
88 */ 88 */
89 public function authorize($code) 89 public function authorize($code)
90 { 90 {
91
92 try { 91 try {
93 $response = $this->client->post('https://getpocket.com/v3/oauth/authorize', [], json_encode([ 92 $response = $this->client->post('https://getpocket.com/v3/oauth/authorize', [], json_encode([
94 'consumer_key' => $this->user->getConfig()->getPocketConsumerKey(), 93 'consumer_key' => $this->user->getConfig()->getPocketConsumerKey(),
@@ -153,7 +152,7 @@ class PocketImport extends AbstractImport
153 /** 152 /**
154 * Set the Http client. 153 * Set the Http client.
155 * 154 *
156 * @param HttpClient $client 155 * @param HttpClient $client
157 * @param MessageFactory|null $messageFactory 156 * @param MessageFactory|null $messageFactory
158 */ 157 */
159 public function setClient(HttpClient $client, MessageFactory $messageFactory = null) 158 public function setClient(HttpClient $client, MessageFactory $messageFactory = null)