original_string: private function get_request($response, $item, $typeid) {
  
          $response->set_content_type($this->formats[0]);
          $lineitem = gradebookservices::item_for_json($item, substr(parent::get_endpoint(),
                  0, strrpos(parent::get_endpoint(), "/", -10)), $typeid);
          $response->set_body(json_encode($lineitem));
  
      }
code: private function get_request($response, $item, $typeid) {
  
          $response->set_content_type($this->formats[0]);
          $lineitem = gradebookservices::item_for_json($item, substr(parent::get_endpoint(),
                  0, strrpos(parent::get_endpoint(), "/", -10)), $typeid);
          $response->set_body(json_encode($lineitem));
  
      }
code_tokens: private function get_request ( $ response , $ item , $ typeid ) { $ response -> set_content_type ( $ this -> formats [ 0 ] ) ; $ lineitem = gradebookservices :: item_for_json ( $ item , substr ( parent :: get_endpoint ( ) , 0 , strrpos ( parent :: get_endpoint ( ) , "/" , - 10 ) ) , $ typeid ) ; $ response -> set_body ( json_encode ( $ lineitem ) ) ; }
docstring: Process a GET request.
  
  @param \mod_lti\local\ltiservice\response $response Response object for this request.
  @param object $item Grade item instance.
  @param string $typeid Tool Type Id
docstring_tokens: Process a GET request .