wikimedia/mediawiki-core

View on GitHub

Showing 11,461 of 11,461 total issues

Avoid too many return statements within this method.
Open

            return $host;
Severity: Major
Found in includes/ExternalLinks/LinkFilter.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return wfMessage( 'autosumm-replace' )->rawParams( $truncatedtext )
                        ->inContentLanguage()->text();
    Severity: Major
    Found in includes/content/ContentHandler.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return 'newblank';
      Severity: Major
      Found in includes/content/ContentHandler.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return 'newpage';
        Severity: Major
        Found in includes/content/ContentHandler.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return 'contentmodelchange';
          Severity: Major
          Found in includes/content/ContentHandler.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return wfMessage( 'autosumm-newblank' )->inContentLanguage()->text();
            Severity: Major
            Found in includes/content/ContentHandler.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                                      return '[' . IPUtils::sanitizeIP( "{$cutIp}:1" ) . ']';
              Severity: Major
              Found in includes/ExternalLinks/LinkFilter.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return 'replace';
                Severity: Major
                Found in includes/content/ContentHandler.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return wfMessage( 'autosumm-new' )->rawParams( $truncatedtext )
                                      ->inContentLanguage()->text();
                  Severity: Major
                  Found in includes/content/ContentHandler.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return wfMessage( 'autosumm-blank' )->inContentLanguage()->text();
                    Severity: Major
                    Found in includes/content/ContentHandler.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                          return 'V6.' .
                                              substr( implode( '.', explode( ':', IPUtils::sanitizeIP( "{$cutIp}:1" ) ) ), 0, -1 ) .
                                              '*.';
                      Severity: Major
                      Found in includes/ExternalLinks/LinkFilter.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

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

                          Avoid too many return statements within this method.
                          Open

                                  return $containerCategory;
                          Severity: Major
                          Found in includes/Category/TrackingCategories.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                                return WaitConditionLoop::CONDITION_REACHED;
                            Severity: Major
                            Found in includes/config/EtcdConfig.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return '';
                              Severity: Major
                              Found in includes/content/ContentHandler.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

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

                                  Avoid too many return statements within this method.
                                  Open

                                              return 'V4.' . implode( '.', array_map( static function ( $v ) {
                                                  return $v === '*' ? $v : (int)$v;
                                              }, explode( '.', $host ) ) ) . '.';
                                  Severity: Major
                                  Found in includes/ExternalLinks/LinkFilter.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                return implode( '.', array_reverse( explode( '.', $host ) ) ) . '.';
                                    Severity: Major
                                    Found in includes/ExternalLinks/LinkFilter.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                              return $s;
                                      Severity: Major
                                      Found in includes/tidy/RemexCompatFormatter.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return [ $this->getWikiText( $status, $options ), [] ];
                                        Severity: Major
                                        Found in includes/Status/StatusFormatter.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language