Code Duplication    Length = 11-11 lines in 2 locations

include/functions.php 2 locations

@@ 734-744 (lines=11) @@
731
 * @param date $stringDate
732
 * $returns date
733
*/
734
function Smallworld_euroToUsDate($stringDate)
735
{
736
    if ($stringDate != 0 || $stringDate != '') {
737
        $theData = explode("-", trim($stringDate));
738
        $ret = $theData[2] . "-" . $theData[1] . "-" . $theData[0];
739
740
        return $ret;
741
    } else {
742
        return "1900-01-01";
743
    }
744
}
745
746
/*
747
 * Return date format (DD-MM-YYYY) for display
@@ 751-761 (lines=11) @@
748
 * @param date $stringDate
749
 * $returns date
750
*/
751
function Smallworld_UsToEuroDate($stringDate)
752
{
753
    if ($stringDate != 0 || $stringDate != '') {
754
        $theData = explode("-", trim($stringDate));
755
        $ret = $theData[2] . "-" . $theData[1] . "-" . $theData[0];
756
757
        return $ret;
758
    } else {
759
        return "01-01-1900";
760
    }
761
}
762
763
function smallworld_sp ()
764
{