Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

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