aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/feedController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controllers/feedController.php')
-rwxr-xr-xapp/Controllers/feedController.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index 89f3d65b1..60ee6d579 100755
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -343,7 +343,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController {
// We try to get more information about the feed.
$this->view->feed->load(true);
$this->view->load_ok = true;
- } catch (Exception $e) {
+ } catch (Exception) {
$this->view->load_ok = false;
}
@@ -793,9 +793,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController {
private static function applyLabelActions(int $nbNewEntries): int|false {
$tagDAO = FreshRSS_Factory::createTagDao();
$labels = FreshRSS_Context::labels();
- $labels = array_filter($labels, static function (FreshRSS_Tag $label) {
- return !empty($label->filtersAction('label'));
- });
+ $labels = array_filter($labels, static fn(FreshRSS_Tag $label) => !empty($label->filtersAction('label')));
if (count($labels) <= 0) {
return 0;
}
@@ -1203,7 +1201,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController {
$this->view->selectorSuccess = false;
$this->view->htmlContent = $entry->content(false);
}
- } catch (Exception $e) {
+ } catch (Exception) {
$this->view->fatalError = _t('feedback.sub.feed.selector_preview.http_error');
}
}