Failed Conditions
Push — develop ( 8c1843...7824fe )
by Reüel
07:49
created
src/PaymentMethodType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,8 +117,8 @@
 block discarded – undo
117 117
 			return null;
118 118
 		}
119 119
 
120
-		if ( isset( self::$map[ $payment_method ] ) ) {
121
-			return self::$map[ $payment_method ];
120
+		if ( isset( self::$map[$payment_method] ) ) {
121
+			return self::$map[$payment_method];
122 122
 		}
123 123
 
124 124
 		return $default;
Please login to merge, or discard this patch.
src/Settings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -198,11 +198,11 @@
 block discarded – undo
198 198
 		);
199 199
 
200 200
 		foreach ( $fields as $field ) {
201
-			if ( ! isset( $data[ $field ] ) ) {
201
+			if ( ! isset( $data[$field] ) ) {
202 202
 				continue;
203 203
 			}
204 204
 
205
-			$data[ $field ] = trim( $data[ $field ] );
205
+			$data[$field] = trim( $data[$field] );
206 206
 		}
207 207
 
208 208
 		return $data;
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 				$id   = Security::filter( $issuer->id );
292 292
 				$name = Security::filter( $issuer->name );
293 293
 
294
-				$issuers[ $id ] = $name;
294
+				$issuers[$id] = $name;
295 295
 			}
296 296
 		}
297 297
 
@@ -333,13 +333,13 @@  discard block
 block discarded – undo
333 333
 					foreach ( $payment_method->details as $detail ) {
334 334
 						$key = $detail->key;
335 335
 
336
-						$method['details'][ $key ] = $detail;
336
+						$method['details'][$key] = $detail;
337 337
 
338
-						unset( $method['details'][ $key ]->key );
338
+						unset( $method['details'][$key]->key );
339 339
 					}
340 340
 				}
341 341
 
342
-				$payment_methods[ $type ] = $method;
342
+				$payment_methods[$type] = $method;
343 343
 			}
344 344
 		}
345 345
 
Please login to merge, or discard this patch.