mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-04 20:03:11 +02:00
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:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user