pixelfed/pixelfed

View on GitHub

Showing 1,326 of 1,561 total issues

Avoid too many return statements within this method.
Open

                                       return false;
Severity: Major
Found in app/Http/Controllers/PublicApiController.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return $status;
    Severity: Major
    Found in app/Http/Controllers/PublicApiController.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                              return $q->offset($page * 8 - 8);
      Severity: Major
      Found in app/Http/Controllers/DirectMessageController.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                                return $q->offset($page * 8 - 8);
        Severity: Major
        Found in app/Http/Controllers/DirectMessageController.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return [
                              'id' => 'pfs:'.$profile['id'],
                              'user' => [
                                  'id' => (string) $profile['id'],
                                  'username' => $profile['username'],
          Severity: Major
          Found in app/Http/Controllers/Stories/StoryApiV1Controller.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                                return $status;
            Severity: Major
            Found in app/Http/Controllers/PublicApiController.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                                  return $r->from_id !== $profile ? [
                                      'id' => (string) $r->from_id,
                                      'name' => $r->author->name,
                                      'username' => $r->author->username,
                                      'avatar' => $r->author->avatarUrl(),
              Severity: Major
              Found in app/Http/Controllers/DirectMessageController.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                    return $r->from_id !== $profile ? [
                                        'id' => (string) $r->from_id,
                                        'name' => $r->author->name,
                                        'username' => $r->author->username,
                                        'avatar' => $r->author->avatarUrl(),
                Severity: Major
                Found in app/Http/Controllers/DirectMessageController.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return $s && isset($s['account']) && in_array($s['account']['id'], $filtered) == false;
                  Severity: Major
                  Found in app/Http/Controllers/PublicApiController.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                            return;
                    Severity: Major
                    Found in app/Console/Commands/CloudMediaMigrate.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return $actor->private_key;
                      Severity: Major
                      Found in app/Console/Commands/GenerateInstanceActor.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return $domain;
                        Severity: Major
                        Found in app/Console/Commands/DeleteUserDomainBlock.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return $this->fixMissingAvatars();
                          Severity: Major
                          Found in app/Console/Commands/AvatarStorage.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return $this->relistInstance();
                            Severity: Major
                            Found in app/Console/Commands/InstanceManager.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                                      return;
                              Severity: Major
                              Found in app/Console/Commands/CloudMediaMigrate.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return url('/storage/avatars/default.jpg');
                                Severity: Major
                                Found in app/Profile.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return '<span class="border border-info px-3 py-1 rounded text-white font-weight-bold">Awaiting User Response</span>';
                                  Severity: Major
                                  Found in app/Models/CuratedRegister.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return $this->unbanInstance();
                                    Severity: Major
                                    Found in app/Console/Commands/InstanceManager.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return;
                                      Severity: Major
                                      Found in app/Console/Commands/UserRegistrationMagicLink.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return url('/storage/avatars/default.jpg');
                                        Severity: Major
                                        Found in app/Profile.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language