wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub

Showing 718 of 718 total issues

Avoid too many return statements within this method.
Open

            return $this->failure( $e, $connection );
Severity: Major
Found in includes/ElasticsearchIntermediary.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return;
    Severity: Major
    Found in includes/BuildDocument/DocumentSizeLimiter.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return [
                          'escaped' => self::switchSearchToExactForWildcards( $searchContext, $term ),
                          'nonAll' => self::switchSearchToExactForWildcards( $searchContext, $term )
                      ];
      Severity: Major
      Found in includes/Query/FullTextQueryStringQueryBuilder.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $this->success( $resultsTransformer !== null ? $resultsTransformer( $multiResultSet ) : $multiResultSet, $connection );
        Severity: Major
        Found in includes/ElasticsearchIntermediary.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return [];
          Severity: Major
          Found in includes/Util.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return $siz + strlen( $str );
            Severity: Major
            Found in includes/BuildDocument/DocumentSizeLimiter.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return $clean;
              Severity: Major
              Found in includes/BuildDocument/ParserOutputPageProperties.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return false;
                Severity: Major
                Found in maintenance/UpdateSuggesterIndex.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return false;
                  Severity: Major
                  Found in maintenance/UpdateSuggesterIndex.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return true;
                    Severity: Major
                    Found in maintenance/UpdateOneSearchIndexConfig.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return null;
                      Severity: Major
                      Found in maintenance/ForceSearchIndex.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return $page;
                        Severity: Major
                        Found in maintenance/ForceSearchIndex.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                              return Status::newGood( $result );
                          Severity: Major
                          Found in maintenance/RunSearch.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return false;
                            Severity: Major
                            Found in maintenance/UpdateSuggesterIndex.php - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return "Index on wrong cluster of replica, expected in " + ', '.join(
                              Severity: Major
                              Found in scripts/check_indices.py - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return $mresponses->transformAndGetMulti( $this->searchContext->getResultsType(), array_keys( $iwQueries ),
                                            static function ( array $v ) use ( $blockScorer ) {
                                                return $blockScorer->reorder( $v );
                                            } );
                                Severity: Major
                                Found in includes/InterwikiSearcher.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return false;
                                  Severity: Major
                                  Found in maintenance/UpdateSuggesterIndex.php - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return (
                                    Severity: Major
                                    Found in scripts/check_indices.py - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return (
                                      Severity: Major
                                      Found in scripts/check_indices.py - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return true;
                                        Severity: Major
                                        Found in maintenance/UpdateSuggesterIndex.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language