wikimedia/mediawiki-core

View on GitHub

Showing 11,461 of 11,461 total issues

Avoid too many return statements within this method.
Open

            return $title;
Severity: Major
Found in includes/search/TitleMatcher.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return $srchres;
    Severity: Major
    Found in includes/search/SearchExactMatchRescorer.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return [
                  $html,
                  $this->specialPage->msg( 'parentheses' )->rawParams( $img->getShortDesc() )->escaped(),
                  $this->generateThumbnailHtml( $result, $thumbnail )
              ];
      Severity: Major
      Found in includes/search/searchwidgets/FullSearchResultWidget.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return Status::newGood();
        Severity: Major
        Found in includes/content/ContentModelChange.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return $thumb->toHtml( [
                              'desc-link' => true,
                              'loading' => 'lazy',
                              'alt' => $this->specialPage->msg( 'search-thumbnail-alt' )->params( $title ),
                          ] );
          Severity: Major
          Found in includes/search/searchwidgets/FullSearchResultWidget.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return $mergedContent;
            Severity: Major
            Found in includes/content/TextContentHandler.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return $title;
              Severity: Major
              Found in includes/search/TitleMatcher.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return $title;
                Severity: Major
                Found in includes/search/TitleMatcher.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return $title;
                  Severity: Major
                  Found in includes/search/TitleMatcher.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return $title;
                    Severity: Major
                    Found in includes/search/TitleMatcher.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return Title::makeTitle( NS_MEDIAWIKI, $this->language->ucfirst( $title->getText() ) );
                      Severity: Major
                      Found in includes/search/TitleMatcher.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return $this->getNearMatch( $matches[1] );
                        Severity: Major
                        Found in includes/search/TitleMatcher.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return SpecialPage::getTitleFor( 'Contributions', $title->getDBkey() );
                          Severity: Major
                          Found in includes/search/TitleMatcher.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return $title;
                            Severity: Major
                            Found in includes/search/TitleMatcher.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return Status::newGood( $values );
                              Severity: Major
                              Found in includes/content/ContentModelChange.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return null;
                                Severity: Major
                                Found in includes/search/TitleMatcher.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return $sortLetter;
                                  Severity: Major
                                  Found in includes/collation/IcuCollation.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                            return $this->equalsInternal( $that );
                                    Severity: Major
                                    Found in includes/content/AbstractContent.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                              return $this->generateThumbnailPlaceholderHtml();
                                      Severity: Major
                                      Found in includes/search/searchwidgets/FullSearchResultWidget.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                            return $title;
                                        Severity: Major
                                        Found in includes/search/TitleMatcher.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language