'ok', 'message' => 'test was completed :)']; } public static function getUserInfo() { global $USER; unset($USER['password']); $result = $USER; $result['devices'] = getUserDevices($USER['id']); return $result; } }