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.
This commit is contained in:
Divarion_D
2026-08-09 13:42:21 +03:00
parent 222e914453
commit 67df99efa2
+1 -2
View File
@@ -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']);