Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

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