wikimedia/mediawiki-extensions-UniversalLanguageSelector

View on GitHub
includes/Api/ApiULSSetLanguage.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    public function execute() {
        $request = $this->getRequest();
        if ( !$request->wasPosted() ) {
            $this->dieWithError( [ 'apierror-mustbeposted', $request->getText( 'action' ) ] );
        }
Severity: Minor
Found in includes/Api/ApiULSSetLanguage.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status