Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

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