Code Duplication    Length = 3-3 lines in 2 locations

src/Xhgui/Db/Mapper.php 1 location

@@ 49-51 (lines=3) @@
46
     */
47
    protected function _conditions($search)
48
    {
49
        if (!empty($search['limit_custom']) && $search['limit_custom'][0] === "P") {
50
            $search['limit'] = $search['limit_custom'];
51
        }
52
        $hasLimit = (!empty($search['limit']) && $search['limit'] != -1);
53
54
        $conditions = [];

src/Xhgui/Searcher/MongoSearcher.php 1 location

@@ 92-94 (lines=3) @@
89
        $match = $result['conditions'];
90
91
        $col = '$meta.request_date';
92
        if (!empty($search['limit']) && $search['limit'][0] === "P") {
93
            $col = '$meta.request_ts';
94
        }
95
96
        $pipeline = [
97
            ['$match' => $match],