Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 1046-1049 (lines=4) @@
1043
        }
1044
1045
        // Date filtering
1046
        if (!empty($params['CreatedFrom'])) {
1047
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1048
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1049
        }
1050
        if (!empty($params['CreatedTo'])) {
1051
            $toDate = new DateField(null, null, $params['CreatedTo']);
1052
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 1050-1053 (lines=4) @@
1047
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
1048
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
1049
        }
1050
        if (!empty($params['CreatedTo'])) {
1051
            $toDate = new DateField(null, null, $params['CreatedTo']);
1052
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
1053
        }
1054
1055
        // Categories
1056
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {