aboutsummaryrefslogtreecommitdiffstats
path: root/includes/SiteStats/SiteStatsInit.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2025-03-30 22:50:22 +0200
committerUmherirrender <umherirrender_de.wp@web.de>2025-04-02 16:36:18 +0000
commit396b584080d97a3dab44f3f07bc9efef4cc62aaf (patch)
tree74b107d84cd9a37fbd44f25a95dc737825fcb093 /includes/SiteStats/SiteStatsInit.php
parent9fd9fe48e33221a663e8cc78b3fd920e4a3b184c (diff)
downloadmediawikicore-396b584080d97a3dab44f3f07bc9efef4cc62aaf.tar.gz
mediawikicore-396b584080d97a3dab44f3f07bc9efef4cc62aaf.zip
Use type declaration on undocumented private functions
Change-Id: I0d8d2237500ed6f18439410c902d47c42e4119bc
Diffstat (limited to 'includes/SiteStats/SiteStatsInit.php')
-rw-r--r--includes/SiteStats/SiteStatsInit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/SiteStats/SiteStatsInit.php b/includes/SiteStats/SiteStatsInit.php
index c83330793b64..ffa0bfad12d1 100644
--- a/includes/SiteStats/SiteStatsInit.php
+++ b/includes/SiteStats/SiteStatsInit.php
@@ -69,7 +69,7 @@ class SiteStatsInit {
return $this->edits;
}
- private function countTableRows( string $tableName ) {
+ private function countTableRows( string $tableName ): int {
return (int)$this->dbr->newSelectQueryBuilder()
->select( 'COUNT(*)' )
->from( $tableName )
@@ -178,7 +178,7 @@ class SiteStatsInit {
}
}
- private function getShardedValue( $value, $noShards, $rowId ) {
+ private function getShardedValue( int $value, int $noShards, int $rowId ): int {
$remainder = $value % $noShards;
$quotient = (int)( ( $value - $remainder ) / $noShards );
// Add the reminder to the first row