From e28947b71f6edc57b944b87113c44b4deefb1c8d Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:26:17 +0100 Subject: [PATCH] phpcbf --- src/Admin/AdminTransactions.php | 2 +- src/Upgrade310.php | 12 ++++++------ tests/src/SubscriptionStatusesTest.php | 2 +- views/subscription-form.php | 2 +- views/transaction-form.php | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Admin/AdminTransactions.php b/src/Admin/AdminTransactions.php index d1b4428..f98d46c 100644 --- a/src/Admin/AdminTransactions.php +++ b/src/Admin/AdminTransactions.php @@ -172,7 +172,7 @@ public function maybe_load_payments_map( $paths, $slug, $vars ) { $payment_posts = array_filter( $query->posts, - function( $post ) { + function ( $post ) { return $post instanceof WP_Post; } ); diff --git a/src/Upgrade310.php b/src/Upgrade310.php index 11c34fc..5477a5e 100644 --- a/src/Upgrade310.php +++ b/src/Upgrade310.php @@ -64,7 +64,7 @@ public function upgrade() { public function cli_init() { \WP_CLI::add_command( 'pronamic-pay memberpress upgrade-310 execute', - function( $args, $assoc_args ) { + function ( $args, $assoc_args ) { \WP_CLI::log( 'Upgrade 3.1.0' ); $this->upgrade(); @@ -76,7 +76,7 @@ function( $args, $assoc_args ) { \WP_CLI::add_command( 'pronamic-pay memberpress upgrade-310 list-subscriptions', - function( $args, $assoc_args ) { + function ( $args, $assoc_args ) { \WP_CLI::log( 'Upgrade 3.1.0 - Subscriptions List' ); $posts = $this->get_subscription_posts(); @@ -90,7 +90,7 @@ function( $args, $assoc_args ) { \WP_CLI::add_command( 'pronamic-pay memberpress upgrade-310 upgrade-subscriptions', - function( $args, $assoc_args ) { + function ( $args, $assoc_args ) { \WP_CLI::log( 'Upgrade 3.1.0 - Subscriptions' ); $this->upgrade_subscriptions( @@ -109,7 +109,7 @@ function( $args, $assoc_args ) { \WP_CLI::add_command( 'pronamic-pay memberpress upgrade-310 list-payments', - function( $args, $assoc_args ) { + function ( $args, $assoc_args ) { \WP_CLI::log( 'Upgrade 3.1.0 - Payments List' ); $posts = $this->get_payment_posts(); @@ -146,7 +146,7 @@ private function get_subscription_posts( $args = [] ) { return array_filter( $query->posts, - function( $post ) { + function ( $post ) { return $post instanceof WP_Post; } ); @@ -177,7 +177,7 @@ private function get_payment_posts() { return array_filter( $query->posts, - function( $post ) { + function ( $post ) { return $post instanceof WP_Post; } ); diff --git a/tests/src/SubscriptionStatusesTest.php b/tests/src/SubscriptionStatusesTest.php index c8d269c..9f32ee6 100644 --- a/tests/src/SubscriptionStatusesTest.php +++ b/tests/src/SubscriptionStatusesTest.php @@ -10,7 +10,7 @@ namespace Pronamic\WordPress\Pay\Extensions\MemberPress; -use \MeprSubscription; +use MeprSubscription; use Pronamic\WordPress\Pay\Subscriptions\SubscriptionStatus; /** diff --git a/views/subscription-form.php b/views/subscription-form.php index d860da0..506ae75 100644 --- a/views/subscription-form.php +++ b/views/subscription-form.php @@ -34,7 +34,7 @@ $ps = array_filter( $query->posts, - function( $post ) { + function ( $post ) { return $post instanceof WP_Post; } ); diff --git a/views/transaction-form.php b/views/transaction-form.php index 3a4d29f..257b83b 100644 --- a/views/transaction-form.php +++ b/views/transaction-form.php @@ -34,7 +34,7 @@ $ps = array_filter( $query->posts, - function( $post ) { + function ( $post ) { return $post instanceof WP_Post; } );