Code Duplication    Length = 11-11 lines in 2 locations

include/functions.php 2 locations

@@ 847-857 (lines=11) @@
844
 * @param $stringDate
845
 * @return string
846
 */
847
function smallworld_euroToUsDate($stringDate)
848
{
849
    if (0 != $stringDate || '' != $stringDate) {
850
        $theData = explode('-', trim($stringDate));
851
        $ret     = $theData[2] . '-' . $theData[1] . '-' . $theData[0];
852
853
        return $ret;
854
    }
855
856
    return '1900-01-01';
857
}
858
859
/*
860
 * Return date format (DD-MM-YYYY) for display
@@ 868-878 (lines=11) @@
865
 * @param $stringDate
866
 * @return string
867
 */
868
function smallworld_UsToEuroDate($stringDate)
869
{
870
    if (0 != $stringDate || '' != $stringDate) {
871
        $theData = explode('-', trim($stringDate));
872
        $ret     = $theData[2] . '-' . $theData[1] . '-' . $theData[0];
873
874
        return $ret;
875
    }
876
877
    return '01-01-1900';
878
}
879
880
/**
881
 * @return array