original_string: public function redirect(Controller $Controller, $route) {
  		if ($route['message'] != null) {
  			$message = $route['message'];
  			$element = $route['element'];
  			$params = $route['params'];
  			$this->Session->write("Message.{$route['key']}", compact('message', 'element', 'params'));
  		}
  
  		$Controller->redirect($route['redirect']);
  	}
code: public function redirect(Controller $Controller, $route) {
  		if ($route['message'] != null) {
  			$message = $route['message'];
  			$element = $route['element'];
  			$params = $route['params'];
  			$this->Session->write("Message.{$route['key']}", compact('message', 'element', 'params'));
  		}
  
  		$Controller->redirect($route['redirect']);
  	}
code_tokens: public function redirect ( Controller $ Controller , $ route ) { if ( $ route [ 'message' ] != null ) { $ message = $ route [ 'message' ] ; $ element = $ route [ 'element' ] ; $ params = $ route [ 'params' ] ; $ this -> Session -> write ( "Message.{$route['key']}" , compact ( 'message' , 'element' , 'params' ) ) ; } $ Controller -> redirect ( $ route [ 'redirect' ] ) ; }
docstring: Performs a redirect based upon a given route
  
  @param Controller|object $Controller A reference to the instantiating controller object
  @param array $route A Permit Route
  @return void
docstring_tokens: Performs a redirect based upon a given route