Skip to content

Commit

Permalink
vendor/bin/phpcbf
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Oct 11, 2023
1 parent 1350b1b commit 205219f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,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( \wp_json_encode( $config ) )

Check failure on line 77 in src/Gateway.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Parameter #1 $string of function md5 expects string, string|false given.
Expand All @@ -89,7 +89,7 @@ function() {

$credit_card_issuer_field->set_options(
new CachedCallbackOptions(
function() {
function () {
return $this->get_credit_card_issuers();
},
'pronamic_pay_credit_card_issuers_' . \md5( \wp_json_encode( $config ) )

Check failure on line 95 in src/Gateway.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Parameter #1 $string of function md5 expects string, string|false given.
Expand Down Expand Up @@ -124,7 +124,7 @@ private function get_ideal_issuers() {

$ideal_methods = array_filter(
$methods,
function( $method ) {
function ( $method ) {
return is_array( $method ) && isset( $method['PaymentMethodCode'] ) && 'IDEAL' === $method['PaymentMethodCode'];
}
);
Expand Down

0 comments on commit 205219f

Please sign in to comment.