From 67df99efa23eb7316c1012b7a08f0dedf7f2338e Mon Sep 17 00:00:00 2001 From: Divarion_D Date: Sun, 9 Aug 2026 13:42:21 +0300 Subject: [PATCH] refactor(user): drop the unused $rGetBouquetInfo param from getE2Info getE2Info() never referenced its third parameter; the only caller (XPluginApiController) passes just $rDevice and relies on defaults, so removing the dead middle argument shifts nothing. Verified: php -l, phpunit (435 tests), make gates. --- src/Domain/User/UserRepository.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Domain/User/UserRepository.php b/src/Domain/User/UserRepository.php index 86ed739d..54928c0a 100644 --- a/src/Domain/User/UserRepository.php +++ b/src/Domain/User/UserRepository.php @@ -500,11 +500,10 @@ class UserRepository { * * @param array $rDevice Device row (MAC etc.). * @param bool $rGetChannelIDs Include allowed channel ids. - * @param bool $rGetBouquetInfo Include bouquet info. * @param bool $rGetConnections Include active connections. * @return array|null Device user info, or null if not found. */ - public static function getE2Info($rDevice, $rGetChannelIDs = false, $rGetBouquetInfo = false, $rGetConnections = false) { + public static function getE2Info($rDevice, $rGetChannelIDs = false, $rGetConnections = false) { $db = self::db(); if (empty($rDevice['device_id'])) { $db->query('SELECT * FROM `enigma2_devices` WHERE `mac` = ?', $rDevice['mac']);