Code Duplication    Length = 3-3 lines in 4 locations

catalog/includes/modules/shipping/flat.php 1 location

@@ 59-61 (lines=3) @@
56
                                                     'title' => OSCOM::getDef('module_shipping_flat_text_way'),
57
                                                     'cost' => MODULE_SHIPPING_FLAT_COST)));
58
59
      if ($this->tax_class > 0) {
60
        $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
61
      }
62
63
      if (tep_not_null($this->icon)) $this->quotes['icon'] = HTML::image($this->icon, $this->title);
64

catalog/includes/modules/shipping/item.php 1 location

@@ 61-63 (lines=3) @@
58
                                                     'title' => OSCOM::getDef('module_shipping_item_text_way'),
59
                                                     'cost' => (MODULE_SHIPPING_ITEM_COST * $number_of_items) + MODULE_SHIPPING_ITEM_HANDLING)));
60
61
      if ($this->tax_class > 0) {
62
        $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
63
      }
64
65
      if (tep_not_null($this->icon)) $this->quotes['icon'] = HTML::image($this->icon, $this->title);
66

catalog/includes/modules/shipping/table.php 1 location

@@ 78-80 (lines=3) @@
75
                                                     'title' => OSCOM::getDef('module_shipping_table_text_way'),
76
                                                     'cost' => $shipping + MODULE_SHIPPING_TABLE_HANDLING)));
77
78
      if ($this->tax_class > 0) {
79
        $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
80
      }
81
82
      if (tep_not_null($this->icon)) $this->quotes['icon'] = HTML::image($this->icon, $this->title);
83

catalog/includes/modules/shipping/zones.php 1 location

@@ 162-164 (lines=3) @@
159
                                                     'title' => $shipping_method,
160
                                                     'cost' => $shipping_cost)));
161
162
      if ($this->tax_class > 0) {
163
        $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
164
      }
165
166
      if (tep_not_null($this->icon)) $this->quotes['icon'] = HTML::image($this->icon, $this->title);
167