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;
@@ 1270-1272 (lines=3) @@
1267
            $countSql .= ' ORDER BY '.$orderString;
1268
        }
1269
1270
        if ($mode !== null && $mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
1271
            throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
1272
        }
1273
1274
        $mode = $mode ?: $this->mode;
1275