Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 801-804 (lines=4) @@
798
        }
799
800
        // Date filtering
801
        if (!empty($params['CreatedFrom'])) {
802
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
803
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
804
        }
805
        if (!empty($params['CreatedTo'])) {
806
            $toDate = new DateField(null, null, $params['CreatedTo']);
807
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 805-808 (lines=4) @@
802
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
803
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
804
        }
805
        if (!empty($params['CreatedTo'])) {
806
            $toDate = new DateField(null, null, $params['CreatedTo']);
807
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
808
        }
809
810
        // Categories
811
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {