Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

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