protected static function resetGlobals() { $_GET = $_POST = []; unset($_SERVER['HTTP_X_REQUESTED_WITH'], $_SERVER['HTTP_ACCEPT']); }