]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
CS 1397/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 10 Sep 2015 20:00:53 +0000 (22:00 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 10 Sep 2015 20:00:53 +0000 (22:00 +0200)
src/Wallabag/ApiBundle/Resources/config/services.yml
src/Wallabag/CoreBundle/Helper/ContentProxy.php
src/Wallabag/CoreBundle/Tests/Helper/ContentProxyTest.php

index 9ab4f3d1e2574aadf6e0dcdaf00372e8f350b597..6854a444cc549c6be2d2ee2c1299228959e53f9c 100644 (file)
@@ -10,6 +10,3 @@ services:
         tags:
             - { name: monolog.logger, channel: wsse }
         arguments: ['@security.context', '@security.authentication.manager', '@logger']
-
-    wallabag_core.graby:
-        class: Graby\Graby
index 2dd70e51db50464732c1dbda235dc93b7c442282..4565d8e7a7adc93ad7a6993197c98fab46be1267 100644 (file)
@@ -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
      */
index 7c93f4607101f308214779b4fe61ed4df10f6402..71a004ffe71a52cf56dced1339710254e97607bc 100644 (file)
@@ -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);