Code Duplication    Length = 6-6 lines in 3 locations

catalog/account_history_info.php 1 location

@@ 101-106 (lines=6) @@
98
        <hr>
99
        <table width="100%" class="pull-right">
100
<?php
101
  for ($i=0, $n=sizeof($order->totals); $i<$n; $i++) {
102
    echo '          <tr>' . "\n" .
103
         '            <td align="right" width="100%">' . $order->totals[$i]['title'] . '&nbsp;</td>' . "\n" .
104
         '            <td align="right">' . $order->totals[$i]['text'] . '</td>' . "\n" .
105
         '          </tr>' . "\n";
106
  }
107
?>
108
        </table>
109
      </div>

catalog/admin/invoice.php 1 location

@@ 118-123 (lines=6) @@
115
      <tr>
116
        <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2">
117
<?php
118
  for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
119
    echo '          <tr>' . "\n" .
120
         '            <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" .
121
         '            <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" .
122
         '          </tr>' . "\n";
123
  }
124
?>
125
        </table></td>
126
      </tr>

catalog/includes/classes/order_total.php 1 location

@@ 88-93 (lines=6) @@
85
86
          if ($OSCOM_OTM->enabled) {
87
            $size = sizeof($OSCOM_OTM->output);
88
            for ($i=0; $i<$size; $i++) {
89
              $output_string .= '              <tr>' . "\n" .
90
                                '                <td align="right" class="main">' . $OSCOM_OTM->output[$i]['title'] . '</td>' . "\n" .
91
                                '                <td align="right" class="main">' . $OSCOM_OTM->output[$i]['text'] . '</td>' . "\n" .
92
                                '              </tr>';
93
            }
94
          }
95
        }
96
      }