Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 991-994 (lines=4) @@
988
        }
989
990
        // Date filtering
991
        if (!empty($params['CreatedFrom'])) {
992
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
993
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
994
        }
995
        if (!empty($params['CreatedTo'])) {
996
            $toDate = new DateField(null, null, $params['CreatedTo']);
997
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 995-998 (lines=4) @@
992
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
993
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
994
        }
995
        if (!empty($params['CreatedTo'])) {
996
            $toDate = new DateField(null, null, $params['CreatedTo']);
997
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
998
        }
999
1000
        // Categories
1001
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {