original_string: protected function getEndpointHandler($apiName, ReflectionClass $endpointReflector) {
          if(isset($this->endpointObjectCache[$apiName])) {
              return $this->endpointObjectCache[$apiName];
          }
  
          //Create a new instance and store it
          $endpointInstance = $endpointReflector->newInstanceArgs([$this->getClient()]);
          $this->endpointObjectCache[$apiName] = $endpointInstance;
  
          return $endpointInstance;
      }
code: protected function getEndpointHandler($apiName, ReflectionClass $endpointReflector) {
          if(isset($this->endpointObjectCache[$apiName])) {
              return $this->endpointObjectCache[$apiName];
          }
  
          //Create a new instance and store it
          $endpointInstance = $endpointReflector->newInstanceArgs([$this->getClient()]);
          $this->endpointObjectCache[$apiName] = $endpointInstance;
  
          return $endpointInstance;
      }
code_tokens: protected function getEndpointHandler ( $ apiName , ReflectionClass $ endpointReflector ) { if ( isset ( $ this -> endpointObjectCache [ $ apiName ] ) ) { return $ this -> endpointObjectCache [ $ apiName ] ; } //Create a new instance and store it $ endpointInstance = $ endpointReflector -> newInstanceArgs ( [ $ this -> getClient ( ) ] ) ; $ this -> endpointObjectCache [ $ apiName ] = $ endpointInstance ; return $ endpointInstance ; }
docstring: Returns a new instance from the given endpoint handler. In the instance creation the client is
  passed to tha handler as parameter.
  
  This method also do runtime caching. All endpoint handler cached by name
  
  @param string $apiName Used as cache key name
  @param \ReflectionClass $endpointReflector
  
  @return \Phabricator\Endpoints\EndpointInterface
docstring_tokens: Returns a new instance from the given endpoint handler . In the instance creation the client is passed to tha handler as parameter .