Code Duplication    Length = 11-11 lines in 2 locations

include/functions.php 2 locations

@@ 827-837 (lines=11) @@
824
 * @param $stringDate
825
 * @return string
826
 */
827
function Smallworld_euroToUsDate($stringDate)
828
{
829
    if (0 != $stringDate || '' != $stringDate) {
830
        $theData = explode('-', trim($stringDate));
831
        $ret     = $theData[2] . '-' . $theData[1] . '-' . $theData[0];
832
        return $ret;
833
    } else {
834
        return '1900-01-01';
835
    }
836
}
837
838
/*
839
 * Return date format (DD-MM-YYYY) for display
840
 * @param date $stringDate
@@ 847-857 (lines=11) @@
844
 * @param $stringDate
845
 * @return string
846
 */
847
function Smallworld_UsToEuroDate($stringDate)
848
{
849
    if (0 != $stringDate || '' != $stringDate) {
850
        $theData = explode('-', trim($stringDate));
851
        $ret     = $theData[2] . '-' . $theData[1] . '-' . $theData[0];
852
        return $ret;
853
    } else {
854
        return '01-01-1900';
855
    }
856
}
857
858
/**
859
 * @return array
860
 */