Code Duplication    Length = 4-4 lines in 2 locations

includes/libs/rdbms/database/Database.php 2 locations

@@ 1326-1329 (lines=4) @@
1323
		$rows = 0;
1324
		$res = $this->select( $table, [ 'rowcount' => 'COUNT(*)' ], $conds, $fname, $options );
1325
1326
		if ( $res ) {
1327
			$row = $this->fetchRow( $res );
1328
			$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0;
1329
		}
1330
1331
		return $rows;
1332
	}
@@ 1341-1344 (lines=4) @@
1338
		$sql = $this->selectSQLText( $tables, '1', $conds, $fname, $options, $join_conds );
1339
		$res = $this->query( "SELECT COUNT(*) AS rowcount FROM ($sql) tmp_count", $fname );
1340
1341
		if ( $res ) {
1342
			$row = $this->fetchRow( $res );
1343
			$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0;
1344
		}
1345
1346
		return $rows;
1347
	}