mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
phpcs
This commit is contained in:
parent
e5494bfc8b
commit
c98e10d2a1
16 changed files with 89 additions and 50 deletions
|
@ -9,10 +9,10 @@ use Inpsyde\PayPalCommerce\Subscription\Repository\PaymentTokenRepository;
|
|||
use Psr\Container\ContainerInterface;
|
||||
|
||||
return [
|
||||
'subscription.helper' => function(ContainerInterface $container) : SubscriptionHelper {
|
||||
'subscription.helper' => static function (ContainerInterface $container): SubscriptionHelper {
|
||||
return new SubscriptionHelper();
|
||||
},
|
||||
'subscription.renewal-handler' => function(ContainerInterface $container) : RenewalHandler {
|
||||
'subscription.renewal-handler' => static function (ContainerInterface $container): RenewalHandler {
|
||||
$logger = $container->get('woocommerce.logger.woocommerce');
|
||||
$repository = $container->get('subscription.repository.payment-token');
|
||||
$endpoint = $container->get('api.endpoint.order');
|
||||
|
@ -26,9 +26,9 @@ return [
|
|||
$payerFactory
|
||||
);
|
||||
},
|
||||
'subscription.repository.payment-token' => function(ContainerInterface $container) : PaymentTokenRepository {
|
||||
'subscription.repository.payment-token' => static function (ContainerInterface $container): PaymentTokenRepository {
|
||||
$factory = $container->get('api.factory.payment-token');
|
||||
$endpoint = $container->get('api.endpoint.payment-token');
|
||||
return new PaymentTokenRepository($factory, $endpoint);
|
||||
}
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue