Test Failed
Push — develop ( 868fdc...5b2e7e )
by Remco
04:50
created
includes/updates/update-2.0.0.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 $config_ids = $wpdb->get_results( $query ); // WPCS: unprepared SQL ok.
230 230
 
231 231
 foreach ( $config_ids as $config_id ) {
232
-	$config_ids_map[ $config_id->id ] = $config_id->post_id;
232
+	$config_ids_map[$config_id->id] = $config_id->post_id;
233 233
 }
234 234
 
235 235
 /**
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 			$feed_meta = json_decode( $feed->meta, true );
302 302
 
303 303
 			$meta['form_id']                  = $feed->form_id;
304
-			$meta['config_id']                = @$config_ids_map[ $feed->configuration_id ];
304
+			$meta['config_id']                = @$config_ids_map[$feed->configuration_id];
305 305
 			$meta['is_active']                = $feed->is_active;
306 306
 			$meta['transaction_description']  = @$feed_meta['transactionDescription'];
307 307
 			$meta['delay_notification_ids']   = @$feed_meta['delayNotificationIds'];
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 
416 416
 			// Meta
417 417
 			$meta = array(
418
-				'config_id'               => @$config_ids_map[ $payment->configuration_id ],
418
+				'config_id'               => @$config_ids_map[$payment->configuration_id],
419 419
 				'purchase_id'             => $payment->purchase_id,
420 420
 				'transaction_id'          => $payment->transaction_id,
421 421
 				'currency'                => $payment->currency,
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
 	$value = get_option( $key_old );
475 475
 
476 476
 	if ( ! empty( $value ) ) {
477
-		$value_new = @$config_ids_map[ $value ];
477
+		$value_new = @$config_ids_map[$value];
478 478
 
479 479
 		update_option( $key_new, $value_new );
480 480
 	}
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
 		if ( is_array( $settings ) && isset( $settings['pronamic_shopp_ideal_configuration'] ) ) {
501 501
 			$value = $settings['pronamic_shopp_ideal_configuration'];
502 502
 
503
-			$settings['config_id'] = @$config_ids_map[ $value ];
503
+			$settings['config_id'] = @$config_ids_map[$value];
504 504
 
505 505
 			$wpdb->update(
506 506
 				$shopp_meta_table,
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 if ( is_array( $settings ) && isset( $settings['configuration_id'] ) ) {
523 523
 	$value = $settings['configuration_id'];
524 524
 
525
-	$settings['config_id'] = @$config_ids_map[ $value ];
525
+	$settings['config_id'] = @$config_ids_map[$value];
526 526
 
527 527
 	unset( $settings['configuration_id'] );
528 528
 
Please login to merge, or discard this patch.
documentation/payment-items.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -646,8 +646,8 @@  discard block
 block discarded – undo
646 646
 							<td>
647 647
 								<?php
648 648
 
649
-								if ( isset( $source['components'][ $key ] ) ) {
650
-									$component = $source['components'][ $key ];
649
+								if ( isset( $source['components'][$key] ) ) {
650
+									$component = $source['components'][$key];
651 651
 
652 652
 									$name     = null;
653 653
 									$tip      = null;
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
 									$warning  = null;
656 656
 
657 657
 									if ( is_array( $component ) ) {
658
-										$name     = $component['name'];
658
+										$name = $component['name'];
659 659
 
660 660
 										if ( array_key_exists( 'description', $component ) ) {
661 661
 											$description = $component['description'];
Please login to merge, or discard this patch.
documentation/address.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -504,8 +504,8 @@
 block discarded – undo
504 504
 							<td>
505 505
 								<?php
506 506
 
507
-								if ( isset( $source['components'][ $key ] ) ) {
508
-									$component = $source['components'][ $key ];
507
+								if ( isset( $source['components'][$key] ) ) {
508
+									$component = $source['components'][$key];
509 509
 
510 510
 									$name     = null;
511 511
 									$tip      = null;
Please login to merge, or discard this patch.
src/i18n-make-pot.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  */
18 18
 \WP_CLI::add_hook(
19 19
 	'after_add_command:i18n make-pot',
20
-	function () {
20
+	function() {
21 21
 
22 22
 		/**
23 23
 		 * Title: Make pot command.
Please login to merge, or discard this patch.
src/readme-txt/changelog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 	echo "\r\n";
66 66
 
67 67
 	// Limit to last 5 logs.
68
-	$i++;
68
+	$i ++;
69 69
 
70 70
 	if ( $i > 5 ) {
71 71
 		break;
Please login to merge, or discard this patch.
src/readme-txt/gateways.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 $providers = array();
16 16
 
17 17
 foreach ( $data as $provider ) {
18
-	$providers[ $provider->slug ] = $provider;
18
+	$providers[$provider->slug] = $provider;
19 19
 }
20 20
 
21 21
 // Gateways.
@@ -23,17 +23,17 @@  discard block
 block discarded – undo
23 23
 $gateways = json_decode( $data );
24 24
 
25 25
 foreach ( $gateways as $gateway ) {
26
-	if ( ! isset( $providers[ $gateway->provider ] ) ) {
26
+	if ( ! isset( $providers[$gateway->provider] ) ) {
27 27
 		continue;
28 28
 	}
29 29
 
30
-	$provider = $providers[ $gateway->provider ];
30
+	$provider = $providers[$gateway->provider];
31 31
 
32 32
 	if ( ! isset( $provider->gateways ) ) {
33 33
 		$provider->gateways = array();
34 34
 	}
35 35
 
36
-	$provider->gateways[ $gateway->slug ] = $gateway;
36
+	$provider->gateways[$gateway->slug] = $gateway;
37 37
 }
38 38
 
39 39
 // Print gateways.
Please login to merge, or discard this patch.
src/repositories.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@
 block discarded – undo
277 277
 		 * @param array<int, string> $indentation Indentation spaces.
278 278
 		 * @return string
279 279
 		 */
280
-		function ( $indentation ) {
280
+		function( $indentation ) {
281 281
 			return str_repeat( '	', (int) ceil( strlen( $indentation[0] ) / 4 ) );
282 282
 		},
283 283
 		$changelog_json
Please login to merge, or discard this patch.
src/readme-md/gateways.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 $providers = array();
21 21
 
22 22
 foreach ( $data as $provider ) {
23
-	$providers[ $provider->slug ] = $provider;
23
+	$providers[$provider->slug] = $provider;
24 24
 }
25 25
 
26 26
 $data = file_get_contents( __DIR__ . '/../gateways.json' );
@@ -33,17 +33,17 @@  discard block
 block discarded – undo
33 33
 $gateways = json_decode( $data );
34 34
 
35 35
 foreach ( $gateways as $gateway ) {
36
-	if ( ! isset( $providers[ $gateway->provider ] ) ) {
36
+	if ( ! isset( $providers[$gateway->provider] ) ) {
37 37
 		continue;
38 38
 	}
39 39
 
40
-	$provider = $providers[ $gateway->provider ];
40
+	$provider = $providers[$gateway->provider];
41 41
 
42 42
 	if ( ! isset( $provider->gateways ) ) {
43 43
 		$provider->gateways = array();
44 44
 	}
45 45
 
46
-	$provider->gateways[ $gateway->slug ] = $gateway;
46
+	$provider->gateways[$gateway->slug] = $gateway;
47 47
 }
48 48
 
49 49
 ?>
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
 <?php foreach ( $gateways as $gateway ) : ?>
53 53
 | <?php
54 54
 
55
-if ( isset( $gateway->provider, $providers[ $gateway->provider ] ) ) {
56
-	$provider = $providers[ $gateway->provider ];
55
+if ( isset( $gateway->provider, $providers[$gateway->provider] ) ) {
56
+	$provider = $providers[$gateway->provider];
57 57
 
58 58
 	if ( isset( $provider->url, $provider->name ) ) {
59 59
 		printf( '[%s](%s)', $provider->name, $provider->url );
Please login to merge, or discard this patch.
src/autoload-before.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,6 +39,6 @@
 block discarded – undo
39 39
 
40 40
 		require $filepath;
41 41
 
42
-		$GLOBALS['__composer_autoload_files'][ $identifier ] = true;
42
+		$GLOBALS['__composer_autoload_files'][$identifier] = true;
43 43
 	}
44 44
 }
Please login to merge, or discard this patch.