diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-11-12 14:18:58 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-11-12 14:18:58 +0100 |
commit | 8d4ed0df0633f43fc2d65fef72c36070113844d1 (patch) | |
tree | 40df943c0326bd69ba88b599889e03ff7f4dbb8d /src/Wallabag/CoreBundle/Helper | |
parent | 76fe5dfb7189b8f5eebf3f372718cd5e2cf286c4 (diff) | |
download | wallabag-8d4ed0df0633f43fc2d65fef72c36070113844d1.tar.gz wallabag-8d4ed0df0633f43fc2d65fef72c36070113844d1.tar.zst wallabag-8d4ed0df0633f43fc2d65fef72c36070113844d1.zip |
Update deps
Also CS (because cs-fixer got an update)
Package operations: 0 installs, 26 updates, 0 removals
- Updating twig/twig (v2.12.1 => v2.12.2)
- Updating symfony/symfony (v3.4.33 => v3.4.34)
- Updating doctrine/event-manager (v1.0.0 => 1.1.0)
- Updating doctrine/collections (v1.6.2 => 1.6.3)
- Updating doctrine/cache (v1.8.1 => 1.9.0)
- Updating doctrine/persistence (1.1.1 => 1.2.0)
- Updating doctrine/inflector (v1.3.0 => 1.3.1)
- Updating symfony/mime (v4.3.5 => v4.3.7)
- Updating swiftmailer/swiftmailer (v6.2.1 => v6.2.3)
- Updating symfony/swiftmailer-bundle (v3.3.0 => v3.3.1)
- Updating doctrine/dbal (v2.9.2 => v2.9.3)
- Updating doctrine/instantiator (1.2.0 => 1.3.0)
- Updating j0k3r/graby-site-config (1.0.93 => 1.0.94)
- Updating phpoption/phpoption (1.5.0 => 1.5.2)
- Updating symfony/http-client-contracts (v1.1.7 => v1.1.8)
- Updating symfony/http-client (v4.3.5 => v4.3.7)
- Updating sensiolabs/security-checker (v6.0.2 => v6.0.3)
- Updating paragonie/constant_time_encoding (v2.2.3 => v2.3.0)
- Updating scheb/two-factor-bundle (v4.7.1 => v4.8.0)
- Updating symfony/phpunit-bridge (v4.3.6 => v4.3.7)
- Updating composer/xdebug-handler (1.3.3 => 1.4.0)
- Updating friendsofphp/php-cs-fixer (v2.15.3 => v2.16.0)
- Updating doctrine/data-fixtures (v1.3.2 => 1.3.3)
- Updating nette/schema (v1.0.0 => v1.0.1)
- Updating nikic/php-parser (v4.2.4 => v4.3.0)
- Updating sentry/sentry (2.2.2 => 2.2.4)
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper')
7 files changed, 2 insertions, 27 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php index 5901df8b..9c6fa8db 100644 --- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php +++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php | |||
@@ -86,7 +86,6 @@ class ContentProxy | |||
86 | /** | 86 | /** |
87 | * Use a Symfony validator to ensure the language is well formatted. | 87 | * Use a Symfony validator to ensure the language is well formatted. |
88 | * | 88 | * |
89 | * @param Entry $entry | ||
90 | * @param string $value Language to validate and save | 89 | * @param string $value Language to validate and save |
91 | */ | 90 | */ |
92 | public function updateLanguage(Entry $entry, $value) | 91 | public function updateLanguage(Entry $entry, $value) |
@@ -112,7 +111,6 @@ class ContentProxy | |||
112 | /** | 111 | /** |
113 | * Use a Symfony validator to ensure the preview picture is a real url. | 112 | * Use a Symfony validator to ensure the preview picture is a real url. |
114 | * | 113 | * |
115 | * @param Entry $entry | ||
116 | * @param string $value URL to validate and save | 114 | * @param string $value URL to validate and save |
117 | */ | 115 | */ |
118 | public function updatePreviewPicture(Entry $entry, $value) | 116 | public function updatePreviewPicture(Entry $entry, $value) |
@@ -134,7 +132,6 @@ class ContentProxy | |||
134 | /** | 132 | /** |
135 | * Update date. | 133 | * Update date. |
136 | * | 134 | * |
137 | * @param Entry $entry | ||
138 | * @param string $value Date to validate and save | 135 | * @param string $value Date to validate and save |
139 | */ | 136 | */ |
140 | public function updatePublishedAt(Entry $entry, $value) | 137 | public function updatePublishedAt(Entry $entry, $value) |
@@ -161,8 +158,6 @@ class ContentProxy | |||
161 | 158 | ||
162 | /** | 159 | /** |
163 | * Helper to extract and save host from entry url. | 160 | * Helper to extract and save host from entry url. |
164 | * | ||
165 | * @param Entry $entry | ||
166 | */ | 161 | */ |
167 | public function setEntryDomainName(Entry $entry) | 162 | public function setEntryDomainName(Entry $entry) |
168 | { | 163 | { |
@@ -176,8 +171,6 @@ class ContentProxy | |||
176 | * Helper to set a default title using: | 171 | * Helper to set a default title using: |
177 | * - url basename, if applicable | 172 | * - url basename, if applicable |
178 | * - hostname. | 173 | * - hostname. |
179 | * | ||
180 | * @param Entry $entry | ||
181 | */ | 174 | */ |
182 | public function setDefaultEntryTitle(Entry $entry) | 175 | public function setDefaultEntryTitle(Entry $entry) |
183 | { | 176 | { |
@@ -333,7 +326,6 @@ class ContentProxy | |||
333 | * Update the origin_url field when a redirection occurs | 326 | * Update the origin_url field when a redirection occurs |
334 | * This field is set if it is empty and new url does not match ignore list. | 327 | * This field is set if it is empty and new url does not match ignore list. |
335 | * | 328 | * |
336 | * @param Entry $entry | ||
337 | * @param string $url | 329 | * @param string $url |
338 | */ | 330 | */ |
339 | private function updateOriginUrl(Entry $entry, $url) | 331 | private function updateOriginUrl(Entry $entry, $url) |
@@ -441,8 +433,6 @@ class ContentProxy | |||
441 | /** | 433 | /** |
442 | * Validate that the given content has at least a title, an html and a url. | 434 | * Validate that the given content has at least a title, an html and a url. |
443 | * | 435 | * |
444 | * @param array $content | ||
445 | * | ||
446 | * @return bool true if valid otherwise false | 436 | * @return bool true if valid otherwise false |
447 | */ | 437 | */ |
448 | private function validateContent(array $content) | 438 | private function validateContent(array $content) |
diff --git a/src/Wallabag/CoreBundle/Helper/DownloadImages.php b/src/Wallabag/CoreBundle/Helper/DownloadImages.php index 1d361d6d..1d98fd1a 100644 --- a/src/Wallabag/CoreBundle/Helper/DownloadImages.php +++ b/src/Wallabag/CoreBundle/Helper/DownloadImages.php | |||
@@ -213,8 +213,6 @@ class DownloadImages | |||
213 | /** | 213 | /** |
214 | * Get images urls from the srcset image attribute. | 214 | * Get images urls from the srcset image attribute. |
215 | * | 215 | * |
216 | * @param Crawler $imagesCrawler | ||
217 | * | ||
218 | * @return array An array of urls | 216 | * @return array An array of urls |
219 | */ | 217 | */ |
220 | private static function getSrcsetUrls(Crawler $imagesCrawler) | 218 | private static function getSrcsetUrls(Crawler $imagesCrawler) |
diff --git a/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php b/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php index b8e95381..ea864acb 100644 --- a/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php +++ b/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php | |||
@@ -27,9 +27,7 @@ class HttpClientFactory implements ClientFactory | |||
27 | /** | 27 | /** |
28 | * HttpClientFactory constructor. | 28 | * HttpClientFactory constructor. |
29 | * | 29 | * |
30 | * @param \GuzzleHttp\Cookie\CookieJar $cookieJar | 30 | * @param string $restrictedAccess This param is a kind of boolean. Values: 0 or 1 |
31 | * @param string $restrictedAccess This param is a kind of boolean. Values: 0 or 1 | ||
32 | * @param LoggerInterface $logger | ||
33 | */ | 31 | */ |
34 | public function __construct(CookieJar $cookieJar, $restrictedAccess, LoggerInterface $logger) | 32 | public function __construct(CookieJar $cookieJar, $restrictedAccess, LoggerInterface $logger) |
35 | { | 33 | { |
@@ -40,8 +38,6 @@ class HttpClientFactory implements ClientFactory | |||
40 | 38 | ||
41 | /** | 39 | /** |
42 | * Adds a subscriber to the HTTP client. | 40 | * Adds a subscriber to the HTTP client. |
43 | * | ||
44 | * @param SubscriberInterface $subscriber | ||
45 | */ | 41 | */ |
46 | public function addSubscriber(SubscriberInterface $subscriber) | 42 | public function addSubscriber(SubscriberInterface $subscriber) |
47 | { | 43 | { |
@@ -51,8 +47,6 @@ class HttpClientFactory implements ClientFactory | |||
51 | /** | 47 | /** |
52 | * Input an array of configuration to be able to create a HttpClient. | 48 | * Input an array of configuration to be able to create a HttpClient. |
53 | * | 49 | * |
54 | * @param array $config | ||
55 | * | ||
56 | * @return HttpClient | 50 | * @return HttpClient |
57 | */ | 51 | */ |
58 | public function createClient(array $config = []) | 52 | public function createClient(array $config = []) |
diff --git a/src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php b/src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php index 04abc6d0..3d56a6d8 100644 --- a/src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php +++ b/src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php | |||
@@ -20,8 +20,7 @@ class PreparePagerForEntries | |||
20 | } | 20 | } |
21 | 21 | ||
22 | /** | 22 | /** |
23 | * @param AdapterInterface $adapter | 23 | * @param User $user If user isn't logged in, we can force it (like for feed) |
24 | * @param User $user If user isn't logged in, we can force it (like for feed) | ||
25 | * | 24 | * |
26 | * @return Pagerfanta|null | 25 | * @return Pagerfanta|null |
27 | */ | 26 | */ |
diff --git a/src/Wallabag/CoreBundle/Helper/RuleBasedTagger.php b/src/Wallabag/CoreBundle/Helper/RuleBasedTagger.php index fbdf2ac7..d48e2469 100644 --- a/src/Wallabag/CoreBundle/Helper/RuleBasedTagger.php +++ b/src/Wallabag/CoreBundle/Helper/RuleBasedTagger.php | |||
@@ -56,8 +56,6 @@ class RuleBasedTagger | |||
56 | /** | 56 | /** |
57 | * Apply all the tagging rules defined by a user on its entries. | 57 | * Apply all the tagging rules defined by a user on its entries. |
58 | * | 58 | * |
59 | * @param User $user | ||
60 | * | ||
61 | * @return array<Entry> A list of modified entries | 59 | * @return array<Entry> A list of modified entries |
62 | */ | 60 | */ |
63 | public function tagAllForUser(User $user) | 61 | public function tagAllForUser(User $user) |
@@ -109,8 +107,6 @@ class RuleBasedTagger | |||
109 | /** | 107 | /** |
110 | * Retrieves the tagging rules for a given user. | 108 | * Retrieves the tagging rules for a given user. |
111 | * | 109 | * |
112 | * @param User $user | ||
113 | * | ||
114 | * @return array<TaggingRule> | 110 | * @return array<TaggingRule> |
115 | */ | 111 | */ |
116 | private function getRulesForUser(User $user) | 112 | private function getRulesForUser(User $user) |
diff --git a/src/Wallabag/CoreBundle/Helper/TagsAssigner.php b/src/Wallabag/CoreBundle/Helper/TagsAssigner.php index e6b4989f..433b09fe 100644 --- a/src/Wallabag/CoreBundle/Helper/TagsAssigner.php +++ b/src/Wallabag/CoreBundle/Helper/TagsAssigner.php | |||
@@ -21,7 +21,6 @@ class TagsAssigner | |||
21 | /** | 21 | /** |
22 | * Assign some tags to an entry. | 22 | * Assign some tags to an entry. |
23 | * | 23 | * |
24 | * @param Entry $entry | ||
25 | * @param array|string $tags An array of tag or a string coma separated of tag | 24 | * @param array|string $tags An array of tag or a string coma separated of tag |
26 | * @param array $entitiesReady Entities from the EntityManager which are persisted but not yet flushed | 25 | * @param array $entitiesReady Entities from the EntityManager which are persisted but not yet flushed |
27 | * It is mostly to fix duplicate tag on import @see http://stackoverflow.com/a/7879164/569101 | 26 | * It is mostly to fix duplicate tag on import @see http://stackoverflow.com/a/7879164/569101 |
diff --git a/src/Wallabag/CoreBundle/Helper/UrlHasher.php b/src/Wallabag/CoreBundle/Helper/UrlHasher.php index d123eaba..6753745f 100644 --- a/src/Wallabag/CoreBundle/Helper/UrlHasher.php +++ b/src/Wallabag/CoreBundle/Helper/UrlHasher.php | |||
@@ -11,7 +11,6 @@ class UrlHasher | |||
11 | * Hash the given url using the given algorithm. | 11 | * Hash the given url using the given algorithm. |
12 | * Hashed url are faster to be retrieved in the database than the real url. | 12 | * Hashed url are faster to be retrieved in the database than the real url. |
13 | * | 13 | * |
14 | * @param string $url | ||
15 | * @param string $algorithm | 14 | * @param string $algorithm |
16 | * | 15 | * |
17 | * @return string | 16 | * @return string |