Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 201-203 (lines=3) @@
198
     */
199
    public function setFetchMode($mode)
200
    {
201
        if ($mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
202
            throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
203
        }
204
        $this->mode = $mode;
205
206
        return $this;
@@ 1297-1299 (lines=3) @@
1294
            $countSql .= ' ORDER BY '.$orderString;
1295
        }
1296
1297
        if ($mode !== null && $mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
1298
            throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
1299
        }
1300
1301
        $mode = $mode ?: $this->mode;
1302