Code Duplication    Length = 4-4 lines in 2 locations

includes/db/Database.php 2 locations

@@ 1490-1493 (lines=4) @@
1487
		$rows = 0;
1488
		$res = $this->select( $table, [ 'rowcount' => 'COUNT(*)' ], $conds, $fname, $options );
1489
1490
		if ( $res ) {
1491
			$row = $this->fetchRow( $res );
1492
			$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0;
1493
		}
1494
1495
		return $rows;
1496
	}
@@ 1505-1508 (lines=4) @@
1502
		$sql = $this->selectSQLText( $tables, '1', $conds, $fname, $options, $join_conds );
1503
		$res = $this->query( "SELECT COUNT(*) AS rowcount FROM ($sql) tmp_count", $fname );
1504
1505
		if ( $res ) {
1506
			$row = $this->fetchRow( $res );
1507
			$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0;
1508
		}
1509
1510
		return $rows;
1511
	}