wikimedia/mediawiki-core

View on GitHub
includes/parser/ParserFactory.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method __construct has 21 arguments (exceeds 4 allowed). Consider refactoring.
Open

        ServiceOptions $svcOptions,
        MagicWordFactory $magicWordFactory,
        Language $contLang,
        UrlUtils $urlUtils,
        SpecialPageFactory $spFactory,
Severity: Major
Found in includes/parser/ParserFactory.php - About 2 hrs to fix

    Method create has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function create(): Parser {
            self::$inParserFactory++;
            try {
                return new Parser(
                    $this->svcOptions,
    Severity: Minor
    Found in includes/parser/ParserFactory.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status