Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 234-236 (lines=3) @@
231
	 * @param int $mode
232
	 */
233
	public function setFetchMode($mode) {
234
		if ($mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
235
			throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
236
		}
237
		$this->mode = $mode;
238
		return $this;
239
	}
@@ 1404-1406 (lines=3) @@
1401
			$countSql .= " ORDER BY ".$orderString;
1402
		}
1403
1404
		if ($mode !== null && $mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) {
1405
			throw new TDBMException("Unknown fetch mode: '".$this->mode."'");
1406
		}
1407
1408
		$mode = $mode?:$this->mode;
1409