aboutsummaryrefslogtreecommitdiff
path: root/app/Services
diff options
context:
space:
mode:
authorGravatar Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> 2021-10-14 13:32:58 +0200
committerGravatar GitHub <noreply@github.com> 2021-10-14 13:32:58 +0200
commit7b15ffc838bcd63cc0716eccd2e39fdd0665d76d (patch)
tree3f27bdd0503baf8d8fc49ce329fd780ca887df91 /app/Services
parentd2a95ef2a6c0b69c07fe15385d09853c57a0b6d3 (diff)
Rename variable (#3867)
Variable is more explicite now $ok to $isOkStatus
Diffstat (limited to 'app/Services')
-rw-r--r--app/Services/ImportService.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php
index 635613475..5db640455 100644
--- a/app/Services/ImportService.php
+++ b/app/Services/ImportService.php
@@ -58,7 +58,7 @@ class FreshRSS_Import_Service {
* @return boolean false if an error occured, true otherwise.
*/
private function addOpmlElements($opml_elements, $parent_cat = null) {
- $ok = true;
+ $isOkStatus = true;
$nb_feeds = count($this->feedDAO->listFeeds());
$nb_cats = count($this->catDAO->listCategories(false));
@@ -77,14 +77,14 @@ class FreshRSS_Import_Service {
if (FreshRSS_Context::$isCli && $nb_feeds >= $limits['max_feeds']) {
Minz_Log::warning(_t('feedback.sub.feed.over_max',
$limits['max_feeds']));
- $ok = false;
+ $isOkStatus = false;
continue;
}
if ($this->addFeedOpml($elt, $parent_cat)) {
$nb_feeds++;
} else {
- $ok = false;
+ $isOkStatus = false;
}
} elseif (!empty($elt['text'])) {
// No xmlUrl? It should be a category!
@@ -92,19 +92,19 @@ class FreshRSS_Import_Service {
if (!FreshRSS_Context::$isCli && $limit_reached) {
Minz_Log::warning(_t('feedback.sub.category.over_max',
$limits['max_categories']));
- $ok = false;
+ $isOkStatus = false;
continue;
}
if ($this->addCategoryOpml($elt, $parent_cat, $limit_reached)) {
$nb_cats++;
} else {
- $ok = false;
+ $isOkStatus = false;
}
}
}
- return $ok;
+ return $isOkStatus;
}
/**