Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

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