public function extendVisitorDetails(&$visitor, $details) { $visitor['deviceType'] = getDeviceTypeLabel($details['config_device_type']); if (!PluginManager::getInstance()->isPluginActivated('UserSettings')) { $instance = new UserSettings(); $instance->extendVisitorDetails($visitor, $details); } }