wikimedia/mediawiki-extensions-Wikibase

View on GitHub

Showing 1,432 of 2,096 total issues

Avoid too many return statements within this method.
Open

            return $conflict;
Severity: Major
Found in repo/includes/Store/BagOStuffSiteLinkConflictLookup.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return false;
    Severity: Major
    Found in client/includes/Hooks/EchoNotificationsHandlers.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return Status::newFatal( 'wikibase-undo-nocontent', $this->getTitle(), $latestRevision->getId() );
      Severity: Major
      Found in repo/includes/Actions/EditEntityAction.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return Status::newGood( [ $olderRevision, $newerRevision, $latestRevision ] );
        Severity: Major
        Found in repo/includes/Actions/EditEntityAction.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return false;
          Severity: Major
          Found in client/includes/Hooks/EchoNotificationsHandlers.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return wfEscapeWikiText( strval( $value ) );
            Severity: Major
            Found in repo/includes/Localizer/MessageParameterFormatter.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return [ 'read' ];
              Severity: Major
              Found in repo/includes/Store/WikiPageEntityStorePermissionChecker.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return $status;
                Severity: Major
                Found in repo/includes/Specials/SpecialSetSiteLink.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return [ 'read', 'edit' ];
                  Severity: Major
                  Found in repo/includes/Store/WikiPageEntityStorePermissionChecker.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return $dataValue->getValue();
                    Severity: Major
                    Found in repo/includes/PropertyInfoBuilder.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return $formFields;
                      Severity: Major
                      Found in repo/includes/Specials/SpecialNewItem.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                            return true;
                        Severity: Major
                        Found in repo/includes/Specials/SpecialNewItem.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

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

                            Avoid too many return statements within this method.
                            Open

                                            return null;
                            Severity: Major
                            Found in repo/includes/Hooks/SidebarBeforeOutputHookHandler.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                      return $result;
                              Severity: Major
                              Found in repo/includes/Validators/SnakValidator.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return Result::newSuccess();
                                Severity: Major
                                Found in repo/includes/Validators/EntityUriValidator.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

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

                                    Avoid too many return statements within this method.
                                    Open

                                            return $entityId;
                                    Severity: Major
                                    Found in repo/includes/Hooks/SidebarBeforeOutputHookHandler.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return null;
                                      Severity: Major
                                      Found in repo/includes/Hooks/SidebarBeforeOutputHookHandler.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                return null;
                                        Severity: Major
                                        Found in repo/includes/LinkedData/EntityDataFormatProvider.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language