chore: phpstan fixes, rector

This commit is contained in:
Benjamin Nussbaum 2026-01-15 13:14:50 +01:00
parent d19a079b8a
commit b097b0a7d7
7 changed files with 15 additions and 17 deletions

View file

@ -174,8 +174,8 @@ class Plugin extends Model
// resolve and clean URLs
$resolvedPollingUrls = $this->resolveLiquidVariables($this->polling_url);
$urls = array_values(array_filter( // array_values ensures 0, 1, 2...
array_map('trim', explode("\n", $resolvedPollingUrls)),
fn ($url): bool => filled($url)
array_map(trim(...), explode("\n", $resolvedPollingUrls)),
filled(...)
));
$combinedResponse = [];
@ -624,7 +624,7 @@ class Plugin extends Model
// File doesn't exist, remove the view reference
$attributes['render_markup_view'] = null;
}
} catch (Exception $e) {
} catch (Exception) {
// If file reading fails, remove the view reference
$attributes['render_markup_view'] = null;
}