original_string: protected function get_link_params() {
          $params = [];
          if (SITEID !== $this->calendar->course->id) {
              $params['course'] = $this->calendar->course->id;
          } else if (null !== $this->calendar->categoryid && $this->calendar->categoryid > 0) {
              $params['category'] = $this->calendar->categoryid;
          } else {
              $params['course'] = SITEID;
          }
  
          return $params;
      }
code: protected function get_link_params() {
          $params = [];
          if (SITEID !== $this->calendar->course->id) {
              $params['course'] = $this->calendar->course->id;
          } else if (null !== $this->calendar->categoryid && $this->calendar->categoryid > 0) {
              $params['category'] = $this->calendar->categoryid;
          } else {
              $params['course'] = SITEID;
          }
  
          return $params;
      }
code_tokens: protected function get_link_params ( ) { $ params = [ ] ; if ( SITEID !== $ this -> calendar -> course -> id ) { $ params [ 'course' ] = $ this -> calendar -> course -> id ; } else if ( null !== $ this -> calendar -> categoryid && $ this -> calendar -> categoryid > 0 ) { $ params [ 'category' ] = $ this -> calendar -> categoryid ; } else { $ params [ 'course' ] = SITEID ; } return $ params ; }
docstring: Get the list of URL parameters for calendar links.
  
  @return array
docstring_tokens: Get the list of URL parameters for calendar links .