wikimedia/mediawiki-core

View on GitHub
includes/user/TempUser/DBSerialProvider.php

Summary

Maintainability
A
1 hr
Test Coverage

Method acquireIndex has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function acquireIndex( int $year = 0 ): int {
        if ( $this->numShards ) {
            $shard = mt_rand( 0, $this->numShards - 1 );
        } else {
            $shard = 0;
Severity: Minor
Found in includes/user/TempUser/DBSerialProvider.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status