Reset Request

@return void
762750
protected function resetRequest(): void
    {
        $request = Request::getInstance();

        // priority:
        //  - default values
        //  - from GET query
        //  - from path
        $request = $request->withQueryParams(
            array_merge(
                [
                    '_module' => $this->getDefaultModule(),
                    '_controller' => $this->getDefaultController()
                ],
                $request->getQueryParams(),
                $this->params
            )
        );
        Request::setInstance($request);
    }
1351221
public function reset()
    {
        $this->domain   = null;
        $this->fragment = null;
        $this->hostname = null;
        $this->ipv4     = null;
        $this->ipv6     = null;
        $this->password = null;
        $this->path     = null;
        $this->port     = null;
        $this->query    = null;
        $this->scheme   = null;
        $this->tld      = null;
        $this->url      = null;
        $this->username = null;

        return $this;
    }
507506
private function reset(): void
    {
        $this->classes = ['card' => [], 'body' => [], 'header' => [], 'footer' => []];
        $this->attr = ['card' => [], 'body' => [], 'header' => [], 'footer' => []];

        $this->body_classes = ['title' => [], 'subtitle' => [], 'text' => [], 'link' => []];
        $this->body_attr = ['title' => [], 'subtitle' => [], 'text' => [], 'link' => []];

        $this->body_classes_first = [];
        $this->body_attr_first = [];

        $this->body = null;
        $this->body_sections = [];
        $this->header = null;
        $this->footer = null;
    }
1146079
public function reset()
    {
        $this->page        = 1;
        $this->perPage     = null;
        $this->parsers     = [];
        $this->sorts       = [];
        $this->searchQuery = null;
        $this->rules       = [
            'page'     => 'numeric',
            'per_page' => 'numeric',
            'sort'     => 'string',
            'q'        => 'string',
        ];
    }
515416
protected function reset()
    {
        $this->_agent = '';
        $this->_browserName = self::BROWSER_UNKNOWN;
        $this->_compatibilityViewName = '';
        $this->_compatibilityViewVer = '';
        $this->_is64bit = false;
        $this->_isMobile = false;
        $this->_isRobot = false;
        $this->_platform = self::PLATFORM_UNKNOWN;
        $this->_platformVersion = self::PLATFORM_VERSION_UNKNOWN;
        $this->_version = self::VERSION_UNKNOWN;
    }
735133
function reset()
    {
        $this->connection->query(sprintf("DELETE FROM %s",
                                         $this->associations_table_name));

        $this->connection->query(sprintf("DELETE FROM %s",
                                         $this->nonces_table_name));
    }
506750
public function reset()
    {
        $this->values[self::ID] = null;
        $this->values[self::PUBLICKEY] = null;
        $this->values[self::PRIVATEKEY] = null;
        $this->values[self::SIGNATURE] = null;
        $this->values[self::TIMESTAMP] = null;
    }
602839
public function reset() {
		$ex = func_get_args();
		foreach($_SESSION as $n => $s) {
			if(!in_array($n,$ex)) unset($_SESSION[$n]);
		}
		if(empty($ex)) session_destroy();
	}
17864
public function reset()
    {
        if ($this->curl !== null) {
            curl_close($this->curl); //stop curl
        }

        //reset all options
        $this->unsetOptions();

        //reset response & status code
        $this->curl = null;
        $this->response = null;
        $this->responseCode = null;

        return $this;
    }
541501
public function reset()
	{
		$this->started = $this->now();
		$this->prefix  = '';
		$this->marks   = array();
		$this->memory  = memory_get_usage(true);
	}
583663
public function reset()
    {
        ini_set('display_errors', '0');
        error_reporting(E_ALL);

        ini_set('zend.assertions', '1');
        ini_set('assert.exception', '1');

        $GLOBALS = $this->prepareGlobalForRetrieval($this->globals);
        $_ENV = $this->prepareGlobalForRetrieval($this->env);
        $_GET = $this->prepareGlobalForRetrieval($this->get);
        $_POST = $this->prepareGlobalForRetrieval($this->post);
        $_COOKIE = $this->prepareGlobalForRetrieval($this->cookie);
        $_SERVER = $this->prepareGlobalForRetrieval($this->server);
        $_SESSION = $this->prepareGlobalForRetrieval($this->session);
        $_FILES = $this->prepareGlobalForRetrieval($this->files);
        $_REQUEST = $this->prepareGlobalForRetrieval($this->request);
    }
110478
public function reset()
    {
        $this->_headers->clearHeaders();
        $this->params = [];
        $this->postRawData = null;
        $this->httpClient->reset();
        return $this;
    }
1273488
public function reset()
    {
        $this->_set_query = null;
        $this->_loaded = false;
        $this->_object_set = new ArrayObject();

        return $this;
    }
1124975
public function reset()
    {
        $this->headerHash = null;
        $this->signedHeaders = [];
        $this->bodyHash = null;
        $this->bodyHashHandler = null;
        $this->bodyCanonIgnoreStart = 2;
        $this->bodyCanonEmptyCounter = 0;
        $this->bodyCanonLastChar = null;
        $this->bodyCanonSpace = false;
    }
902712
private function reset()
	{
		$this->returnLocationData = $this->locationDataTemplate;
		$this->locale = (config('location.language')) ? config('location.language') : App::getLocale();
		$this->ip = null;
		$this->client = null;
	}
533167
private function reset()
    {
        $this->table = null;
        $this->tables = null;
        $this->columns = '*';
        //
        $this->values =
        $this->sets = [];
        //
        $this->where =
        $this->order =
        $this->group = '';
    }
1298158
public function reset() {
		$this->request->allowMethod('post');
		$this->QueuedJobs->reset();

		$message = __d('queue', 'OK');
		$this->Flash->success($message);

		return $this->redirect(['action' => 'index']);
	}