Code Duplication    Length = 3-3 lines in 2 locations

src/Xhgui/Db/Mapper.php 2 locations

@@ 50-52 (lines=3) @@
47
        $hasLimit = (!empty($search['limit']) && $search['limit'] != -1);
48
49
        $conditions = array();
50
        if (!empty($search['date_start']) && !$hasLimit) {
51
            $conditions['meta.request_date']['$gte'] = (string)$search['date_start'];
52
        }
53
        if (!empty($search['date_end']) && !$hasLimit) {
54
            $conditions['meta.request_date']['$lte'] = (string)$search['date_end'];
55
        }
@@ 53-55 (lines=3) @@
50
        if (!empty($search['date_start']) && !$hasLimit) {
51
            $conditions['meta.request_date']['$gte'] = (string)$search['date_start'];
52
        }
53
        if (!empty($search['date_end']) && !$hasLimit) {
54
            $conditions['meta.request_date']['$lte'] = (string)$search['date_end'];
55
        }
56
        if (isset($search['simple_url'])) {
57
            $conditions['meta.simple_url'] = (string)$search['simple_url'];
58
        }