Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

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