Code Duplication    Length = 7-7 lines in 2 locations

catalog/includes/functions/general.php 2 locations

@@ 750-756 (lines=7) @@
747
    }
748
749
    $size = sizeof($separators);
750
    for ($i=0; $i<$size; $i++) {
751
      $pos_separator = strpos($date_to_check, $separators[$i]);
752
      if ($pos_separator != false) {
753
        $date_separator_idx = $i;
754
        break;
755
      }
756
    }
757
758
    for ($i=0; $i<$size; $i++) {
759
      $pos_separator = strpos($format_string, $separators[$i]);
@@ 758-764 (lines=7) @@
755
      }
756
    }
757
758
    for ($i=0; $i<$size; $i++) {
759
      $pos_separator = strpos($format_string, $separators[$i]);
760
      if ($pos_separator != false) {
761
        $format_separator_idx = $i;
762
        break;
763
      }
764
    }
765
766
    if ($date_separator_idx != $format_separator_idx) {
767
      return false;