Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

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