Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

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