Code Duplication    Length = 3-3 lines in 2 locations

src/Mouf/Database/TDBM/TDBMService.php 2 locations

@@ 219-221 (lines=3) @@
216
     */
217
    public function setFetchMode($mode)
218
    {
219
        if ($mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
220
            throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
221
        }
222
        $this->mode = $mode;
223
224
        return $this;
@@ 1434-1436 (lines=3) @@
1431
            $countSql .= ' ORDER BY '.$orderString;
1432
        }
1433
1434
        if ($mode !== null && $mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
1435
            throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
1436
        }
1437
1438
        $mode = $mode ?: $this->mode;
1439