Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

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