Skip to content

Commit

Permalink
phpcbf
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Nov 30, 2023
1 parent d717178 commit e28947b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Admin/AdminTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
);
Expand Down
12 changes: 6 additions & 6 deletions src/Upgrade310.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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(
Expand All @@ -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();
Expand Down Expand Up @@ -146,7 +146,7 @@ private function get_subscription_posts( $args = [] ) {

return array_filter(
$query->posts,
function( $post ) {
function ( $post ) {
return $post instanceof WP_Post;
}
);
Expand Down Expand Up @@ -177,7 +177,7 @@ private function get_payment_posts() {

return array_filter(
$query->posts,
function( $post ) {
function ( $post ) {
return $post instanceof WP_Post;
}
);
Expand Down
2 changes: 1 addition & 1 deletion tests/src/SubscriptionStatusesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Pronamic\WordPress\Pay\Extensions\MemberPress;

use \MeprSubscription;
use MeprSubscription;
use Pronamic\WordPress\Pay\Subscriptions\SubscriptionStatus;

/**
Expand Down
2 changes: 1 addition & 1 deletion views/subscription-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

$ps = array_filter(
$query->posts,
function( $post ) {
function ( $post ) {
return $post instanceof WP_Post;
}
);
Expand Down
2 changes: 1 addition & 1 deletion views/transaction-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

$ps = array_filter(
$query->posts,
function( $post ) {
function ( $post ) {
return $post instanceof WP_Post;
}
);
Expand Down

0 comments on commit e28947b

Please sign in to comment.