@@ -27,7 +27,7 @@ public function shouldCacheStripeCustomer(): bool
2727
2828 public function stripeCustomerCacheKey (): string
2929 {
30- return get_class ($ this ) . ': ' . $ this ->getKey () . ': ' . 'stripe:customer ' ;
30+ return get_class ($ this ). ': ' . $ this ->getKey (). ': ' . 'stripe:customer ' ;
3131 }
3232
3333 public function cacheStripeCustomer (?array $ params = [], $ opts = null ): static
@@ -47,7 +47,7 @@ public function forgetStripeCustomer(): static
4747 public function createStripeCustomer (?array $ params = [], $ opts = null ): \Stripe \Customer
4848 {
4949 if ($ this ->stripe_customer_id ) {
50- throw new Exception ('[ ' . get_class ($ this ) . ': ' . $ this ->getKey () . "] Can't create, Stripe customer already exists ( {$ this ->stripe_customer_id }) " );
50+ throw new Exception ('[ ' . get_class ($ this ). ': ' . $ this ->getKey (). "] Can't create, Stripe customer already exists ( {$ this ->stripe_customer_id }) " );
5151 }
5252
5353 $ customer = $ this ->stripe ()->customers ->create ([
@@ -73,7 +73,7 @@ public function createStripeCustomer(?array $params = [], $opts = null): \Stripe
7373
7474 public function getStripeCustomer (?array $ params = [], $ opts = null ): ?\Stripe \Customer
7575 {
76- if (!$ this ->stripe_customer_id ) {
76+ if (! $ this ->stripe_customer_id ) {
7777 return null ;
7878 }
7979
@@ -89,7 +89,7 @@ public function getStripeCustomer(?array $params = [], $opts = null): ?\Stripe\C
8989
9090 public function getFreshStripeCustomer (?array $ params = [], $ opts = null ): ?\Stripe \Customer
9191 {
92- if (!$ this ->stripe_customer_id ) {
92+ if (! $ this ->stripe_customer_id ) {
9393 return null ;
9494 }
9595
@@ -101,7 +101,7 @@ public function getFreshStripeCustomer(?array $params = [], $opts = null): ?\Str
101101
102102 public function updateStripeCustomer (?array $ params = null , $ opts = null ): \Stripe \Customer
103103 {
104- if (!$ this ->stripe_customer_id ) {
104+ if (! $ this ->stripe_customer_id ) {
105105 throw StripeCustomerDoesntExistExecption::make ($ this , 'update acount ' );
106106 }
107107
@@ -121,7 +121,7 @@ public function updateStripeCustomer(?array $params = null, $opts = null): \Stri
121121
122122 public function deleteStripeCustomer (?array $ params = null , $ opts = null ): ?\Stripe \Customer
123123 {
124- if (!$ this ->stripe_customer_id ) {
124+ if (! $ this ->stripe_customer_id ) {
125125 throw StripeCustomerDoesntExistExecption::make ($ this , 'delete acount ' );
126126 }
127127
@@ -136,7 +136,7 @@ public function deleteStripeCustomer(?array $params = null, $opts = null): ?\Str
136136
137137 public function checkoutStripeCustomer (?array $ params = null , $ opts = null ): ?\Stripe \Checkout \Session
138138 {
139- if (!$ this ->stripe_customer_id ) {
139+ if (! $ this ->stripe_customer_id ) {
140140 throw StripeCustomerDoesntExistExecption::make ($ this , 'checkout ' );
141141 }
142142
@@ -151,7 +151,7 @@ public function checkoutStripeCustomer(?array $params = null, $opts = null): ?\S
151151
152152 public function createStripeBillingPortalSesssion (array $ params = [], $ opts = null ): \Stripe \BillingPortal \Session
153153 {
154- if (!$ this ->stripe_customer_id ) {
154+ if (! $ this ->stripe_customer_id ) {
155155 throw StripeCustomerDoesntExistExecption::make ($ this , 'create billing portal ' );
156156 }
157157
0 commit comments