Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 1151-1154 (lines=4) @@
1148
        }
1149
1150
        // Date filtering
1151
        if (!empty($params['CreatedFrom'])) {
1152
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1153
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1154
        }
1155
        if (!empty($params['CreatedTo'])) {
1156
            $toDate = new DateField(null, null, $params['CreatedTo']);
1157
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 1155-1158 (lines=4) @@
1152
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1153
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1154
        }
1155
        if (!empty($params['CreatedTo'])) {
1156
            $toDate = new DateField(null, null, $params['CreatedTo']);
1157
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
1158
        }
1159
1160
        // Categories
1161
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {