Skip to content

Commit d38b34d

Browse files
Baspaclaude
andcommitted
chore: upgrade Laravel Pint to 1.29.0 and apply code style fixes
Upgraded Pint from 1.27.1 to 1.29.0 to align local development with CI workflow. Applied new code style rules across 225 files including: - fully_qualified_strict_types - ordered_imports - braces_position - class_definition Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent fbe4480 commit d38b34d

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

src/Contracts/PaymentGateway.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace Backstage\Shop\Support\Contracts;
44

5+
use Backstage\Shop\Models\Customer;
6+
use Backstage\Shop\Models\Order;
7+
use Backstage\Shop\Models\Product;
58
use Illuminate\Database\Eloquent\Model;
69

710
interface PaymentGateway
@@ -14,7 +17,7 @@ public function getName(): string;
1417
/**
1518
* Create a payment for an order.
1619
*
17-
* @param \Backstage\Shop\Models\Order $order
20+
* @param Order $order
1821
*/
1922
public function createPayment(Model $order, array $options = []): PaymentResult;
2023

@@ -31,7 +34,7 @@ public function refundPayment(string $paymentId, ?int $amount = null): PaymentRe
3134
/**
3235
* Create a customer in the payment gateway.
3336
*
34-
* @param \Backstage\Shop\Models\Customer $customer
37+
* @param Customer $customer
3538
*/
3639
public function createCustomer(Model $customer): string;
3740

@@ -78,7 +81,7 @@ public function getAvailablePaymentMethods(): array;
7881
/**
7982
* Create a product in the payment gateway.
8083
*
81-
* @param \Backstage\Shop\Models\Product $product
84+
* @param Product $product
8285
*/
8386
public function createProduct(Model $product): string;
8487

@@ -90,7 +93,7 @@ public function getProduct(string $gatewayProductId): ?array;
9093
/**
9194
* Update a product in the payment gateway.
9295
*
93-
* @param \Backstage\Shop\Models\Product $product
96+
* @param Product $product
9497
*/
9598
public function updateProduct(string $gatewayProductId, Model $product): bool;
9699

@@ -102,14 +105,14 @@ public function deleteProduct(string $gatewayProductId): bool;
102105
/**
103106
* Sync a product to the payment gateway (create or update).
104107
*
105-
* @param \Backstage\Shop\Models\Product $product
108+
* @param Product $product
106109
*/
107110
public function syncProduct(Model $product): string;
108111

109112
/**
110113
* Create a price for a product in the payment gateway.
111114
*
112-
* @param \Backstage\Shop\Models\Product $product
115+
* @param Product $product
113116
*/
114117
public function createPrice(Model $product, int $amount, string $currency, array $options = []): string;
115118

@@ -131,7 +134,7 @@ public function archivePrice(string $gatewayPriceId): bool;
131134
/**
132135
* Sync a price to the payment gateway (create or update).
133136
*
134-
* @param \Backstage\Shop\Models\Product $product
137+
* @param Product $product
135138
*/
136139
public function syncPrice(Model $product, int $amount, string $currency, array $options = []): string;
137140

src/Facades/AvailableCheckoutDrivers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @method static bool hasDriver(string $driver)
1212
* @method static string|null getDriver(string $driver)
1313
*
14-
* @see \Backstage\Shop\Support\CheckoutDriver
14+
* @see CheckoutDriver
1515
*/
1616
class AvailableCheckoutDrivers extends Facade
1717
{

0 commit comments

Comments
 (0)