Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 826-829 (lines=4) @@
823
        }
824
825
        // Date filtering
826
        if (!empty($params['CreatedFrom'])) {
827
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
828
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
829
        }
830
        if (!empty($params['CreatedTo'])) {
831
            $toDate = new DateField(null, null, $params['CreatedTo']);
832
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 830-833 (lines=4) @@
827
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
828
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
829
        }
830
        if (!empty($params['CreatedTo'])) {
831
            $toDate = new DateField(null, null, $params['CreatedTo']);
832
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
833
        }
834
835
        // Categories
836
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {