diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2025-03-30 22:50:22 +0200 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2025-04-02 16:36:18 +0000 |
commit | 396b584080d97a3dab44f3f07bc9efef4cc62aaf (patch) | |
tree | 74b107d84cd9a37fbd44f25a95dc737825fcb093 /includes/SiteStats/SiteStatsInit.php | |
parent | 9fd9fe48e33221a663e8cc78b3fd920e4a3b184c (diff) | |
download | mediawikicore-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.php | 4 |
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 |