@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | // Payment method input HTML. |
44 | 44 | $html = $gateway->get_input_html(); |
45 | 45 | |
46 | - if ( ! empty( $html ) ) { |
|
46 | + if ( !empty( $html ) ) { |
|
47 | 47 | $inputs[ $payment_method ] = array( |
48 | 48 | 'label' => $method_name, |
49 | 49 | 'html' => $html, |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | if ( $gateway->has_error() ) { |
55 | - $pronamic_ideal_errors[] = $gateway->get_error(); |
|
55 | + $pronamic_ideal_errors[ ] = $gateway->get_error(); |
|
56 | 56 | } |
57 | 57 | |
58 | -require Plugin::$dirname . '/views/errors.php'; |
|
58 | +require Plugin::$dirname.'/views/errors.php'; |
|
59 | 59 | |
60 | 60 | ?> |
61 | 61 | <table class="form-table"> |
@@ -87,12 +87,12 @@ discard block |
||
87 | 87 | |
88 | 88 | <tr class="pronamic-pay-cloack pronamic-pay-test-payment-method <?php echo esc_attr( $method ); ?>"> |
89 | 89 | <th scope="row"> |
90 | - <?php echo esc_html( $input['label'] ); ?> |
|
90 | + <?php echo esc_html( $input[ 'label' ] ); ?> |
|
91 | 91 | </th> |
92 | 92 | <td> |
93 | 93 | <?php |
94 | 94 | |
95 | - echo $input['html']; // WPCS: XSS ok. |
|
95 | + echo $input[ 'html' ]; // WPCS: XSS ok. |
|
96 | 96 | |
97 | 97 | ?> |
98 | 98 | </td> |
@@ -304,5 +304,5 @@ discard block |
||
304 | 304 | <?php |
305 | 305 | |
306 | 306 | if ( $is_ideal || $gateway instanceof \Pronamic\WordPress\Pay\Gateways\OmniKassa2\Gateway ) { |
307 | - include Plugin::$dirname . '/views/ideal-test-cases.php'; |
|
307 | + include Plugin::$dirname.'/views/ideal-test-cases.php'; |
|
308 | 308 | } |
@@ -60,14 +60,14 @@ discard block |
||
60 | 60 | /** |
61 | 61 | * Autoload. |
62 | 62 | */ |
63 | -$loader = require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; |
|
63 | +$loader = require_once plugin_dir_path( __FILE__ ).'vendor/autoload.php'; |
|
64 | 64 | |
65 | -if ( ! defined( 'PRONAMIC_PAY_DEBUG' ) ) { |
|
65 | +if ( !defined( 'PRONAMIC_PAY_DEBUG' ) ) { |
|
66 | 66 | define( 'PRONAMIC_PAY_DEBUG', false ); |
67 | 67 | } |
68 | 68 | |
69 | 69 | if ( PRONAMIC_PAY_DEBUG ) { |
70 | - foreach ( glob( __DIR__ . '/repositories/*/*/composer.json' ) as $file ) { |
|
70 | + foreach ( glob( __DIR__.'/repositories/*/*/composer.json' ) as $file ) { |
|
71 | 71 | $content = file_get_contents( $file ); |
72 | 72 | |
73 | 73 | $object = json_decode( $content ); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | foreach ( $object->autoload as $type => $map ) { |
77 | 77 | if ( 'psr-4' === $type ) { |
78 | 78 | foreach ( $map as $prefix => $path ) { |
79 | - $loader->addPsr4( $prefix, dirname( $file ) . '/' . $path, true ); |
|
79 | + $loader->addPsr4( $prefix, dirname( $file ).'/'.$path, true ); |
|
80 | 80 | } |
81 | 81 | } |
82 | 82 | } |