wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub

Showing 718 of 718 total issues

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

        FallbackRunnerContext $context,
        SearchQuery $originalQuery,
        string $suggestedQuery,
        $suggestedQuerySnippet = null,
        int $resultsThreshold = 1
Severity: Minor
Found in includes/Fallbacks/FallbackMethodTrait.php - About 35 mins to fix

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

            Config $mainConfig,
            TitleFormatter $titleFormatter,
            SearchConfig $searchConfig,
            GlobalIdGenerator $globalIdGenerator,
            StreamNameMapper $streamNameMapper
    Severity: Minor
    Found in includes/Event/PageRerenderSerializer.php - About 35 mins to fix

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

          public function __construct( SearchConfig $config, $requestedNamespaces, $localSearch, $withDefaultBoosts, $weight ) {
      Severity: Minor
      Found in includes/Search/Rescore/BoostTemplatesFunctionScoreBuilder.php - About 35 mins to fix

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

                FetchPhaseConfigBuilder $fetchPhaseBuilder,
                $searchContainedSyntax,
                TitleHelper $titleHelper,
                array $extraFieldsToExtract = [],
                bool $deduplicate = false
        Severity: Minor
        Found in includes/Search/FullTextResultsType.php - About 35 mins to fix

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

                  $name,
                  $target,
                  $pattern,
                  $caseInsensitive,
                  $priority = HighlightedField::COSTLY_EXPERT_SYNTAX_PRIORITY
          Severity: Minor
          Found in includes/Search/Fetch/FetchPhaseConfigBuilder.php - About 35 mins to fix

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

                public function __construct( Client $client, $aliasName, $specificIndexName, $startOver, Printer $out ) {
            Severity: Minor
            Found in includes/Maintenance/Validators/IndexAliasValidator.php - About 35 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/DeepcatFeature.php - About 35 mins to fix

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

                    private static function overrideSecret( &$dest, $secret, WebRequest $request, $name, $value = true ) {
                Severity: Minor
                Found in includes/Hooks.php - About 35 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/InTitleFeature.php - About 35 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/FileTypeFeature.php - About 35 mins to fix

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

                          public function build( $self, array $options, $buildChunks, $fromPageId, $toPageId ) {
                      Severity: Minor
                      Found in includes/Maintenance/ChunkBuilder.php - About 35 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/IndexedNumericFieldFeature.php - About 35 mins to fix

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

                                  &$dest,
                                  WebRequest $request,
                                  $name,
                                  $limit = null,
                                  $upperLimit = true
                          Severity: Minor
                          Found in includes/Hooks.php - About 35 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/ContentModelFeature.php - About 35 mins to fix

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

                                  public function __construct( \Elastica\Client $client, $description, $queryType, array $extra = [], array $namespaces = null ) {
                              Severity: Minor
                              Found in includes/SearchRequestLog.php - About 35 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/InSourceFeature.php - About 35 mins to fix

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

                                          Connection $connection,
                                          $templateName,
                                          array $templateDefinition,
                                          array $availablePlugins,
                                          $languageCode
                                  Severity: Minor
                                  Found in includes/Maintenance/IndexTemplateBuilder.php - About 35 mins to fix

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

                                            CirrusSearchResultSet $nested,
                                            array $interleaved,
                                            array $teamA,
                                            array $teamB,
                                            $offset
                                    Severity: Minor
                                    Found in includes/Search/InterleavedResultSet.php - About 35 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/PageIdFeature.php - About 35 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language