wikimedia/mediawiki-extensions-Translate

View on GitHub
src/Statistics/TranslatorActivityQuery.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

    public function inAllLanguages(): array {
        $dbr = $this->loadBalancer->getConnection( DB_REPLICA, 'vslow' );

        $res = $dbr->newSelectQueryBuilder()
            ->select( [
Severity: Minor
Found in src/Statistics/TranslatorActivityQuery.php - About 1 hr to fix

    Method inLanguage has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function inLanguage( string $code ): array {
            $dbr = $this->loadBalancer->getConnection( DB_REPLICA, 'vslow' );
    
            $res = $dbr->newSelectQueryBuilder()
                ->select( [
    Severity: Minor
    Found in src/Statistics/TranslatorActivityQuery.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status