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
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C
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])) {

View File

@ -169,7 +169,7 @@ abstract class AbstractImport implements ImportInterface
$entry = $this->parseEntry($importedEntry);
if (null === $entry) {
continue;
break;
}
// store each entry to be flushed so we can trigger the entry.saved event for each of them

View File

@ -158,13 +158,13 @@ abstract class BrowserImport extends AbstractImport
foreach ($entries as $importedEntry) {
if ((array) $importedEntry !== $importedEntry) {
continue;
break;
}
$entry = $this->parseEntry($importedEntry);
if (null === $entry) {
continue;
break;
}
// @see AbstractImport
@ -206,7 +206,7 @@ abstract class BrowserImport extends AbstractImport
{
foreach ($entries as $importedEntry) {
if ((array) $importedEntry !== $importedEntry) {
continue;
break;
}
// set userId for the producer (it won't know which user is connected)

View File

@ -65,7 +65,7 @@ class InstapaperImport extends AbstractImport
$handle = fopen($this->filepath, 'r');
while (false !== ($data = fgetcsv($handle, 10240))) {
if ('URL' === $data[0]) {
continue;
break;
}
// last element in the csv is the folder where the content belong