wikimedia/mediawiki-core

View on GitHub
includes/specials/SpecialRestSandbox.php

Summary

Maintainability
A
3 hrs
Test Coverage

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

    public function execute( $sub ) {
        $this->setHeaders();
        $out = $this->getOutput();
        $this->addHelpLink( 'Help:RestSandbox' );

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

    Method showForm has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function showForm( array $apiSpecs ) {
            $apis = [];
    
            foreach ( $apiSpecs as $key => $spec ) {
                if ( isset( $spec['msg'] ) ) {
    Severity: Minor
    Found in includes/specials/SpecialRestSandbox.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status