original_string: public function getBaseRequest()
      {
          if (!isset($this->baseRequest)) {
              $this->baseRequest = new ServerRequest();
          }
          
          $request = $this->baseRequest;
          
          if ($request instanceof GlobalEnvironmentInterface && $request->isStale() === false) {
              $request = $request->withGlobalEnvironment(true); // Make sure base request is stale
          }
          
          return $request;
      }
code: public function getBaseRequest()
      {
          if (!isset($this->baseRequest)) {
              $this->baseRequest = new ServerRequest();
          }
          
          $request = $this->baseRequest;
          
          if ($request instanceof GlobalEnvironmentInterface && $request->isStale() === false) {
              $request = $request->withGlobalEnvironment(true); // Make sure base request is stale
          }
          
          return $request;
      }
code_tokens: public function getBaseRequest ( ) { if ( ! isset ( $ this -> baseRequest ) ) { $ this -> baseRequest = new ServerRequest ( ) ; } $ request = $ this -> baseRequest ; if ( $ request instanceof GlobalEnvironmentInterface && $ request -> isStale ( ) === false ) { $ request = $ request -> withGlobalEnvironment ( true ) ; // Make sure base request is stale } return $ request ; }
docstring: Get the base request
  
  @return ServerRequestInterface
docstring_tokens: Get the base request