Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 1166-1169 (lines=4) @@
1163
        }
1164
1165
        // Date filtering
1166
        if (!empty($params['CreatedFrom'])) {
1167
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1168
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1169
        }
1170
        if (!empty($params['CreatedTo'])) {
1171
            $toDate = new DateField(null, null, $params['CreatedTo']);
1172
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 1170-1173 (lines=4) @@
1167
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1168
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1169
        }
1170
        if (!empty($params['CreatedTo'])) {
1171
            $toDate = new DateField(null, null, $params['CreatedTo']);
1172
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
1173
        }
1174
1175
        // Categories
1176
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {