diff options
author | Thomas Citharel <tcit@tcit.fr> | 2019-01-12 13:09:36 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2019-01-12 13:09:36 +0100 |
commit | ceddccb736d7c82ffae068df4d9f334a48aff2f4 (patch) | |
tree | f079612ca9b3bde8189c8152da0742e63da9bfdc /src/Wallabag/CoreBundle/Helper | |
parent | 5c331bf0f9ef679aaf91ef29b13120272fcccbf5 (diff) | |
download | wallabag-php73.tar.gz wallabag-php73.tar.zst wallabag-php73.zip |
Replace continue; with break; to avoid PHP 7.3 warningsphp73
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/DownloadImages.php | 2 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/RuleBasedTagger.php | 2 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/TagsAssigner.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/DownloadImages.php b/src/Wallabag/CoreBundle/Helper/DownloadImages.php index cc3dcfce..8c1c208f 100644 --- a/src/Wallabag/CoreBundle/Helper/DownloadImages.php +++ b/src/Wallabag/CoreBundle/Helper/DownloadImages.php | |||
@@ -56,7 +56,7 @@ class DownloadImages | |||
56 | $imagePath = $this->processSingleImage($entryId, $image, $url, $relativePath); | 56 | $imagePath = $this->processSingleImage($entryId, $image, $url, $relativePath); |
57 | 57 | ||
58 | if (false === $imagePath) { | 58 | if (false === $imagePath) { |
59 | continue; | 59 | break; |
60 | } | 60 | } |
61 | 61 | ||
62 | // if image contains "&" and we can't find it in the html it might be because it's encoded as & | 62 | // if image contains "&" and we can't find it in the html it might be because it's encoded as & |
diff --git a/src/Wallabag/CoreBundle/Helper/RuleBasedTagger.php b/src/Wallabag/CoreBundle/Helper/RuleBasedTagger.php index 63f65067..da02fbee 100644 --- a/src/Wallabag/CoreBundle/Helper/RuleBasedTagger.php +++ b/src/Wallabag/CoreBundle/Helper/RuleBasedTagger.php | |||
@@ -36,7 +36,7 @@ class RuleBasedTagger | |||
36 | 36 | ||
37 | foreach ($rules as $rule) { | 37 | foreach ($rules as $rule) { |
38 | if (!$this->rulerz->satisfies($entry, $rule->getRule())) { | 38 | if (!$this->rulerz->satisfies($entry, $rule->getRule())) { |
39 | continue; | 39 | break; |
40 | } | 40 | } |
41 | 41 | ||
42 | $this->logger->info('Matching rule.', [ | 42 | $this->logger->info('Matching rule.', [ |
diff --git a/src/Wallabag/CoreBundle/Helper/TagsAssigner.php b/src/Wallabag/CoreBundle/Helper/TagsAssigner.php index e6b4989f..519150f5 100644 --- a/src/Wallabag/CoreBundle/Helper/TagsAssigner.php +++ b/src/Wallabag/CoreBundle/Helper/TagsAssigner.php | |||
@@ -49,7 +49,7 @@ class TagsAssigner | |||
49 | 49 | ||
50 | // avoid empty tag | 50 | // avoid empty tag |
51 | if (0 === \strlen($label)) { | 51 | if (0 === \strlen($label)) { |
52 | continue; | 52 | break; |
53 | } | 53 | } |
54 | 54 | ||
55 | if (isset($tagsNotYetFlushed[$label])) { | 55 | if (isset($tagsNotYetFlushed[$label])) { |