Failed Conditions
Push — develop ( ea4858...c314dc )
by Reüel
07:27
created
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.
tests/wp-config.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
 // WARNING WARNING WARNING!
31 31
 // These tests will DROP ALL TABLES in the database with the prefix named below.
32 32
 // DO NOT use a production database or one that is shared with something else.
33
-define( 'DB_NAME'       , getenv( 'WP_TESTS_DB_NAME' ) ?: 'wp_phpunit_tests' );
34
-define( 'DB_USER'       , getenv( 'WP_TESTS_DB_USER' ) ?: 'root' );
35
-define( 'DB_PASSWORD'   , getenv( 'WP_TESTS_DB_PASS' ) ?: '' );
36
-define( 'DB_HOST'       , getenv( 'WP_TESTS_DB_HOST' ) ?: 'localhost' );
37
-define( 'DB_CHARSET'    , 'utf8' );
38
-define( 'DB_COLLATE'    , '' );
33
+define( 'DB_NAME', getenv( 'WP_TESTS_DB_NAME' ) ?: 'wp_phpunit_tests' );
34
+define( 'DB_USER', getenv( 'WP_TESTS_DB_USER' ) ?: 'root' );
35
+define( 'DB_PASSWORD', getenv( 'WP_TESTS_DB_PASS' ) ?: '' );
36
+define( 'DB_HOST', getenv( 'WP_TESTS_DB_HOST' ) ?: 'localhost' );
37
+define( 'DB_CHARSET', 'utf8' );
38
+define( 'DB_COLLATE', '' );
39 39
 
40 40
 /**#@+
41 41
  * Authentication Unique Keys and Salts.
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
  * Change these to different unique phrases!
44 44
  * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
45 45
  */
46
-define( 'AUTH_KEY',         'put your unique phrase here' );
47
-define( 'SECURE_AUTH_KEY',  'put your unique phrase here' );
48
-define( 'LOGGED_IN_KEY',    'put your unique phrase here' );
49
-define( 'NONCE_KEY',        'put your unique phrase here' );
50
-define( 'AUTH_SALT',        'put your unique phrase here' );
46
+define( 'AUTH_KEY', 'put your unique phrase here' );
47
+define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
48
+define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
49
+define( 'NONCE_KEY', 'put your unique phrase here' );
50
+define( 'AUTH_SALT', 'put your unique phrase here' );
51 51
 define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
52
-define( 'LOGGED_IN_SALT',   'put your unique phrase here' );
53
-define( 'NONCE_SALT',       'put your unique phrase here' );
52
+define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
53
+define( 'NONCE_SALT', 'put your unique phrase here' );
54 54
 
55 55
 define( 'WP_TESTS_DOMAIN', 'example.org' );
56 56
 define( 'WP_TESTS_EMAIL', '[email protected]' );
Please login to merge, or discard this patch.
src/Integration.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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -477,9 +477,9 @@
 block discarded – undo
477 477
 
478 478
 		foreach ( $files as $name => $meta_key ) {
479 479
 			// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
480
-			if ( isset( $_FILES[ $name ] ) && UPLOAD_ERR_OK === $_FILES[ $name ]['error'] ) {
480
+			if ( isset( $_FILES[$name] ) && UPLOAD_ERR_OK === $_FILES[$name]['error'] ) {
481 481
 				// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated, WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
482
-				$value = file_get_contents( $_FILES[ $name ]['tmp_name'] );
482
+				$value = file_get_contents( $_FILES[$name]['tmp_name'] );
483 483
 
484 484
 				update_post_meta( $post_id, $meta_key, $value );
485 485
 			}
Please login to merge, or discard this patch.