wikimedia/mediawiki-core

View on GitHub
includes/specials/SpecialJavaScriptTest.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method exportJS has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function exportJS() {
        $out = $this->getOutput();
        $req = $this->getContext()->getRequest();
        $rl = $out->getResourceLoader();

Severity: Minor
Found in includes/specials/SpecialJavaScriptTest.php - About 1 hr to fix

    Method renderPage has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function renderPage() {
            $req = $this->getContext()->getRequest();
            $component = $req->getRawVal( 'component' );
            // If set, validate
            $this->getModulesForComponentOrThrow( $component );
    Severity: Minor
    Found in includes/specials/SpecialJavaScriptTest.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status