Code Duplication    Length = 3-3 lines in 2 locations

src/Xhgui/Db/Mapper.php 1 location

@@ 44-46 (lines=3) @@
41
     */
42
    protected function _conditions($search)
43
    {
44
        if (!empty($search['limit_custom']) && $search['limit_custom'][0] == "P") {
45
            $search['limit'] = $search['limit_custom'];
46
        }
47
        $hasLimit = (!empty($search['limit']) && $search['limit'] != -1);
48
49
        $conditions = array();

src/Xhgui/Searcher/Mongo.php 1 location

@@ 77-79 (lines=3) @@
74
        $match = $result['conditions'];
75
76
        $col = '$meta.request_date';
77
        if (!empty($search['limit']) && $search['limit'][0] == "P") {
78
            $col = '$meta.request_ts';
79
        }
80
81
        $results = $this->_collection->aggregate(array(
82
            array('$match' => $match),