original_string: public function postLogout (Request $request)
      {
          if ($redirect = $request->getSession ()->get ('post-login-redirect'))
          {
              $request->getSession ()->set ('post-login-redirect', null);
              $request->getSession ()->set ('cancel-login-redirect', null);
  
              return Response::redirect ($redirect);
          }
  
          return Response::redirect (URLBuilder::getURL ('/'));
      }
code: public function postLogout (Request $request)
      {
          if ($redirect = $request->getSession ()->get ('post-login-redirect'))
          {
              $request->getSession ()->set ('post-login-redirect', null);
              $request->getSession ()->set ('cancel-login-redirect', null);
  
              return Response::redirect ($redirect);
          }
  
          return Response::redirect (URLBuilder::getURL ('/'));
      }
code_tokens: public function postLogout ( Request $ request ) { if ( $ redirect = $ request -> getSession ( ) -> get ( 'post-login-redirect' ) ) { $ request -> getSession ( ) -> set ( 'post-login-redirect' , null ) ; $ request -> getSession ( ) -> set ( 'cancel-login-redirect' , null ) ; return Response :: redirect ( $ redirect ) ; } return Response :: redirect ( URLBuilder :: getURL ( '/' ) ) ; }
docstring: Called after a redirect
  @param Request $request
  @return Response
  @throws DataNotSet
docstring_tokens: Called after a redirect