diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2017-07-03 13:39:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-03 13:39:54 +0200 |
commit | 71e1cbc8eb5928d393b0772055d6b711e90a09b3 (patch) | |
tree | 71795eadcf13fda9198b8cd9a3da26d51826bbd9 /src/Wallabag/CoreBundle/Helper/ContentProxy.php | |
parent | 822c877949aff8ae57677671115f8f4fc69588d5 (diff) | |
parent | 38520658addc217f127b0627ea28dcf8d6e6178c (diff) | |
download | wallabag-71e1cbc8eb5928d393b0772055d6b711e90a09b3.tar.gz wallabag-71e1cbc8eb5928d393b0772055d6b711e90a09b3.tar.zst wallabag-71e1cbc8eb5928d393b0772055d6b711e90a09b3.zip |
Merge pull request #3258 from wallabag/cs-fixer
Add a real configuration for CS-Fixer
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper/ContentProxy.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/ContentProxy.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php index 51bb2ca2..ddecd6f4 100644 --- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php +++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php | |||
@@ -4,12 +4,12 @@ namespace Wallabag\CoreBundle\Helper; | |||
4 | 4 | ||
5 | use Graby\Graby; | 5 | use Graby\Graby; |
6 | use Psr\Log\LoggerInterface; | 6 | use Psr\Log\LoggerInterface; |
7 | use Wallabag\CoreBundle\Entity\Entry; | ||
8 | use Wallabag\CoreBundle\Tools\Utils; | ||
9 | use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser; | 7 | use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser; |
10 | use Symfony\Component\Validator\Constraints\Locale as LocaleConstraint; | 8 | use Symfony\Component\Validator\Constraints\Locale as LocaleConstraint; |
11 | use Symfony\Component\Validator\Constraints\Url as UrlConstraint; | 9 | use Symfony\Component\Validator\Constraints\Url as UrlConstraint; |
12 | use Symfony\Component\Validator\Validator\ValidatorInterface; | 10 | use Symfony\Component\Validator\Validator\ValidatorInterface; |
11 | use Wallabag\CoreBundle\Entity\Entry; | ||
12 | use Wallabag\CoreBundle\Tools\Utils; | ||
13 | 13 | ||
14 | /** | 14 | /** |
15 | * This kind of proxy class take care of getting the content from an url | 15 | * This kind of proxy class take care of getting the content from an url |
@@ -100,7 +100,7 @@ class ContentProxy | |||
100 | 100 | ||
101 | // is it a timestamp? | 101 | // is it a timestamp? |
102 | if (filter_var($date, FILTER_VALIDATE_INT) !== false) { | 102 | if (filter_var($date, FILTER_VALIDATE_INT) !== false) { |
103 | $date = '@'.$content['date']; | 103 | $date = '@' . $content['date']; |
104 | } | 104 | } |
105 | 105 | ||
106 | try { | 106 | try { |
@@ -189,7 +189,7 @@ class ContentProxy | |||
189 | return; | 189 | return; |
190 | } | 190 | } |
191 | 191 | ||
192 | $this->logger->warning('Language validation failed. '.(string) $errors); | 192 | $this->logger->warning('Language validation failed. ' . (string) $errors); |
193 | } | 193 | } |
194 | 194 | ||
195 | /** | 195 | /** |
@@ -211,6 +211,6 @@ class ContentProxy | |||
211 | return; | 211 | return; |
212 | } | 212 | } |
213 | 213 | ||
214 | $this->logger->warning('PreviewPicture validation failed. '.(string) $errors); | 214 | $this->logger->warning('PreviewPicture validation failed. ' . (string) $errors); |
215 | } | 215 | } |
216 | } | 216 | } |