Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 1343-1346 (lines=4) @@
1340
		$rows = 0;
1341
		$res = $this->select( $table, [ 'rowcount' => 'COUNT(*)' ], $conds, $fname, $options );
1342
1343
		if ( $res ) {
1344
			$row = $this->fetchRow( $res );
1345
			$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0;
1346
		}
1347
1348
		return $rows;
1349
	}
@@ 1358-1361 (lines=4) @@
1355
		$sql = $this->selectSQLText( $tables, '1', $conds, $fname, $options, $join_conds );
1356
		$res = $this->query( "SELECT COUNT(*) AS rowcount FROM ($sql) tmp_count", $fname );
1357
1358
		if ( $res ) {
1359
			$row = $this->fetchRow( $res );
1360
			$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0;
1361
		}
1362
1363
		return $rows;
1364
	}