original_string: public function get_endpoint_url($type) {
          $endpoint = endpoint::get_record([
              'issuerid' => $this->get('id'),
              'name' => $type . '_endpoint'
          ]);
  
          if ($endpoint) {
              return $endpoint->get('url');
          }
          return false;
      }
code: public function get_endpoint_url($type) {
          $endpoint = endpoint::get_record([
              'issuerid' => $this->get('id'),
              'name' => $type . '_endpoint'
          ]);
  
          if ($endpoint) {
              return $endpoint->get('url');
          }
          return false;
      }
code_tokens: public function get_endpoint_url ( $ type ) { $ endpoint = endpoint :: get_record ( [ 'issuerid' => $ this -> get ( 'id' ) , 'name' => $ type . '_endpoint' ] ) ; if ( $ endpoint ) { return $ endpoint -> get ( 'url' ) ; } return false ; }
docstring: Helper the get a named service endpoint.
  @param string $type
  @return string|false
docstring_tokens: Helper the get a named service endpoint .