Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 1033-1036 (lines=4) @@
1030
        }
1031
1032
        // Date filtering
1033
        if (!empty($params['CreatedFrom'])) {
1034
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1035
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1036
        }
1037
        if (!empty($params['CreatedTo'])) {
1038
            $toDate = new DateField(null, null, $params['CreatedTo']);
1039
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 1037-1040 (lines=4) @@
1034
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1035
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1036
        }
1037
        if (!empty($params['CreatedTo'])) {
1038
            $toDate = new DateField(null, null, $params['CreatedTo']);
1039
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
1040
        }
1041
1042
        // Categories
1043
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {