original_string: protected function get_url_params() {
          $params = array(
              'id'         => $this->cm->id,
              'mode'       => $this->mode,
              'attempts'   => $this->attempts,
              'onlygraded' => $this->onlygraded,
          );
  
          if ($this->states) {
              $params['states'] = implode('-', $this->states);
          }
  
          if (groups_get_activity_groupmode($this->cm, $this->course)) {
              $params['group'] = $this->group;
          }
          return $params;
      }
code: protected function get_url_params() {
          $params = array(
              'id'         => $this->cm->id,
              'mode'       => $this->mode,
              'attempts'   => $this->attempts,
              'onlygraded' => $this->onlygraded,
          );
  
          if ($this->states) {
              $params['states'] = implode('-', $this->states);
          }
  
          if (groups_get_activity_groupmode($this->cm, $this->course)) {
              $params['group'] = $this->group;
          }
          return $params;
      }
code_tokens: protected function get_url_params ( ) { $ params = array ( 'id' => $ this -> cm -> id , 'mode' => $ this -> mode , 'attempts' => $ this -> attempts , 'onlygraded' => $ this -> onlygraded , ) ; if ( $ this -> states ) { $ params [ 'states' ] = implode ( '-' , $ this -> states ) ; } if ( groups_get_activity_groupmode ( $ this -> cm , $ this -> course ) ) { $ params [ 'group' ] = $ this -> group ; } return $ params ; }
docstring: Get the URL parameters required to show the report with these options.
  @return array URL parameter name => value.
docstring_tokens: Get the URL parameters required to show the report with these options .