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;
@@ 1287-1289 (lines=3) @@
1284
            $countSql .= ' ORDER BY '.$orderString;
1285
        }
1286
1287
        if ($mode !== null && $mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
1288
            throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
1289
        }
1290
1291
        $mode = $mode ?: $this->mode;
1292