Skip to content

Commit

Permalink
phpcbf
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Aug 22, 2023
1 parent f1589e9 commit d151f3a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public function add_payment_meta_box( $post_type, $post ) {
\add_meta_box(
'pronamic_pay_mollie_payment',
\__( 'Mollie', 'pronamic_ideal' ),
function( $post ) {
function ( $post ) {
include __DIR__ . '/../views/meta-box-payment.php';
},
$post_type,
Expand Down Expand Up @@ -331,7 +331,7 @@ public function add_subscription_meta_box( $post_type, $post ) {
\add_meta_box(
'pronamic_pay_mollie_subscription',
\__( 'Mollie', 'pronamic_ideal' ),
function( $post ) {
function ( $post ) {
include __DIR__ . '/../views/meta-box-subscription.php';
},
$post_type,
Expand Down
12 changes: 6 additions & 6 deletions src/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CLI {
public function __construct() {
\WP_CLI::add_command(
'pronamic-pay mollie organizations synchronize',
function( $args, $assoc_args ) {
function ( $args, $assoc_args ) {
$this->wp_cli_organizations_synchronize( $args, $assoc_args );
},
[
Expand All @@ -50,7 +50,7 @@ function( $args, $assoc_args ) {

\WP_CLI::add_command(
'pronamic-pay mollie customers synchronize',
function( $args, $assoc_args ) {
function ( $args, $assoc_args ) {
$this->wp_cli_customers_synchronize( $args, $assoc_args );
},
[
Expand All @@ -60,7 +60,7 @@ function( $args, $assoc_args ) {

\WP_CLI::add_command(
'pronamic-pay mollie customers connect-wp-users',
function( $args, $assoc_args ) {
function ( $args, $assoc_args ) {
$this->wp_cli_customers_connect_wp_users( $args, $assoc_args );
},
[
Expand All @@ -70,7 +70,7 @@ function( $args, $assoc_args ) {

\WP_CLI::add_command(
'pronamic-pay mollie payments list',
function( $args, $assoc_args ) {
function ( $args, $assoc_args ) {
$this->wp_cli_payments( $args, $assoc_args );
},
[
Expand All @@ -80,7 +80,7 @@ function( $args, $assoc_args ) {

\WP_CLI::add_command(
'pronamic-pay mollie payments cancel',
function( $args, $assoc_args ) {
function ( $args, $assoc_args ) {
$this->wp_cli_payments_cancel( $args, $assoc_args );
},
[
Expand Down Expand Up @@ -329,7 +329,7 @@ public function wp_cli_payments( $args, $assoc_args ) {
if ( null !== $is_cancelable ) {
$payments = \array_filter(
$payments,
function( $payment ) {
function ( $payment ) {
if ( ! \property_exists( $payment, 'isCancelable' ) ) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public function http_request_args( $args, $url ) {

/**
* Payment fulfilled.
*
*
* @param Payment $payment Payment.
* @return void
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/src/GatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private function set_gateway( $args = [] ) {
* @dataProvider webhook_url_provider
*/
public function test_webhook_url( $home_url, Payment $payment, $expected ) {
$filter_home_url = function( $url ) use ( $home_url ) {
$filter_home_url = function ( $url ) use ( $home_url ) {
return $home_url;
};

Expand All @@ -119,7 +119,7 @@ public function test_webhook_url( $home_url, Payment $payment, $expected ) {
public function webhook_url_provider() {
$home_url = 'https://example.org/';

$filter_home_url = function( $url ) use ( $home_url ) {
$filter_home_url = function ( $url ) use ( $home_url ) {
return $home_url;
};

Expand Down
2 changes: 1 addition & 1 deletion tests/wp-config.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */
define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/wordpress/' );
define( 'ABSPATH', dirname( __DIR__ ) . '/wordpress/' );

/*
* Path to the theme to test with.
Expand Down

0 comments on commit d151f3a

Please sign in to comment.