Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

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