Code Duplication    Length = 3-3 lines in 3 locations

src/Mouf/Database/TDBM/TDBMService.php 3 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;
@@ 1303-1305 (lines=3) @@
1300
            $countSql .= ' ORDER BY '.$orderString;
1301
        }
1302
1303
        if ($mode !== null && $mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
1304
            throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
1305
        }
1306
1307
        $mode = $mode ?: $this->mode;
1308
@@ 1378-1380 (lines=3) @@
1375
            throw new TDBMException('Unsupported use of GROUP BY in SQL request.');
1376
        }
1377
1378
        if ($mode !== null && $mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
1379
            throw new TDBMException("Unknown fetch mode: '".$mode."'");
1380
        }
1381
1382
        if ($columnsList !== null) {
1383
            $joinSql = '';