Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 788-791 (lines=4) @@
785
        }
786
787
        // Date filtering
788
        if (!empty($params['CreatedFrom'])) {
789
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
790
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
791
        }
792
        if (!empty($params['CreatedTo'])) {
793
            $toDate = new DateField(null, null, $params['CreatedTo']);
794
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 792-795 (lines=4) @@
789
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
790
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
791
        }
792
        if (!empty($params['CreatedTo'])) {
793
            $toDate = new DateField(null, null, $params['CreatedTo']);
794
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
795
        }
796
797
        // Categories
798
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {