Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 213-215 (lines=3) @@
210
	 * @throws TDBMException
211
	 */
212
	public function setFetchMode($mode) {
213
		if ($mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
214
			throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
215
		}
216
		$this->mode = $mode;
217
		return $this;
218
	}
@@ 1381-1383 (lines=3) @@
1378
			$countSql .= " ORDER BY ".$orderString;
1379
		}
1380
1381
		if ($mode !== null && $mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
1382
			throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
1383
		}
1384
1385
		$mode = $mode?:$this->mode;
1386