original_string: public static function prepare_filter_values_for_form(tour $tour, \stdClass $data) {
          $filtername = static::get_filter_name();
          $key = "filter_{$filtername}";
          $values = $tour->get_filter_values($filtername);
          if (empty($values)) {
              $values = 0;
          }
          $data->$key = $values;
          return $data;
      }
code: public static function prepare_filter_values_for_form(tour $tour, \stdClass $data) {
          $filtername = static::get_filter_name();
          $key = "filter_{$filtername}";
          $values = $tour->get_filter_values($filtername);
          if (empty($values)) {
              $values = 0;
          }
          $data->$key = $values;
          return $data;
      }
code_tokens: public static function prepare_filter_values_for_form ( tour $ tour , \ stdClass $ data ) { $ filtername = static :: get_filter_name ( ) ; $ key = "filter_{$filtername}" ; $ values = $ tour -> get_filter_values ( $ filtername ) ; if ( empty ( $ values ) ) { $ values = 0 ; } $ data -> $ key = $ values ; return $ data ; }
docstring: Overrides the base prepare the filter values for the form with an integer value.
  
  @param   tour            $tour       The tour to prepare values from
  @param   stdClass        $data       The data value
  @return  stdClass
docstring_tokens: Overrides the base prepare the filter values for the form with an integer value .