Failed Conditions
Push — develop ( 9d33a0...66fedd )
by Reüel
08:59
created
admin/meta-box-payment-info.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -389,9 +389,11 @@
 block discarded – undo
389 389
 
390 390
 					esc_html_e( 'Ecommerce conversion tracked', 'pronamic_ideal' );
391 391
 
392
-				else :
392
+				else {
393
+					:
393 394
 
394 395
 					esc_html_e( 'Ecommerce conversion not tracked', 'pronamic_ideal' );
396
+				}
395 397
 
396 398
 				endif;
397 399
 
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/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 providers with gateways.
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-md/gateways.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,24 +13,24 @@  discard block
 block discarded – undo
13 13
 
14 14
 $providers = array();
15 15
 foreach ( $data as $provider ) {
16
-	$providers[ $provider->slug ] = $provider;
16
+	$providers[$provider->slug] = $provider;
17 17
 }
18 18
 
19 19
 $data     = file_get_contents( __DIR__ . '/../gateways.json' );
20 20
 $gateways = json_decode( $data );
21 21
 
22 22
 foreach ( $gateways as $gateway ) {
23
-	if ( ! isset( $providers[ $gateway->provider ] ) ) {
23
+	if ( ! isset( $providers[$gateway->provider] ) ) {
24 24
 		continue;
25 25
 	}
26 26
 
27
-	$provider = $providers[ $gateway->provider ];
27
+	$provider = $providers[$gateway->provider];
28 28
 
29 29
 	if ( ! isset( $provider->gateways ) ) {
30 30
 		$provider->gateways = array();
31 31
 	}
32 32
 
33
-	$provider->gateways[ $gateway->slug ] = $gateway;
33
+	$provider->gateways[$gateway->slug] = $gateway;
34 34
 }
35 35
 
36 36
 ?>
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 <?php foreach ( $gateways as $gateway ) : ?>
40 40
 | <?php
41 41
 
42
-if ( isset( $gateway->provider, $providers[ $gateway->provider ] ) ) {
43
-	$provider = $providers[ $gateway->provider ];
42
+if ( isset( $gateway->provider, $providers[$gateway->provider] ) ) {
43
+	$provider = $providers[$gateway->provider];
44 44
 
45 45
 	if ( isset( $provider->url ) ) {
46 46
 		printf( '[%s](%s)', $provider->name, $provider->url );
Please login to merge, or discard this patch.