Skip to content

Commit

Permalink
Fix phpcs styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel217D committed Jan 23, 2024
1 parent 04de933 commit fd4a816
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion includes/Integrations/WooBlocks/WooBlocksIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function register_payment_method_integrations( PaymentMethodRegistry $pay
foreach ( Gateways::PAYMENT_METHODS as $payment_method ) {
Package::container()->register(
$payment_method,
function ( Container $container ) use ( $payment_method ) {
function () use ( $payment_method ) {
return new WooBlocksPaymentMethod( $payment_method );
}
);
Expand Down
8 changes: 4 additions & 4 deletions includes/OrderFlow/OrderStatuses.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,17 +221,17 @@ public function payment_complete( int $order_id ) {
/**
* Get a status for Authorized payments.
*
* @param WC_Order $order current order.
* @param string $default default status.
* @param WC_Order $order current order.
* @param string $default_status default status.
*
* @return string
*/
public static function get_authorized_order_status( WC_Order $order, string $default = 'on-hold' ): string {
public static function get_authorized_order_status( WC_Order $order, string $default_status = 'on-hold' ): string {
if ( self::$status_sync_enabled && rp_is_order_paid_via_reepay( $order ) && ! order_contains_subscription( $order ) ) {
return self::$status_authorized;
}

return $default;
return $default_status;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion templates/meta-boxes/invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ class="reepay-admin-card-logo"/>
<?php _e( 'See invoice', 'reepay-subscriptions-for-woocommerce' ); ?>
</a>
</li>
</ul>
</ul>

0 comments on commit fd4a816

Please sign in to comment.