Code Duplication    Length = 3-3 lines in 2 locations

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

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