Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

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