mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Fix phpcs errors
This commit is contained in:
parent
ed3a91f333
commit
a291c0da1a
4 changed files with 34 additions and 11 deletions
|
@ -61,16 +61,17 @@ class SubscriptionModule implements ModuleInterface {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param $order
|
||||
* @param ContainerInterface|null $container
|
||||
* Handles a Subscription product renewal.
|
||||
*
|
||||
* @param \WC_Order $order WooCommerce order.
|
||||
* @param ContainerInterface|null $container The container.
|
||||
* @return void
|
||||
*/
|
||||
protected function renew( $order, ?ContainerInterface $container ) {
|
||||
protected function renew( $order, $container ) {
|
||||
if ( ! is_a( $order, \WC_Order::class ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
/** @var RenewalHandler $handler */
|
||||
$handler = $container->get( 'subscription.renewal-handler' );
|
||||
$handler->renew( $order );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue