Test Failed
Push — develop ( 983888...05205d )
by Reüel
02:39
created
src/Settings.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -219,10 +219,13 @@
 block discarded – undo
219 219
 
220 220
 				<?php esc_html_e( 'A private key and certificate are required for communication with the payment provider. Enter the organization details from the iDEAL account below to generate these required files.', 'pronamic_ideal' ); ?>
221 221
 
222
-			<?php else : ?>
222
+			<?php else {
223
+	: ?>
223 224
 
224 225
 				<span
225
-					class="dashicons dashicons-yes"></span> <?php esc_html_e( 'A private key and certificate have been configured. The certificate must be uploaded to the payment provider dashboard to complete configuration.', 'pronamic_ideal' ); ?>
226
+					class="dashicons dashicons-yes"></span> <?php esc_html_e( 'A private key and certificate have been configured. The certificate must be uploaded to the payment provider dashboard to complete configuration.', 'pronamic_ideal' );
227
+}
228
+?>
226 229
 				<br/>
227 230
 
228 231
 				<br/>
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -452,10 +452,10 @@
 block discarded – undo
452 452
 		);
453 453
 
454 454
 		foreach ( $files as $name => $meta_key ) {
455
-			if ( isset( $_FILES[ $name ] ) && UPLOAD_ERR_OK === $_FILES[ $name ]['error'] ) { // WPCS: input var okay.
456
-				$value = file_get_contents( $_FILES[ $name ]['tmp_name'] ); // WPCS: input var okay. // WPCS: sanitization ok.
455
+			if ( isset( $_FILES[$name] ) && UPLOAD_ERR_OK === $_FILES[$name]['error'] ) { // WPCS: input var okay.
456
+				$value = file_get_contents( $_FILES[$name]['tmp_name'] ); // WPCS: input var okay. // WPCS: sanitization ok.
457 457
 
458
-				$data[ $meta_key ] = $value;
458
+				$data[$meta_key] = $value;
459 459
 			}
460 460
 		}
461 461
 
Please login to merge, or discard this patch.
src/Gateway.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 			$issuers = array();
75 75
 
76 76
 			foreach ( $country->get_issuers() as $issuer ) {
77
-				$issuers[ $issuer->get_id() ] = $issuer->get_name();
77
+				$issuers[$issuer->get_id()] = $issuer->get_name();
78 78
 			}
79 79
 
80 80
 			$groups[] = array(
Please login to merge, or discard this patch.