Code Duplication    Length = 3-3 lines in 2 locations

catalog/includes/modules/payment/sage_pay_direct.php 2 locations

@@ 139-141 (lines=3) @@
136
      }
137
138
      $year_valid_to_array = array();
139
      for ($i=$today['year']; $i < $today['year']+10; $i++) {
140
        $year_valid_to_array[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
141
      }
142
143
      $year_valid_from_array = array();
144
      for ($i=$today['year']-4; $i < $today['year']+1; $i++) {
@@ 144-146 (lines=3) @@
141
      }
142
143
      $year_valid_from_array = array();
144
      for ($i=$today['year']-4; $i < $today['year']+1; $i++) {
145
        $year_valid_from_array[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
146
      }
147
148
      $content = '';
149