original_string: protected function replaceEndpoint(string &$stub, string $endpoint)
      {
  
          if (strlen($endpoint) > 0)
              $stub = str_replace('/dummy/endpoint/', $endpoint, $stub);
  
          return $this;
      }
code: protected function replaceEndpoint(string &$stub, string $endpoint)
      {
  
          if (strlen($endpoint) > 0)
              $stub = str_replace('/dummy/endpoint/', $endpoint, $stub);
  
          return $this;
      }
code_tokens: protected function replaceEndpoint ( string & $ stub , string $ endpoint ) { if ( strlen ( $ endpoint ) > 0 ) $ stub = str_replace ( '/dummy/endpoint/' , $ endpoint , $ stub ) ; return $ this ; }
docstring: Replace the endpoint for the given stub.
  
  @param string $stub
  @param string $endpoint
  
  @return $this
docstring_tokens: Replace the endpoint for the given stub .