Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

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