Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 252-254 (lines=3) @@
249
	 * @param int $mode
250
	 */
251
	public function setFetchMode($mode) {
252
		if ($mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
253
			throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
254
		}
255
		$this->mode = $mode;
256
		return $this;
257
	}
@@ 1614-1616 (lines=3) @@
1611
			$countSql .= " ORDER BY ".$orderString;
1612
		}
1613
1614
		if ($mode !== null && $mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
1615
			throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
1616
		}
1617
1618
		$mode = $mode?:$this->mode;
1619