From f1e29e69cb0ba5a0f05190c62e7a4afd43d03436 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Thu, 10 Sep 2015 22:00:53 +0200 Subject: [PATCH] CS --- src/Wallabag/ApiBundle/Resources/config/services.yml | 3 --- src/Wallabag/CoreBundle/Helper/ContentProxy.php | 8 ++++---- src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php | 4 ++-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/Wallabag/ApiBundle/Resources/config/services.yml b/src/Wallabag/ApiBundle/Resources/config/services.yml index 9ab4f3d1..6854a444 100644 --- a/src/Wallabag/ApiBundle/Resources/config/services.yml +++ b/src/Wallabag/ApiBundle/Resources/config/services.yml @@ -10,6 +10,3 @@ services: tags: - { name: monolog.logger, channel: wsse } arguments: ['@security.context', '@security.authentication.manager', '@logger'] - - wallabag_core.graby: - class: Graby\Graby diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php index 2dd70e51..4565d8e7 100644 --- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php +++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php @@ -7,7 +7,7 @@ use Wallabag\CoreBundle\Entity\Entry; /** * This kind of proxy class take care of getting the content from an url - * and update the entry with what it found + * and update the entry with what it found. */ class ContentProxy { @@ -20,10 +20,10 @@ class ContentProxy /** * Fetch content using graby and hydrate given entry with results information. - * In case we couldn't find content, we'll try to use Open Graph data + * In case we couldn't find content, we'll try to use Open Graph data. * - * @param Entry $entry Entry to update - * @param string $url Url to grab content for + * @param Entry $entry Entry to update + * @param string $url Url to grab content for * * @return Entry */ diff --git a/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php b/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php index 7c93f460..71a004ff 100644 --- a/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php +++ b/src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php @@ -68,8 +68,8 @@ class ContentProxyTest extends KernelTestCase 'open_graph' => array( 'og_title' => 'my OG title', 'og_description' => 'OG desc', - 'og_image' => 'http://3.3.3.3/cover.jpg' - ) + 'og_image' => 'http://3.3.3.3/cover.jpg', + ), )); $proxy = new ContentProxy($graby); -- 2.41.0