Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 1126-1129 (lines=4) @@
1123
        }
1124
1125
        // Date filtering
1126
        if (!empty($params['CreatedFrom'])) {
1127
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1128
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1129
        }
1130
        if (!empty($params['CreatedTo'])) {
1131
            $toDate = new DateField(null, null, $params['CreatedTo']);
1132
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 1130-1133 (lines=4) @@
1127
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1128
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1129
        }
1130
        if (!empty($params['CreatedTo'])) {
1131
            $toDate = new DateField(null, null, $params['CreatedTo']);
1132
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
1133
        }
1134
1135
        // Categories
1136
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {