Code Duplication    Length = 4-4 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 755-758 (lines=4) @@
752
        }
753
754
        // Date filtering
755
        if (!empty($params['CreatedFrom'])) {
756
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
757
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
758
        }
759
        if (!empty($params['CreatedTo'])) {
760
            $toDate = new DateField(null, null, $params['CreatedTo']);
761
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
@@ 759-762 (lines=4) @@
756
            $fromDate = new DateField(null, null, $params['CreatedFrom']);
757
            $list = $list->filter("Created:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
758
        }
759
        if (!empty($params['CreatedTo'])) {
760
            $toDate = new DateField(null, null, $params['CreatedTo']);
761
            $list = $list->filter("Created:LessThanOrEqual", $toDate->dataValue().' 23:59:59');
762
        }
763
764
        // Categories
765
        if (!empty($filters['AppCategory']) && !empty(File::config()->app_categories[$filters['AppCategory']])) {