wikimedia/mediawiki-core

View on GitHub

Showing 11,461 of 11,461 total issues

Avoid too many return statements within this method.
Open

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

    Avoid too many return statements within this method.
    Open

            return false;
    Severity: Major
    Found in includes/filerepo/file/File.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return true;
      Severity: Major
      Found in includes/upload/UploadBase.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $this->mTitle;
        Severity: Major
        Found in includes/upload/UploadBase.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return true;
          Severity: Major
          Found in includes/upload/UploadBase.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return true;
            Severity: Major
            Found in includes/upload/UploadBase.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return [ 'uploaded-script-svg', $strippedElement ];
              Severity: Major
              Found in includes/upload/UploadBase.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return false;
                Severity: Major
                Found in includes/upload/UploadBase.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return $status;
                  Severity: Major
                  Found in includes/upload/UploadFromChunks.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return "{$this->url}/transcoded";
                    Severity: Major
                    Found in includes/filerepo/FileRepo.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

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

                        Avoid too many return statements within this method.
                        Open

                                        return null;
                        Severity: Major
                        Found in includes/Rest/Handler/Helper/HtmlInputTransformHelper.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

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

                            Avoid too many return statements within this method.
                            Open

                                                return true;
                            Severity: Major
                            Found in includes/Rest/Handler/ParsoidHandler.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return [
                                          'base' => $baseRev->getId(),
                                          'current' => $currentRev->getId(),
                                          'local' => $localDiff,
                                          'remote' => $remoteDiff,
                              Severity: Major
                              Found in includes/Rest/Handler/UpdateHandler.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return $this->getCachedCount( $type,
                                                    function ( RevisionRecord $fromRev = null ) use ( $pageId ) {
                                                        return $this->getRevertedCount( $pageId, $fromRev );
                                                    }
                                                );
                                Severity: Major
                                Found in includes/Rest/Handler/PageHistoryCountHandler.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

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

                                    Avoid too many return statements within this method.
                                    Open

                                            return false;
                                    Severity: Major
                                    Found in includes/Rest/Handler/ParsoidHandler.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                          return $this->getCachedCount( $type,
                                                              function ( RevisionRecord $fromRev = null ) use ( $pageId ) {
                                                                  return $this->getEditsCount( $pageId, $fromRev );
                                                              }
                                                          );
                                      Severity: Major
                                      Found in includes/Rest/Handler/PageHistoryCountHandler.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return;
                                        Severity: Major
                                        Found in includes/filerepo/AuthenticatedFileEntryPoint.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language