Code Duplication    Length = 11-11 lines in 2 locations

plugin/sepe/ws/Sepe.php 2 locations

@@ 1178-1188 (lines=11) @@
1175
    }
1176
1177
    // yyyy-mm-dd to dd/mm/yyyy
1178
    public static function undoFixDate($date)
1179
    {
1180
        if ($date == '0000-00-00' || empty($date)) {
1181
            return null;
1182
        }
1183
1184
        $date = explode('-', $date);
1185
        //
1186
        $date = $date[2].'/'.$date[1].'/'.$date[0];
1187
        return $date;
1188
    }
1189
1190
    // dd/mm/yyyy to yyyy-mm-dd
1191
    public static function fixDate($date)
@@ 1191-1201 (lines=11) @@
1188
    }
1189
1190
    // dd/mm/yyyy to yyyy-mm-dd
1191
    public static function fixDate($date)
1192
    {
1193
        if ($date == '00/00/0000' || empty($date)) {
1194
            return null;
1195
        }
1196
1197
        $date = explode('/', $date);
1198
        // Year-month-day
1199
        $date = $date[2].'-'.$date[1].'-'.$date[0];
1200
        return $date;
1201
    }
1202
1203
    protected function checkAuth()
1204
    {