Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 1268-1271 (lines=4) @@
1265
        }
1266
1267
        // Date filtering
1268
        if (!empty($params['CreatedFrom'])) {
1269
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1270
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1271
        }
1272
        if (!empty($params['CreatedTo'])) {
1273
            $toDate = new DateField(null, null, $params['CreatedTo']);
1274
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 1272-1275 (lines=4) @@
1269
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1270
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1271
        }
1272
        if (!empty($params['CreatedTo'])) {
1273
            $toDate = new DateField(null, null, $params['CreatedTo']);
1274
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
1275
        }
1276
1277
        // Categories
1278
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {