diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-05-24 16:02:49 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-05-31 14:00:15 +0200 |
commit | 9e349f08a651c43c6d5dd890303ed529c38c4fde (patch) | |
tree | f11edd1911cbc75b39bdbad9b2a9971cbc1c4fbd /src/Wallabag/CoreBundle/Helper | |
parent | 0d6cfb884c8ef75e4dc5fd667fb9d29702523a2a (diff) | |
download | wallabag-9e349f08a651c43c6d5dd890303ed529c38c4fde.tar.gz wallabag-9e349f08a651c43c6d5dd890303ed529c38c4fde.tar.zst wallabag-9e349f08a651c43c6d5dd890303ed529c38c4fde.zip |
Improve docs
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/ContentProxy.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php index 66d72fe6..90d0c50d 100644 --- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php +++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php | |||
@@ -31,7 +31,7 @@ class ContentProxy | |||
31 | } | 31 | } |
32 | 32 | ||
33 | /** | 33 | /** |
34 | * Fetch content using graby and hydrate given entry with results information. | 34 | * Fetch content using graby and hydrate given $entry with results information. |
35 | * In case we couldn't find content, we'll try to use Open Graph data. | 35 | * In case we couldn't find content, we'll try to use Open Graph data. |
36 | * | 36 | * |
37 | * We can also force the content, in case of an import from the v1 for example, so the function won't | 37 | * We can also force the content, in case of an import from the v1 for example, so the function won't |
@@ -39,7 +39,7 @@ class ContentProxy | |||
39 | * | 39 | * |
40 | * @param Entry $entry Entry to update | 40 | * @param Entry $entry Entry to update |
41 | * @param string $url Url to grab content for | 41 | * @param string $url Url to grab content for |
42 | * @param array $content An array with AT LEAST keys title, html, url, language & content_type to skip the fetchContent from the url | 42 | * @param array $content An array with AT LEAST keys title, html, url to skip the fetchContent from the url |
43 | * | 43 | * |
44 | * @return Entry | 44 | * @return Entry |
45 | */ | 45 | */ |
@@ -85,7 +85,7 @@ class ContentProxy | |||
85 | try { | 85 | try { |
86 | $entry->setPublishedAt(new \DateTime($content['date'])); | 86 | $entry->setPublishedAt(new \DateTime($content['date'])); |
87 | } catch (\Exception $e) { | 87 | } catch (\Exception $e) { |
88 | $this->logger->warn('Error while defining date', ['e' => $e, 'url' => $url, 'date' => $content['date']]); | 88 | $this->logger->warning('Error while defining date', ['e' => $e, 'url' => $url, 'date' => $content['date']]); |
89 | } | 89 | } |
90 | } | 90 | } |
91 | 91 | ||