]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
CS
authorJeremy Benoist <jeremy.benoist@gmail.com>
Mon, 28 Jan 2019 05:10:26 +0000 (06:10 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 28 May 2019 09:42:27 +0000 (11:42 +0200)
src/Wallabag/CoreBundle/Helper/DownloadImages.php
src/Wallabag/CoreBundle/Helper/HttpClientFactory.php
src/Wallabag/ImportBundle/Import/PocketImport.php
tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php
tests/Wallabag/ImportBundle/Import/PocketImportTest.php

index e57490608a3ddf03a7c5f7014fc036eb0bf08253..7a39a2e4a6d9cbf62e329822e9a806a328863356 100644 (file)
@@ -312,7 +312,7 @@ class DownloadImages
      * Retrieve and validate the extension from the response of the url of the image.
      *
      * @param ResponseInterface $res       Http Response
-     * @param string   $imagePath Path from the src image from the content (used for log only)
+     * @param string            $imagePath Path from the src image from the content (used for log only)
      *
      * @return string|false Extension name or false if validation failed
      */
index 3e19a7be1f4a3943b45fd2fe1ec873bb94a0c145..b8e95381d1476d3c147fe5594e3e66f162e6fc43 100644 (file)
@@ -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.
index 9467fae24339a5d5023fb8976b6f1fddd4819aa2..b35a561bb45eacf3d7a0115a24be93ddd92dea6b 100644 (file)
@@ -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(),
@@ -153,7 +152,7 @@ class PocketImport extends AbstractImport
     /**
      * Set the Http client.
      *
-     * @param HttpClient $client
+     * @param HttpClient          $client
      * @param MessageFactory|null $messageFactory
      */
     public function setClient(HttpClient $client, MessageFactory $messageFactory = null)
index 537583647a012adb510fa6b9ace198b2971e9623..0199b3e44667138383bda467a3e2a8ad5d7d6cf9 100644 (file)
@@ -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;
index ec76f168106173d589ddd658c8d19c4deb60de91..40e1626ba3b3c568fc326b650e5864e22566508d 100644 (file)
@@ -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;