Aerendir/stripe-bundle

View on GitHub

Showing 52 of 52 total issues

Avoid too many return statements within this method.
Open

                return [
                    self::TYPE   => \constant(StripeWebhookSourceEventEvent::class . '::' . $pieces[self::TYPE]),
                    self::OBJECT => $dispatchingEvent,
                ];
Severity: Major
Found in src/Util/EventGuesser.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return [
                        self::TYPE   => \constant(StripeWebhookPingEventEvent::class . '::' . $pieces[self::TYPE]),
                        self::OBJECT => $dispatchingEvent,
                    ];
    Severity: Major
    Found in src/Util/EventGuesser.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return [
                          self::TYPE   => \constant(StripeWebhookInvoiceItemEventEvent::class . '::' . $pieces[self::TYPE]),
                          self::OBJECT => $dispatchingEvent,
                      ];
      Severity: Major
      Found in src/Util/EventGuesser.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return [self::TYPE => null, self::OBJECT => null];
        Severity: Major
        Found in src/Util/EventGuesser.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return [
                              self::TYPE   => \constant(StripeWebhookInvoiceEventEvent::class . '::' . $pieces[self::TYPE]),
                              self::OBJECT => $dispatchingEvent,
                          ];
          Severity: Major
          Found in src/Util/EventGuesser.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return [
                                self::TYPE   => \constant(StripeWebhookCouponEventEvent::class . '::' . $pieces[self::TYPE]),
                                self::OBJECT => $dispatchingEvent,
                            ];
            Severity: Major
            Found in src/Util/EventGuesser.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return [
                                  self::TYPE   => \constant(StripeWebhookProductEventEvent::class . '::' . $pieces[self::TYPE]),
                                  self::OBJECT => $dispatchingEvent,
                              ];
              Severity: Major
              Found in src/Util/EventGuesser.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return [
                                    self::TYPE   => \constant(StripeWebhookRecipientEventEvent::class . '::' . $pieces[self::TYPE]),
                                    self::OBJECT => $dispatchingEvent,
                                ];
                Severity: Major
                Found in src/Util/EventGuesser.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return [
                                      self::TYPE   => \constant(StripeWebhookChargeEventEvent::class . '::' . $pieces[self::TYPE]),
                                      self::OBJECT => $dispatchingEvent,
                                  ];
                  Severity: Major
                  Found in src/Util/EventGuesser.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return [
                                        self::TYPE   => \constant(StripeWebhookOrderReturnEventEvent::class . '::' . $pieces[self::TYPE]),
                                        self::OBJECT => $dispatchingEvent,
                                    ];
                    Severity: Major
                    Found in src/Util/EventGuesser.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return [
                                          self::TYPE   => \constant(StripeWebhookReviewEvent::class . '::' . $pieces[self::TYPE]),
                                          self::OBJECT => $dispatchingEvent,
                                      ];
                      Severity: Major
                      Found in src/Util/EventGuesser.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return [
                                            self::TYPE   => \constant(StripeWebhookCustomerEventEvent::class . '::' . $pieces[self::TYPE]),
                                            self::OBJECT => $dispatchingEvent,
                                        ];
                        Severity: Major
                        Found in src/Util/EventGuesser.php - About 30 mins to fix
                          Severity
                          Category
                          Status
                          Source
                          Language