Code Duplication    Length = 4-4 lines in 2 locations

includes/db/Database.php 2 locations

@@ 1358-1361 (lines=4) @@
1355
		$rows = 0;
1356
		$res = $this->select( $table, [ 'rowcount' => 'COUNT(*)' ], $conds, $fname, $options );
1357
1358
		if ( $res ) {
1359
			$row = $this->fetchRow( $res );
1360
			$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0;
1361
		}
1362
1363
		return $rows;
1364
	}
@@ 1373-1376 (lines=4) @@
1370
		$sql = $this->selectSQLText( $tables, '1', $conds, $fname, $options, $join_conds );
1371
		$res = $this->query( "SELECT COUNT(*) AS rowcount FROM ($sql) tmp_count", $fname );
1372
1373
		if ( $res ) {
1374
			$row = $this->fetchRow( $res );
1375
			$rows = ( isset( $row['rowcount'] ) ) ? (int)$row['rowcount'] : 0;
1376
		}
1377
1378
		return $rows;
1379
	}