Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 920-923 (lines=4) @@
917
        }
918
919
        // Date filtering
920
        if (!empty($params['CreatedFrom'])) {
921
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
922
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
923
        }
924
        if (!empty($params['CreatedTo'])) {
925
            $toDate = new DateField(null, null, $params['CreatedTo']);
926
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 924-927 (lines=4) @@
921
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
922
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
923
        }
924
        if (!empty($params['CreatedTo'])) {
925
            $toDate = new DateField(null, null, $params['CreatedTo']);
926
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
927
        }
928
929
        // Categories
930
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {