Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 1177-1180 (lines=4) @@
1174
        }
1175
1176
        // Date filtering
1177
        if (!empty($params['CreatedFrom'])) {
1178
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1179
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1180
        }
1181
        if (!empty($params['CreatedTo'])) {
1182
            $toDate = new DateField(null, null, $params['CreatedTo']);
1183
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 1181-1184 (lines=4) @@
1178
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1179
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1180
        }
1181
        if (!empty($params['CreatedTo'])) {
1182
            $toDate = new DateField(null, null, $params['CreatedTo']);
1183
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
1184
        }
1185
1186
        // Categories
1187
        $categories = File::config()->app_categories;