aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Search.php
diff options
context:
space:
mode:
authorGravatar Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> 2024-06-05 22:04:06 +0200
committerGravatar GitHub <noreply@github.com> 2024-06-05 22:04:06 +0200
commitf99c8d5f54c67e0abc3f3189b4f5e3e4571e114c (patch)
treed7d74a628cd9614dd4093220139b6c073f3a5c54 /app/Models/Search.php
parent8fc8ac3aefca73a4cd509313a2f1ad73ef7f2e1a (diff)
Modernize code to php7.4 (#6043)
* Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Consistency --------- Co-authored-by: Luc <sanchezluc+freshrss@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Models/Search.php')
-rw-r--r--app/Models/Search.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/Models/Search.php b/app/Models/Search.php
index 00cb408f9..31b3d8d5a 100644
--- a/app/Models/Search.php
+++ b/app/Models/Search.php
@@ -235,9 +235,7 @@ class FreshRSS_Search {
* @return array<string>
*/
private static function removeEmptyValues(?array $anArray): array {
- return empty($anArray) ? [] : array_filter($anArray, static function(string $value) {
- return $value !== '';
- });
+ return empty($anArray) ? [] : array_filter($anArray, static fn(string $value) => $value !== '');
}
/**