protected function redirect(string $url, int $httpResponseCode = 302): void
    {
        header('Location: ' . $url, true, $httpResponseCode);
        exit;
    }
protected function redirect(string $url, int $httpResponseCode = 302): void
    {
        header('Location: ' . $url, true, $httpResponseCode);
        exit;
    }
protected function redirect ( string $ url , int $ httpResponseCode = 302 ) : void { header ( 'Location: ' . $ url , true , $ httpResponseCode ) ; exit ; }
Redirection to a specific URL.

@param string $url              URL of redirection
@param int    $httpResponseCode HTTP Redirection code (301, 302...)

@return void
Redirection to a specific URL .