Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 843-846 (lines=4) @@
840
        }
841
842
        // Date filtering
843
        if (!empty($params['CreatedFrom'])) {
844
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
845
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
846
        }
847
        if (!empty($params['CreatedTo'])) {
848
            $toDate = new DateField(null, null, $params['CreatedTo']);
849
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 847-850 (lines=4) @@
844
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
845
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
846
        }
847
        if (!empty($params['CreatedTo'])) {
848
            $toDate = new DateField(null, null, $params['CreatedTo']);
849
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
850
        }
851
852
        // Categories
853
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {