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;
@@ 1240-1242 (lines=3) @@
1237
            $countSql .= ' ORDER BY '.$orderString;
1238
        }
1239
1240
        if ($mode !== null && $mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
1241
            throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
1242
        }
1243
1244
        $mode = $mode ?: $this->mode;
1245
@@ 1318-1320 (lines=3) @@
1315
            throw new TDBMException('Unsupported use of GROUP BY in SQL request.');
1316
        }
1317
1318
        if ($mode !== null && $mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
1319
            throw new TDBMException("Unknown fetch mode: '".$mode."'");
1320
        }
1321
1322
        $mode = $mode ?: $this->mode;
1323