Passed
Push — develop ( 8ad0f0...975412 )
by Remco
04:29
created
classes/Settings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@
 block discarded – undo
71 71
 		}
72 72
 
73 73
 		// @see https://github.com/WordPress/WordPress/blob/4.9/wp-admin/options.php#L203-L214
74
-		if ( isset( $_POST[ $option ] ) ) { // WPCS: CSRF ok.
75
-			$value = $_POST[ $option ]; // WPCS: CSRF ok.
74
+		if ( isset( $_POST[$option] ) ) { // WPCS: CSRF ok.
75
+			$value = $_POST[$option]; // WPCS: CSRF ok.
76 76
 			$value = wp_unslash( $value );
77 77
 		}
78 78
 
Please login to merge, or discard this patch.
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.
includes/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,8 +166,8 @@
 block discarded – undo
166 166
 	global $pronamic_ideal;
167 167
 
168 168
 	foreach ( $pronamic_ideal->gateway_integrations as $integration ) {
169
-		if ( isset( $pronamic_pay_providers[ $integration->provider ] ) ) {
170
-			$provider =& $pronamic_pay_providers[ $integration->provider ];
169
+		if ( isset( $pronamic_pay_providers[$integration->provider] ) ) {
170
+			$provider = & $pronamic_pay_providers[$integration->provider];
171 171
 
172 172
 			if ( ! isset( $provider['integrations'] ) ) {
173 173
 				$provider['integrations'] = array();
Please login to merge, or discard this patch.
tests/Payments/PaymentTest.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
 
46 46
 	public function get_and_set_provider() {
47 47
 		return array(
48
-			array( 'set_id',             'get_id',             uniqid()    ),
49
-			array( 'set_transaction_id', 'get_transaction_id', uniqid()    ),
50
-			array( 'set_status',         'get_status',         'completed' ),
48
+			array( 'set_id', 'get_id', uniqid() ),
49
+			array( 'set_transaction_id', 'get_transaction_id', uniqid() ),
50
+			array( 'set_status', 'get_status', 'completed' ),
51 51
 		);
52 52
 	}
53 53
 
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
 
67 67
 	public function set_provider() {
68 68
 		return array(
69
-			array( 'set_consumer_name',           'consumer_name',           'John Doe' ),
69
+			array( 'set_consumer_name', 'consumer_name', 'John Doe' ),
70 70
 			array( 'set_consumer_account_number', 'consumer_account_number', '1086.34.779' ),
71
-			array( 'set_consumer_iban',           'consumer_iban',           'NL56 RABO 0108 6347 79' ),
72
-			array( 'set_consumer_bic',            'consumer_bic',            'RABONL2U' ),
73
-			array( 'set_consumer_city',           'consumer_city',           'Drachten' ),
71
+			array( 'set_consumer_iban', 'consumer_iban', 'NL56 RABO 0108 6347 79' ),
72
+			array( 'set_consumer_bic', 'consumer_bic', 'RABONL2U' ),
73
+			array( 'set_consumer_city', 'consumer_city', 'Drachten' ),
74 74
 		);
75 75
 	}
76 76
 
@@ -89,25 +89,25 @@  discard block
 block discarded – undo
89 89
 
90 90
 	public function get_provider() {
91 91
 		return array(
92
-			array( 'order_id',            'get_order_id',            1234 ),
93
-			array( 'amount',              'get_amount',              89.95 ),
94
-			array( 'currency',            'get_currency',            'EUR' ),
95
-			array( 'method',              'get_method',              'ideal' ),
96
-			array( 'issuer',              'get_issuer',              'ideal_KNABNL2H' ),
97
-			array( 'language',            'get_language',            'nl' ),
98
-			array( 'locale',              'get_locale',              'nl_NL' ),
99
-			array( 'description',         'get_description',         'Lorem ipsum dolor sit amet, consectetur.' ),
100
-			array( 'email',               'get_email',               '[email protected]' ),
101
-			array( 'first_name',          'get_first_name',          'John' ),
102
-			array( 'last_name',           'get_last_name',           'Doe' ),
103
-			array( 'customer_name',       'get_customer_name',       'John Doe' ),
104
-			array( 'address',             'get_address',             'Burgemeester Wuiteweg 39b' ),
105
-			array( 'city',                'get_city',                'Drachten' ),
106
-			array( 'zip',                 'get_zip',                 '9203 KA' ),
107
-			array( 'country',             'get_country',             'NL' ),
108
-			array( 'telephone_number',    'get_telephone_number',    '1234567890' ),
92
+			array( 'order_id', 'get_order_id', 1234 ),
93
+			array( 'amount', 'get_amount', 89.95 ),
94
+			array( 'currency', 'get_currency', 'EUR' ),
95
+			array( 'method', 'get_method', 'ideal' ),
96
+			array( 'issuer', 'get_issuer', 'ideal_KNABNL2H' ),
97
+			array( 'language', 'get_language', 'nl' ),
98
+			array( 'locale', 'get_locale', 'nl_NL' ),
99
+			array( 'description', 'get_description', 'Lorem ipsum dolor sit amet, consectetur.' ),
100
+			array( 'email', 'get_email', '[email protected]' ),
101
+			array( 'first_name', 'get_first_name', 'John' ),
102
+			array( 'last_name', 'get_last_name', 'Doe' ),
103
+			array( 'customer_name', 'get_customer_name', 'John Doe' ),
104
+			array( 'address', 'get_address', 'Burgemeester Wuiteweg 39b' ),
105
+			array( 'city', 'get_city', 'Drachten' ),
106
+			array( 'zip', 'get_zip', '9203 KA' ),
107
+			array( 'country', 'get_country', 'NL' ),
108
+			array( 'telephone_number', 'get_telephone_number', '1234567890' ),
109 109
 			array( 'analytics_client_id', 'get_analytics_client_id', 'GA1.2.1234567890.1234567890' ),
110
-			array( 'entrance_code',       'get_entrance_code',       uniqid() ),
110
+			array( 'entrance_code', 'get_entrance_code', uniqid() ),
111 111
 		);
112 112
 	}
113 113
 
Please login to merge, or discard this patch.
tests/Subscriptions/SubscriptionTest.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
 
44 44
 	public function get_and_set_provider() {
45 45
 		return array(
46
-			array( 'set_id',             'get_id',             uniqid()    ),
47
-			array( 'set_status',         'get_status',         'completed' ),
48
-			array( 'set_transaction_id', 'get_transaction_id', uniqid()    ),
46
+			array( 'set_id', 'get_id', uniqid() ),
47
+			array( 'set_status', 'get_status', 'completed' ),
48
+			array( 'set_transaction_id', 'get_transaction_id', uniqid() ),
49 49
 		);
50 50
 	}
51 51
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 		return array(
67 67
 			array( 'set_consumer_name', 'consumer_name', 'John Doe' ),
68 68
 			array( 'set_consumer_iban', 'consumer_iban', 'NL56 RABO 0108 6347 79' ),
69
-			array( 'set_consumer_bic',  'consumer_bic',  'RABONL2U' ),
69
+			array( 'set_consumer_bic', 'consumer_bic', 'RABONL2U' ),
70 70
 		);
71 71
 	}
72 72
 
@@ -85,15 +85,15 @@  discard block
 block discarded – undo
85 85
 
86 86
 	public function get_provider() {
87 87
 		return array(
88
-			array( 'key',                 'get_key',             uniqid() ),
89
-			array( 'source',              'get_source',          'woocommerce' ),
90
-			array( 'source_id',           'get_source_id',       '1234' ),
91
-			array( 'frequency',           'get_frequency',       'daily' ),
92
-			array( 'interval',            'get_interval',        '1' ),
93
-			array( 'interval_period',     'get_interval_period', 'Y' ),
94
-			array( 'description',         'get_description',     'Lorem ipsum dolor sit amet, consectetur.' ),
95
-			array( 'currency',            'get_currency',        'EUR' ),
96
-			array( 'amount',              'get_amount',          89.95 ),
88
+			array( 'key', 'get_key', uniqid() ),
89
+			array( 'source', 'get_source', 'woocommerce' ),
90
+			array( 'source_id', 'get_source_id', '1234' ),
91
+			array( 'frequency', 'get_frequency', 'daily' ),
92
+			array( 'interval', 'get_interval', '1' ),
93
+			array( 'interval_period', 'get_interval_period', 'Y' ),
94
+			array( 'description', 'get_description', 'Lorem ipsum dolor sit amet, consectetur.' ),
95
+			array( 'currency', 'get_currency', 'EUR' ),
96
+			array( 'amount', 'get_amount', 89.95 ),
97 97
 		);
98 98
 	}
99 99
 
Please login to merge, or discard this patch.