original_string: public function discardFakeFrontEnd()
      {
          if (!$this->hasFakeFrontEnd()) {
              return;
          }
  
          $this->logoutFrontEndUser();
  
          $GLOBALS['TSFE'] = null;
          $GLOBALS['TT'] = null;
          unset(
              $GLOBALS['TYPO3_CONF_VARS']['FE']['dontSetCookie'],
              $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][FrontendUserAuthentication::class]
          );
  
          $this->hasFakeFrontEnd = false;
      }
code: public function discardFakeFrontEnd()
      {
          if (!$this->hasFakeFrontEnd()) {
              return;
          }
  
          $this->logoutFrontEndUser();
  
          $GLOBALS['TSFE'] = null;
          $GLOBALS['TT'] = null;
          unset(
              $GLOBALS['TYPO3_CONF_VARS']['FE']['dontSetCookie'],
              $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][FrontendUserAuthentication::class]
          );
  
          $this->hasFakeFrontEnd = false;
      }
code_tokens: public function discardFakeFrontEnd ( ) { if ( ! $ this -> hasFakeFrontEnd ( ) ) { return ; } $ this -> logoutFrontEndUser ( ) ; $ GLOBALS [ 'TSFE' ] = null ; $ GLOBALS [ 'TT' ] = null ; unset ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'FE' ] [ 'dontSetCookie' ] , $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'SYS' ] [ 'Objects' ] [ FrontendUserAuthentication :: class ] ) ; $ this -> hasFakeFrontEnd = false ; }
docstring: Discards the fake front end.
  
  This function nulls out $GLOBALS['TSFE'] and $GLOBALS['TT']. In addition,
  any logged-in front-end user will be logged out.
  
  The page record for the current front end will _not_ be deleted by this
  function, though.
  
  If no fake front end has been created, this function does nothing.
  
  @return void
docstring_tokens: Discards the fake front end .