original_string: public function redirect($url, $statusCode = 302) {
  		$this->setStatusCode($statusCode)
  			->setHeader('Location', $url)
  			->setBody(sprintf('<!DOCTYPE html>
  <meta charset="UTF-8">
  <meta http-equiv="refresh" content="1;url=%1$s">
  <title>Redirecting to %1$s</title>
  Redirecting to <a href="%1$s">%1$s</a>', htmlspecialchars($url, ENT_QUOTES, 'UTF-8')));
  
  		return $this;
  	}
code: public function redirect($url, $statusCode = 302) {
  		$this->setStatusCode($statusCode)
  			->setHeader('Location', $url)
  			->setBody(sprintf('<!DOCTYPE html>
  <meta charset="UTF-8">
  <meta http-equiv="refresh" content="1;url=%1$s">
  <title>Redirecting to %1$s</title>
  Redirecting to <a href="%1$s">%1$s</a>', htmlspecialchars($url, ENT_QUOTES, 'UTF-8')));
  
  		return $this;
  	}
code_tokens: public function redirect ( $ url , $ statusCode = 302 ) { $ this -> setStatusCode ( $ statusCode ) -> setHeader ( 'Location' , $ url ) -> setBody ( sprintf ( '<!DOCTYPE html>
  <meta charset="UTF-8">
  <meta http-equiv="refresh" content="1;url=%1$s">
  <title>Redirecting to %1$s</title>
  Redirecting to <a href="%1$s">%1$s</a>' , htmlspecialchars ( $ url , ENT_QUOTES , 'UTF-8' ) ) ) ; return $ this ; }
docstring: Setup HTTP redirect.
  
  @param string $url
  @param int $statusCode Optional
  @return self
docstring_tokens: Setup HTTP redirect .