Failed Conditions
Push — develop ( 9919c4...f44fda )
by Reüel
07:27
created
src/PaymentMethods.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,8 +143,8 @@
 block discarded – undo
143 143
 			return null;
144 144
 		}
145 145
 
146
-		if ( isset( self::$map[ $payment_method ] ) ) {
147
-			return self::$map[ $payment_method ];
146
+		if ( isset( self::$map[$payment_method] ) ) {
147
+			return self::$map[$payment_method];
148 148
 		}
149 149
 
150 150
 		return $default;
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/Gateway.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,14 +80,14 @@
 block discarded – undo
80 80
 					foreach ( $request_parameter->ListItemDescriptions as $item ) {
81 81
 						// Make sure to add group.
82 82
 						if ( ! array_key_exists( $item->GroupName, $groups ) ) {
83
-							$groups[ $item->GroupName ] = array(
83
+							$groups[$item->GroupName] = array(
84 84
 								'name'    => $item->GroupName,
85 85
 								'options' => array(),
86 86
 							);
87 87
 						}
88 88
 
89 89
 						// Add issuer to group.
90
-						$groups[ $item->GroupName ]['options'][ $item->Value ] = $item->Description;
90
+						$groups[$item->GroupName]['options'][$item->Value] = $item->Description;
91 91
 					}
92 92
 				}
93 93
 			}
Please login to merge, or discard this patch.