@@ -100,7 +100,7 @@ |
||
100 | 100 | $post_status = $this->get_post_status( $subscription->get_status() ); |
101 | 101 | |
102 | 102 | if ( ! empty( $post_status ) ) { |
103 | - $data['post_status'] = $post_status; |
|
103 | + $data[ 'post_status' ] = $post_status; |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | wp_update_post( $data ); |
@@ -46,9 +46,9 @@ discard block |
||
46 | 46 | |
47 | 47 | foreach ( $tokens as $token ) { |
48 | 48 | if ( is_array( $token ) ) { |
49 | - $type = $token[0]; |
|
50 | - $value = $token[1]; |
|
51 | - $line = $token[2]; |
|
49 | + $type = $token[ 0 ]; |
|
50 | + $value = $token[ 1 ]; |
|
51 | + $line = $token[ 2 ]; |
|
52 | 52 | |
53 | 53 | if ( in_array( $type, array( T_COMMENT, T_DOC_COMMENT ), true ) && false !== strpos( $value, 'Plugin Name' ) ) { |
54 | 54 | $file_header = $value; |
@@ -90,14 +90,14 @@ discard block |
||
90 | 90 | exit( 1 ); |
91 | 91 | } |
92 | 92 | |
93 | -if ( $default_properties['version'] !== $pkg->version ) { |
|
93 | +if ( $default_properties[ 'version' ] !== $pkg->version ) { |
|
94 | 94 | printf( '❌ ' ); |
95 | - printf( 'The "version" property value "%s" in class "%s" does not match.', $default_properties['version'], $plugin_class_reflection->getName() ); |
|
95 | + printf( 'The "version" property value "%s" in class "%s" does not match.', $default_properties[ 'version' ], $plugin_class_reflection->getName() ); |
|
96 | 96 | |
97 | 97 | exit( 1 ); |
98 | 98 | } |
99 | 99 | |
100 | 100 | printf( '✅ ' ); |
101 | -printf( 'The "version" property value "%s" in class "%s" matches.', $default_properties['version'], $plugin_class_reflection->getName() ); |
|
101 | +printf( 'The "version" property value "%s" in class "%s" matches.', $default_properties[ 'version' ], $plugin_class_reflection->getName() ); |
|
102 | 102 | |
103 | 103 | echo PHP_EOL; |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | $name = __( 'Dashboard', 'pronamic_ideal' ); |
154 | 154 | } |
155 | 155 | |
156 | - $content[] = sprintf( |
|
156 | + $content[ ] = sprintf( |
|
157 | 157 | '<a href="%s" target="_blank">%s</a>', |
158 | 158 | esc_attr( $url ), |
159 | 159 | esc_html( ucfirst( $name ) ) |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | } |
180 | 180 | |
181 | 181 | if ( intval( get_option( 'pronamic_pay_config_id' ) ) === $post->ID ) { |
182 | - $post_states['pronamic_pay_config_default'] = __( 'Default', 'pronamic_ideal' ); |
|
182 | + $post_states[ 'pronamic_pay_config_default' ] = __( 'Default', 'pronamic_ideal' ); |
|
183 | 183 | } |
184 | 184 | |
185 | 185 | return $post_states; |
@@ -273,9 +273,9 @@ discard block |
||
273 | 273 | ); |
274 | 274 | |
275 | 275 | foreach ( $fields as $field ) { |
276 | - if ( isset( $field['meta_key'], $field['filter'] ) ) { |
|
277 | - $name = $field['meta_key']; |
|
278 | - $filter = $field['filter']; |
|
276 | + if ( isset( $field[ 'meta_key' ], $field[ 'filter' ] ) ) { |
|
277 | + $name = $field[ 'meta_key' ]; |
|
278 | + $filter = $field[ 'filter' ]; |
|
279 | 279 | |
280 | 280 | $definition[ $name ] = $filter; |
281 | 281 | } |
@@ -283,28 +283,28 @@ discard block |
||
283 | 283 | |
284 | 284 | $data = filter_input_array( INPUT_POST, $definition ); |
285 | 285 | |
286 | - if ( ! empty( $data['_pronamic_gateway_id'] ) ) { |
|
286 | + if ( ! empty( $data[ '_pronamic_gateway_id' ] ) ) { |
|
287 | 287 | $integrations = $this->plugin->gateway_integrations; |
288 | 288 | |
289 | - if ( isset( $integrations[ $data['_pronamic_gateway_id'] ] ) ) { |
|
290 | - $integration = $integrations[ $data['_pronamic_gateway_id'] ]; |
|
289 | + if ( isset( $integrations[ $data[ '_pronamic_gateway_id' ] ] ) ) { |
|
290 | + $integration = $integrations[ $data[ '_pronamic_gateway_id' ] ]; |
|
291 | 291 | } |
292 | 292 | |
293 | 293 | if ( $integration ) { |
294 | 294 | $settings = $integration->get_settings(); |
295 | 295 | |
296 | 296 | foreach ( $fields as $field ) { |
297 | - if ( isset( $field['default'], $field['meta_key'], $data[ $field['meta_key'] ] ) ) { |
|
297 | + if ( isset( $field[ 'default' ], $field[ 'meta_key' ], $data[ $field[ 'meta_key' ] ] ) ) { |
|
298 | 298 | // Remove default value if not applicable to the selected gateway. |
299 | - if ( isset( $field['methods'] ) ) { |
|
300 | - $clean_default = array_intersect( $settings, $field['methods'] ); |
|
299 | + if ( isset( $field[ 'methods' ] ) ) { |
|
300 | + $clean_default = array_intersect( $settings, $field[ 'methods' ] ); |
|
301 | 301 | |
302 | 302 | if ( empty( $clean_default ) ) { |
303 | - $meta_value = get_post_meta( $post_id, $field['meta_key'], true ); |
|
303 | + $meta_value = get_post_meta( $post_id, $field[ 'meta_key' ], true ); |
|
304 | 304 | |
305 | 305 | // Only remove value if not saved before. |
306 | 306 | if ( empty( $meta_value ) ) { |
307 | - $data[ $field['meta_key'] ] = null; |
|
307 | + $data[ $field[ 'meta_key' ] ] = null; |
|
308 | 308 | |
309 | 309 | continue; |
310 | 310 | } |
@@ -312,13 +312,13 @@ discard block |
||
312 | 312 | } |
313 | 313 | |
314 | 314 | // Set the default value if empty. |
315 | - if ( empty( $data[ $field['meta_key'] ] ) ) { |
|
316 | - $default = $field['default']; |
|
315 | + if ( empty( $data[ $field[ 'meta_key' ] ] ) ) { |
|
316 | + $default = $field[ 'default' ]; |
|
317 | 317 | |
318 | - if ( is_array( $default ) && 2 === count( $default ) && Util::class_method_exists( $default[0], $default[1] ) ) { |
|
319 | - $data[ $field['meta_key'] ] = call_user_func( $default, $field ); |
|
318 | + if ( is_array( $default ) && 2 === count( $default ) && Util::class_method_exists( $default[ 0 ], $default[ 1 ] ) ) { |
|
319 | + $data[ $field[ 'meta_key' ] ] = call_user_func( $default, $field ); |
|
320 | 320 | } else { |
321 | - $data[ $field['meta_key'] ] = $default; |
|
321 | + $data[ $field[ 'meta_key' ] ] = $default; |
|
322 | 322 | } |
323 | 323 | } |
324 | 324 | } |
@@ -368,14 +368,14 @@ discard block |
||
368 | 368 | 0 => '', // Unused. Messages start at index 1. |
369 | 369 | 1 => __( 'Configuration updated.', 'pronamic_ideal' ), |
370 | 370 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352799&filters[translation_id]=37947229 |
371 | - 2 => $messages['post'][2], |
|
371 | + 2 => $messages[ 'post' ][ 2 ], |
|
372 | 372 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352800&filters[translation_id]=37947870 |
373 | - 3 => $messages['post'][3], |
|
373 | + 3 => $messages[ 'post' ][ 3 ], |
|
374 | 374 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352798&filters[translation_id]=37947230 |
375 | 375 | 4 => __( 'Configuration updated.', 'pronamic_ideal' ), |
376 | 376 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352801&filters[translation_id]=37947231 |
377 | 377 | // translators: %s: date and time of the revision. |
378 | - 5 => isset( $_GET['revision'] ) ? sprintf( __( 'Configuration restored to revision from %s.', 'pronamic_ideal' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, // WPCS: CSRF ok. |
|
378 | + 5 => isset( $_GET[ 'revision' ] ) ? sprintf( __( 'Configuration restored to revision from %s.', 'pronamic_ideal' ), wp_post_revision_title( (int) $_GET[ 'revision' ], false ) ) : false, // WPCS: CSRF ok. |
|
379 | 379 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352802&filters[translation_id]=37949178 |
380 | 380 | 6 => __( 'Configuration published.', 'pronamic_ideal' ), |
381 | 381 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352803&filters[translation_id]=37947232 |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | ); |
477 | 477 | |
478 | 478 | if ( $payment_method ) { |
479 | - $args['post__in'] = PaymentMethods::get_config_ids( $payment_method ); |
|
479 | + $args[ 'post__in' ] = PaymentMethods::get_config_ids( $payment_method ); |
|
480 | 480 | } |
481 | 481 | |
482 | 482 | $query = new WP_Query( $args ); |
@@ -687,10 +687,10 @@ discard block |
||
687 | 687 | $payment->set_credit_card( $data->get_credit_card() ); |
688 | 688 | |
689 | 689 | // User Agent (@see https://github.com/WordPress/WordPress/blob/4.9.4/wp-includes/comment.php#L1962-L1965). |
690 | - $payment->user_agent = isset( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT'] : null; |
|
690 | + $payment->user_agent = isset( $_SERVER[ 'HTTP_USER_AGENT' ] ) ? $_SERVER[ 'HTTP_USER_AGENT' ] : null; |
|
691 | 691 | |
692 | 692 | // IP (@see https://github.com/WordPress/WordPress/blob/4.9.4/wp-includes/comment.php#L1957-L1960). |
693 | - $payment->user_ip = isset( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : null; |
|
693 | + $payment->user_ip = isset( $_SERVER[ 'REMOTE_ADDR' ] ) ? $_SERVER[ 'REMOTE_ADDR' ] : null; |
|
694 | 694 | |
695 | 695 | return self::start_payment( $payment, $gateway ); |
696 | 696 | } |
@@ -713,7 +713,7 @@ discard block |
||
713 | 713 | |
714 | 714 | if ( empty( $amount ) ) { |
715 | 715 | // Keep track of free payments to update during shutdown. |
716 | - pronamic_pay_plugin()->payments_module->free[] = $payment->get_id(); |
|
716 | + pronamic_pay_plugin()->payments_module->free[ ] = $payment->get_id(); |
|
717 | 717 | |
718 | 718 | return $payment; |
719 | 719 | } |
@@ -72,10 +72,10 @@ discard block |
||
72 | 72 | $screen = get_current_screen(); |
73 | 73 | |
74 | 74 | if ( self::POST_TYPE === $screen->post_type ) { |
75 | - if ( ! isset( $vars['post_status'] ) ) { |
|
76 | - $vars['post_status'] = array_keys( SubscriptionPostType::get_states() ); |
|
75 | + if ( ! isset( $vars[ 'post_status' ] ) ) { |
|
76 | + $vars[ 'post_status' ] = array_keys( SubscriptionPostType::get_states() ); |
|
77 | 77 | |
78 | - $vars['post_status'][] = 'publish'; |
|
78 | + $vars[ 'post_status' ][ ] = 'publish'; |
|
79 | 79 | } |
80 | 80 | } |
81 | 81 | |
@@ -113,8 +113,8 @@ discard block |
||
113 | 113 | * @return array |
114 | 114 | */ |
115 | 115 | public function sortable_columns( $sortable_columns ) { |
116 | - $sortable_columns['pronamic_subscription_title'] = 'ID'; |
|
117 | - $sortable_columns['pronamic_subscription_date'] = 'date'; |
|
116 | + $sortable_columns[ 'pronamic_subscription_title' ] = 'ID'; |
|
117 | + $sortable_columns[ 'pronamic_subscription_date' ] = 'date'; |
|
118 | 118 | |
119 | 119 | return $sortable_columns; |
120 | 120 | } |
@@ -93,10 +93,10 @@ discard block |
||
93 | 93 | $screen = get_current_screen(); |
94 | 94 | |
95 | 95 | if ( self::POST_TYPE === $screen->post_type ) { |
96 | - if ( ! isset( $vars['post_status'] ) ) { |
|
97 | - $vars['post_status'] = array_keys( PaymentPostType::get_payment_states() ); |
|
96 | + if ( ! isset( $vars[ 'post_status' ] ) ) { |
|
97 | + $vars[ 'post_status' ] = array_keys( PaymentPostType::get_payment_states() ); |
|
98 | 98 | |
99 | - $vars['post_status'][] = 'publish'; |
|
99 | + $vars[ 'post_status' ][ ] = 'publish'; |
|
100 | 100 | } |
101 | 101 | } |
102 | 102 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | |
127 | 127 | Plugin::update_payment( $payment, false ); |
128 | 128 | |
129 | - $this->admin_notices[] = array( |
|
129 | + $this->admin_notices[ ] = array( |
|
130 | 130 | 'type' => 'info', |
131 | 131 | 'message' => __( 'Payment status updated.', 'pronamic_ideal' ), |
132 | 132 | ); |
@@ -140,8 +140,8 @@ discard block |
||
140 | 140 | foreach ( $this->admin_notices as $notice ) { |
141 | 141 | printf( |
142 | 142 | '<div class="notice notice-%1$s"><p>%2$s</p></div>', |
143 | - esc_attr( $notice['type'] ), |
|
144 | - esc_html( $notice['message'] ) |
|
143 | + esc_attr( $notice[ 'type' ] ), |
|
144 | + esc_html( $notice[ 'message' ] ) |
|
145 | 145 | ); |
146 | 146 | } |
147 | 147 | } |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | * @return array |
197 | 197 | */ |
198 | 198 | public function default_hidden_columns( $hidden ) { |
199 | - $hidden[] = 'pronamic_payment_gateway'; |
|
200 | - $hidden[] = 'pronamic_payment_description'; |
|
199 | + $hidden[ ] = 'pronamic_payment_gateway'; |
|
200 | + $hidden[ ] = 'pronamic_payment_description'; |
|
201 | 201 | |
202 | 202 | return $hidden; |
203 | 203 | } |
@@ -209,9 +209,9 @@ discard block |
||
209 | 209 | * @return array |
210 | 210 | */ |
211 | 211 | public function sortable_columns( $sortable_columns ) { |
212 | - $sortable_columns['pronamic_payment_title'] = 'ID'; |
|
213 | - $sortable_columns['pronamic_payment_amount'] = 'pronamic_payment_amount'; |
|
214 | - $sortable_columns['pronamic_payment_date'] = 'date'; |
|
212 | + $sortable_columns[ 'pronamic_payment_title' ] = 'ID'; |
|
213 | + $sortable_columns[ 'pronamic_payment_amount' ] = 'pronamic_payment_amount'; |
|
214 | + $sortable_columns[ 'pronamic_payment_date' ] = 'date'; |
|
215 | 215 | |
216 | 216 | return $sortable_columns; |
217 | 217 | } |
@@ -551,14 +551,14 @@ discard block |
||
551 | 551 | 0 => '', // Unused. Messages start at index 1. |
552 | 552 | 1 => __( 'Payment updated.', 'pronamic_ideal' ), |
553 | 553 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352799&filters[translation_id]=37947229. |
554 | - 2 => $messages['post'][2], |
|
554 | + 2 => $messages[ 'post' ][ 2 ], |
|
555 | 555 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352800&filters[translation_id]=37947870. |
556 | - 3 => $messages['post'][3], |
|
556 | + 3 => $messages[ 'post' ][ 3 ], |
|
557 | 557 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352798&filters[translation_id]=37947230. |
558 | 558 | 4 => __( 'Payment updated.', 'pronamic_ideal' ), |
559 | 559 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352801&filters[translation_id]=37947231. |
560 | 560 | // translators: %s: date and time of the revision |
561 | - 5 => isset( $_GET['revision'] ) ? sprintf( __( 'Payment restored to revision from %s.', 'pronamic_ideal' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, // WPCS: CSRF ok. |
|
561 | + 5 => isset( $_GET[ 'revision' ] ) ? sprintf( __( 'Payment restored to revision from %s.', 'pronamic_ideal' ), wp_post_revision_title( (int) $_GET[ 'revision' ], false ) ) : false, // WPCS: CSRF ok. |
|
562 | 562 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352802&filters[translation_id]=37949178. |
563 | 563 | 6 => __( 'Payment published.', 'pronamic_ideal' ), |
564 | 564 | // @see https://translate.wordpress.org/projects/wp/4.4.x/admin/nl/default?filters[status]=either&filters[original_id]=2352803&filters[translation_id]=37947232. |
@@ -75,11 +75,11 @@ discard block |
||
75 | 75 | // Git flow |
76 | 76 | chdir( $git_dir ); |
77 | 77 | |
78 | - if ( isset( $argv[1] ) && 'develop' === $argv[1] ) { |
|
78 | + if ( isset( $argv[ 1 ] ) && 'develop' === $argv[ 1 ] ) { |
|
79 | 79 | `git checkout develop`; |
80 | 80 | } |
81 | 81 | |
82 | - if ( isset( $argv[1] ) && 'pull' === $argv[1] ) { |
|
82 | + if ( isset( $argv[ 1 ] ) && 'pull' === $argv[ 1 ] ) { |
|
83 | 83 | $command = 'git pull'; |
84 | 84 | |
85 | 85 | echo $command, PHP_EOL; |
@@ -87,8 +87,8 @@ discard block |
||
87 | 87 | echo shell_exec( $command ), PHP_EOL; |
88 | 88 | } |
89 | 89 | |
90 | - if ( isset( $argv[1], $argv[2] ) && in_array( $argv[1], array( 'git', 'composer', 'yarn' ) ) ) { |
|
91 | - $command = sprintf( '%s %s', $argv[1], $argv[2] ); |
|
90 | + if ( isset( $argv[ 1 ], $argv[ 2 ] ) && in_array( $argv[ 1 ], array( 'git', 'composer', 'yarn' ) ) ) { |
|
91 | + $command = sprintf( '%s %s', $argv[ 1 ], $argv[ 2 ] ); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | if ( null !== $command ) { |
@@ -46,10 +46,10 @@ discard block |
||
46 | 46 | |
47 | 47 | public function get_and_set_provider() { |
48 | 48 | return array( |
49 | - array( 'set_amount', 'get_amount', new Money( 89.95, 'EUR' ) ), |
|
50 | - array( 'set_id', 'get_id', uniqid() ), |
|
51 | - array( 'set_transaction_id', 'get_transaction_id', uniqid() ), |
|
52 | - array( 'set_status', 'get_status', 'completed' ), |
|
49 | + array( 'set_amount', 'get_amount', new Money( 89.95, 'EUR' ) ), |
|
50 | + array( 'set_id', 'get_id', uniqid() ), |
|
51 | + array( 'set_transaction_id', 'get_transaction_id', uniqid() ), |
|
52 | + array( 'set_status', 'get_status', 'completed' ), |
|
53 | 53 | ); |
54 | 54 | } |
55 | 55 | |
@@ -68,11 +68,11 @@ discard block |
||
68 | 68 | |
69 | 69 | public function set_provider() { |
70 | 70 | return array( |
71 | - array( 'set_consumer_name', 'consumer_name', 'John Doe' ), |
|
71 | + array( 'set_consumer_name', 'consumer_name', 'John Doe' ), |
|
72 | 72 | array( 'set_consumer_account_number', 'consumer_account_number', '1086.34.779' ), |
73 | - array( 'set_consumer_iban', 'consumer_iban', 'NL56 RABO 0108 6347 79' ), |
|
74 | - array( 'set_consumer_bic', 'consumer_bic', 'RABONL2U' ), |
|
75 | - array( 'set_consumer_city', 'consumer_city', 'Drachten' ), |
|
73 | + array( 'set_consumer_iban', 'consumer_iban', 'NL56 RABO 0108 6347 79' ), |
|
74 | + array( 'set_consumer_bic', 'consumer_bic', 'RABONL2U' ), |
|
75 | + array( 'set_consumer_city', 'consumer_city', 'Drachten' ), |
|
76 | 76 | ); |
77 | 77 | } |
78 | 78 | |
@@ -91,23 +91,23 @@ discard block |
||
91 | 91 | |
92 | 92 | public function get_provider() { |
93 | 93 | return array( |
94 | - array( 'order_id', 'get_order_id', 1234 ), |
|
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' ), |
|
94 | + array( 'order_id', 'get_order_id', 1234 ), |
|
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 |
@@ -44,10 +44,10 @@ discard block |
||
44 | 44 | |
45 | 45 | public function get_and_set_provider() { |
46 | 46 | return array( |
47 | - array( 'set_amount', 'get_amount', new Money( 89.95, 'EUR' ) ), |
|
48 | - array( 'set_id', 'get_id', uniqid() ), |
|
49 | - array( 'set_status', 'get_status', 'completed' ), |
|
50 | - array( 'set_transaction_id', 'get_transaction_id', uniqid() ), |
|
47 | + array( 'set_amount', 'get_amount', new Money( 89.95, 'EUR' ) ), |
|
48 | + array( 'set_id', 'get_id', uniqid() ), |
|
49 | + array( 'set_status', 'get_status', 'completed' ), |
|
50 | + array( 'set_transaction_id', 'get_transaction_id', uniqid() ), |
|
51 | 51 | ); |
52 | 52 | } |
53 | 53 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | return array( |
74 | 74 | array( 'set_consumer_name', 'consumer_name', 'John Doe' ), |
75 | 75 | array( 'set_consumer_iban', 'consumer_iban', 'NL56 RABO 0108 6347 79' ), |
76 | - array( 'set_consumer_bic', 'consumer_bic', 'RABONL2U' ), |
|
76 | + array( 'set_consumer_bic', 'consumer_bic', 'RABONL2U' ), |
|
77 | 77 | ); |
78 | 78 | } |
79 | 79 | |
@@ -97,13 +97,13 @@ discard block |
||
97 | 97 | */ |
98 | 98 | public function get_provider() { |
99 | 99 | return array( |
100 | - array( 'key', 'get_key', uniqid() ), |
|
101 | - array( 'source', 'get_source', 'woocommerce' ), |
|
102 | - array( 'source_id', 'get_source_id', '1234' ), |
|
103 | - array( 'frequency', 'get_frequency', 'daily' ), |
|
104 | - array( 'interval', 'get_interval', '1' ), |
|
105 | - array( 'interval_period', 'get_interval_period', 'Y' ), |
|
106 | - array( 'description', 'get_description', 'Lorem ipsum dolor sit amet, consectetur.' ), |
|
100 | + array( 'key', 'get_key', uniqid() ), |
|
101 | + array( 'source', 'get_source', 'woocommerce' ), |
|
102 | + array( 'source_id', 'get_source_id', '1234' ), |
|
103 | + array( 'frequency', 'get_frequency', 'daily' ), |
|
104 | + array( 'interval', 'get_interval', '1' ), |
|
105 | + array( 'interval_period', 'get_interval_period', 'Y' ), |
|
106 | + array( 'description', 'get_description', 'Lorem ipsum dolor sit amet, consectetur.' ), |
|
107 | 107 | ); |
108 | 108 | } |
109 | 109 |