/** * Close the cURL connection. */ public static function closeCurl() { if (!is_null(self::$curl)) { curl_close(self::$curl); self::$curl = null; } }