wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub
includes/Query/PrefixFeature.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

    private function internalParseValue( $value ) {
        $trimQuote = '/^"([^"]*)"\s*$/';
        $value = preg_replace( $trimQuote, "$1", $value );
        // NS_MAIN by default
        $namespaces = [ NS_MAIN ];
Severity: Minor
Found in includes/Query/PrefixFeature.php - About 1 hr to fix

    Method parseValue has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function parseValue( $key, $value, $quotedValue, $valueDelimiter, $suffix, WarningCollector $warningCollector ) {
    Severity: Minor
    Found in includes/Query/PrefixFeature.php - About 45 mins to fix

      Method doApply has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          protected function doApply( SearchContext $context, $key, $value, $quotedValue, $negated ) {
      Severity: Minor
      Found in includes/Query/PrefixFeature.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status