Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 1100-1103 (lines=4) @@
1097
        }
1098
1099
        // Date filtering
1100
        if (!empty($params['CreatedFrom'])) {
1101
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1102
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1103
        }
1104
        if (!empty($params['CreatedTo'])) {
1105
            $toDate = new DateField(null, null, $params['CreatedTo']);
1106
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 1104-1107 (lines=4) @@
1101
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1102
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1103
        }
1104
        if (!empty($params['CreatedTo'])) {
1105
            $toDate = new DateField(null, null, $params['CreatedTo']);
1106
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
1107
        }
1108
1109
        // Categories
1110
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {