Code Duplication    Length = 11-11 lines in 2 locations

htdocs/xoops_lib/Xoops/Core/Kernel/Criteria.php 1 location

@@ 168-178 (lines=11) @@
165
        }
166
        $expr = $this->buildExpressionQb($qb);
167
168
        switch (strtolower($whereMode)) {
169
            case 'and':
170
                $qb->andWhere($expr);
171
                break;
172
            case 'or':
173
                $qb->orWhere($expr);
174
                break;
175
            case '':
176
                $qb->where($expr);
177
                break;
178
        }
179
180
        if ($this->limit!=0 || $this->start!=0) {
181
            $qb->setFirstResult($this->start)

htdocs/xoops_lib/Xoops/Core/Kernel/CriteriaCompo.php 1 location

@@ 165-175 (lines=11) @@
162
        if (!empty($expr)) {
163
            $expr = '(' . $expr . ')'; // group all conditions in this compo
164
165
            switch (strtolower($whereMode)) {
166
                case 'and':
167
                    $qb->andWhere($expr);
168
                    break;
169
                case 'or':
170
                    $qb->orWhere($expr);
171
                    break;
172
                case '':
173
                    $qb->where($expr);
174
                    break;
175
            }
176
        }
177
178
        if ($this->limit!=0 || $this->start!=0) {