Replace continue; with break; to avoid PHP 7.3 warnings

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-01-12 13:09:36 +01:00
committed by Jeremy Benoist
parent a86c3f1759
commit 3784688a88
7 changed files with 9 additions and 9 deletions

View File

@ -114,7 +114,7 @@ class GrabySiteConfigBuilder implements SiteConfigBuilder
$extraFields = [];
foreach ($extraFieldsStrings as $extraField) {
if (false === strpos($extraField, '=')) {
continue;
break;
}
list($fieldName, $fieldValue) = explode('=', $extraField, 2);

View File

@ -56,7 +56,7 @@ class DownloadImages
$imagePath = $this->processSingleImage($entryId, $image, $url, $relativePath);
if (false === $imagePath) {
continue;
break;
}
// if image contains "&" and we can't find it in the html it might be because it's encoded as &amp;

View File

@ -37,7 +37,7 @@ class RuleBasedTagger
foreach ($rules as $rule) {
if (!$this->rulerz->satisfies($entry, $rule->getRule())) {
continue;
break;
}
$this->logger->info('Matching rule.', [

View File

@ -49,7 +49,7 @@ class TagsAssigner
// avoid empty tag
if (0 === \strlen($label)) {
continue;
break;
}
if (isset($tagsNotYetFlushed[$label])) {