original_string: public function detail($req)
      {
          $event = Event::get()->byID($req->param('ID'));
          if (!$event) {
              return $this->httpError(404);
          }
          return array(
              'Event'    => $event,
          );
      }
code: public function detail($req)
      {
          $event = Event::get()->byID($req->param('ID'));
          if (!$event) {
              return $this->httpError(404);
          }
          return array(
              'Event'    => $event,
          );
      }
code_tokens: public function detail ( $ req ) { $ event = Event :: get ( ) -> byID ( $ req -> param ( 'ID' ) ) ; if ( ! $ event ) { return $ this -> httpError ( 404 ) ; } return array ( 'Event' => $ event , ) ; }
docstring: Displays details of an event
  @param $req
  @return array
docstring_tokens: Displays details of an event