From cf1a258cdaa014cc5de17aa3423312160ded3c86 Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:10:00 +0200 Subject: [PATCH] vendor/bin/phpcbf --- src/Gateway.php | 2 +- src/Integration.php | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Gateway.php b/src/Gateway.php index de14a85..382e8bb 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -79,7 +79,7 @@ public function __construct( Config $config ) { $ideal_issuer_field->set_options( new CachedCallbackOptions( - function() { + function () { return $this->get_ideal_issuers(); }, 'pronamic_pay_ideal_issuers_' . \md5( (string) \wp_json_encode( $config ) ) diff --git a/src/Integration.php b/src/Integration.php index 524ab78..6ead276 100644 --- a/src/Integration.php +++ b/src/Integration.php @@ -167,13 +167,13 @@ public function get_settings_fields() { 'type' => 'text', 'default' => 1825, 'tooltip' => __( 'Number of days the generated certificate will be valid for, e.g. 1825 days for the maximum duration of 5 years.', 'pronamic_ideal' ), - 'input' => function( $name ) { + 'input' => function ( $name ) { if ( ! \array_key_exists( $name, $_POST ) ) { return ''; } return \filter_var( \sanitize_text_field( \wp_unslash( $_POST[ $name ] ) ), \FILTER_SANITIZE_NUMBER_INT ); - } + }, ]; // Secret Key Password. @@ -186,14 +186,14 @@ public function get_settings_fields() { 'classes' => [ 'regular-text', 'code' ], 'default' => wp_generate_password(), 'tooltip' => __( 'A random password which will be used for the generation of the secret key and certificate.', 'pronamic-ideal' ), - 'input' => function( $name ) { + 'input' => function ( $name ) { if ( ! \array_key_exists( $name, $_POST ) ) { return ''; } // phpcs:ignore Detected usage of a non-sanitized input variable -- Password can contain whitespace, HTML tags and percent-encoded characters. return $_POST[ $name ]; - } + }, ]; // Secret Key. @@ -206,14 +206,14 @@ public function get_settings_fields() { 'callback' => [ $this, 'field_private_key' ], 'classes' => [ 'code' ], 'tooltip' => __( 'The secret key is used for secure communication with the payment provider. If left empty, the secret key will be generated using the given secret key password.', 'pronamic-ideal' ), - 'input' => function( $name ) { + 'input' => function ( $name ) { if ( ! \array_key_exists( $name, $_POST ) ) { return ''; } // phpcs:ignore Detected usage of a non-sanitized input variable -- Private key can contain whitespace, HTML tags and percent-encoded characters. return $_POST[ $name ]; - } + }, ]; // Certificate. @@ -226,14 +226,14 @@ public function get_settings_fields() { 'callback' => [ $this, 'field_certificate' ], 'classes' => [ 'code' ], 'tooltip' => __( 'The certificate is used for secure communication with the payment provider. If left empty, the certificate will be generated using the secret key and given organization details.', 'pronamic-ideal' ), - 'input' => function( $name ) { + 'input' => function ( $name ) { if ( ! \array_key_exists( $name, $_POST ) ) { return ''; } // phpcs:ignore Detected usage of a non-sanitized input variable -- Certificate can contain whitespace, HTML tags and percent-encoded characters. return $_POST[ $name ]; - } + }, ]; // Return.