original_string: protected function getListReportShipping($count = false)
      {
          $list = $this->shipping->getList();
          $allowed = $this->getAllowedFiltersReportShipping();
  
          $this->filterList($list, $allowed, $this->query_filter);
          $this->sortList($list, $allowed, $this->query_filter, array('id' => 'asc'));
  
          if ($count) {
              return count($list);
          }
  
          $this->limitList($list, $this->data_limit);
          return $list;
      }
code: protected function getListReportShipping($count = false)
      {
          $list = $this->shipping->getList();
          $allowed = $this->getAllowedFiltersReportShipping();
  
          $this->filterList($list, $allowed, $this->query_filter);
          $this->sortList($list, $allowed, $this->query_filter, array('id' => 'asc'));
  
          if ($count) {
              return count($list);
          }
  
          $this->limitList($list, $this->data_limit);
          return $list;
      }
code_tokens: protected function getListReportShipping ( $ count = false ) { $ list = $ this -> shipping -> getList ( ) ; $ allowed = $ this -> getAllowedFiltersReportShipping ( ) ; $ this -> filterList ( $ list , $ allowed , $ this -> query_filter ) ; $ this -> sortList ( $ list , $ allowed , $ this -> query_filter , array ( 'id' => 'asc' ) ) ; if ( $ count ) { return count ( $ list ) ; } $ this -> limitList ( $ list , $ this -> data_limit ) ; return $ list ; }
docstring: Returns an array of shipping methods or counts them
  @param bool $count
  @return array|int
docstring_tokens: Returns an array of shipping methods or counts them