Code Duplication    Length = 11-11 lines in 2 locations

include/functions.php 2 locations

@@ 957-967 (lines=11) @@
954
 * @param $stringDate
955
 * @return string
956
 */
957
function smallworld_euroToUsDate($stringDate)
958
{
959
    if (0 != $stringDate || '' != $stringDate) {
960
        $theData = explode('-', trim($stringDate));
961
        $ret     = $theData[2] . '-' . $theData[1] . '-' . $theData[0];
962
963
        return $ret;
964
    }
965
966
    return '1900-01-01';
967
}
968
969
/*
970
 * Return date format (DD-MM-YYYY) for display
@@ 978-988 (lines=11) @@
975
 * @param $stringDate
976
 * @return string
977
 */
978
function smallworld_UsToEuroDate($stringDate)
979
{
980
    if (0 != $stringDate || '' != $stringDate) {
981
        $theData = explode('-', trim($stringDate));
982
        $ret     = $theData[2] . '-' . $theData[1] . '-' . $theData[0];
983
984
        return $ret;
985
    }
986
987
    return '01-01-1900';
988
}
989
990
/**
991
 * @return array