@@ -195,11 +195,11 @@ discard block |
||
195 | 195 | * @return array |
196 | 196 | */ |
197 | 197 | public function exclude_comment_notes( $clauses, $query ) { |
198 | - $type = $query->query_vars['type']; |
|
198 | + $type = $query->query_vars[ 'type' ]; |
|
199 | 199 | |
200 | 200 | // Ignore payment notes comments if it's not specifically requested. |
201 | 201 | if ( 'payment_note' !== $type ) { |
202 | - $clauses['where'] .= " AND comment_type != 'payment_note'"; |
|
202 | + $clauses[ 'where' ] .= " AND comment_type != 'payment_note'"; |
|
203 | 203 | } |
204 | 204 | |
205 | 205 | return $clauses; |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | 'test' => 'https://abnamro-test.ideal-payment.de/', |
514 | 514 | 'live' => 'https://abnamro.ideal-payment.de/', |
515 | 515 | ); |
516 | - $integration->provider = 'abnamro'; |
|
516 | + $integration->provider = 'abnamro'; |
|
517 | 517 | |
518 | 518 | $integrations[ $integration->get_id() ] = $integration; |
519 | 519 | |
@@ -540,7 +540,7 @@ discard block |
||
540 | 540 | 'test' => 'https://myideal.test.db.com/', |
541 | 541 | 'live' => 'https://myideal.db.com/', |
542 | 542 | ); |
543 | - $integration->provider = 'deutschebank'; |
|
543 | + $integration->provider = 'deutschebank'; |
|
544 | 544 | |
545 | 545 | $integrations[ $integration->get_id() ] = $integration; |
546 | 546 | |
@@ -949,7 +949,7 @@ discard block |
||
949 | 949 | break; |
950 | 950 | } |
951 | 951 | |
952 | - $args['meta_query'] = array( |
|
952 | + $args[ 'meta_query' ] = array( |
|
953 | 953 | array( |
954 | 954 | 'key' => '_pronamic_gateway_id', |
955 | 955 | 'value' => $gateways, |
@@ -318,13 +318,13 @@ |
||
318 | 318 | |
319 | 319 | if ( is_array( $groups ) ) { |
320 | 320 | foreach ( $groups as $group ) { |
321 | - $optgroup = isset( $group['name'] ) && ! empty( $group['name'] ); |
|
321 | + $optgroup = isset( $group[ 'name' ] ) && ! empty( $group[ 'name' ] ); |
|
322 | 322 | |
323 | 323 | if ( $optgroup ) { |
324 | - $html .= '<optgroup label="' . $group['name'] . '">'; |
|
324 | + $html .= '<optgroup label="' . $group[ 'name' ] . '">'; |
|
325 | 325 | } |
326 | 326 | |
327 | - foreach ( $group['options'] as $value => $label ) { |
|
327 | + foreach ( $group[ 'options' ] as $value => $label ) { |
|
328 | 328 | $html .= '<option value="' . $value . '" ' . selected( $selected_value, $value, false ) . '>' . $label . '</option>'; |
329 | 329 | } |
330 | 330 |
@@ -228,12 +228,12 @@ |
||
228 | 228 | |
229 | 229 | $ga = explode( '.', $ga_cookie ); |
230 | 230 | |
231 | - if ( isset( $ga[2] ) && GoogleAnalyticsEcommerce::is_uuid( $ga[2] ) ) { |
|
231 | + if ( isset( $ga[ 2 ] ) && GoogleAnalyticsEcommerce::is_uuid( $ga[ 2 ] ) ) { |
|
232 | 232 | // Use UUID from cookie. |
233 | - $client_id = $ga[2]; |
|
234 | - } elseif ( isset( $ga[2], $ga[3] ) ) { |
|
233 | + $client_id = $ga[ 2 ]; |
|
234 | + } elseif ( isset( $ga[ 2 ], $ga[ 3 ] ) ) { |
|
235 | 235 | // Older Google Client ID. |
236 | - $client_id = sprintf( '%s.%s', $ga[2], $ga[3] ); |
|
236 | + $client_id = sprintf( '%s.%s', $ga[ 2 ], $ga[ 3 ] ); |
|
237 | 237 | } |
238 | 238 | |
239 | 239 | return $client_id; |
@@ -242,11 +242,11 @@ |
||
242 | 242 | * @return array |
243 | 243 | */ |
244 | 244 | public function exclude_subscription_comment_notes( $clauses, $query ) { |
245 | - $type = $query->query_vars['type']; |
|
245 | + $type = $query->query_vars[ 'type' ]; |
|
246 | 246 | |
247 | 247 | // Ignore subscription notes comments if it's not specifically requested. |
248 | 248 | if ( 'subscription_note' !== $type ) { |
249 | - $clauses['where'] .= " AND comment_type != 'subscription_note'"; |
|
249 | + $clauses[ 'where' ] .= " AND comment_type != 'subscription_note'"; |
|
250 | 250 | } |
251 | 251 | |
252 | 252 | return $clauses; |
@@ -641,7 +641,7 @@ |
||
641 | 641 | $payments = $this->get_payments(); |
642 | 642 | |
643 | 643 | if ( count( $payments ) > 0 ) { |
644 | - return $payments[0]; |
|
644 | + return $payments[ 0 ]; |
|
645 | 645 | } |
646 | 646 | |
647 | 647 | return null; |
@@ -88,7 +88,7 @@ |
||
88 | 88 | $post_status = $this->get_post_status( $subscription, null ); |
89 | 89 | |
90 | 90 | if ( null !== $post_status ) { |
91 | - $data['post_status'] = $post_status; |
|
91 | + $data[ 'post_status' ] = $post_status; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | wp_update_post( $data ); |
@@ -70,11 +70,11 @@ |
||
70 | 70 | // Git flow |
71 | 71 | chdir( $git_dir ); |
72 | 72 | |
73 | - if ( isset( $argv[1] ) && 'develop' === $argv[1] ) { |
|
73 | + if ( isset( $argv[ 1 ] ) && 'develop' === $argv[ 1 ] ) { |
|
74 | 74 | `git checkout develop`; |
75 | 75 | } |
76 | 76 | |
77 | - if ( isset( $argv[1] ) && 'pull' === $argv[1] ) { |
|
77 | + if ( isset( $argv[ 1 ] ) && 'pull' === $argv[ 1 ] ) { |
|
78 | 78 | $command = 'git pull'; |
79 | 79 | |
80 | 80 | echo $command, PHP_EOL; |
@@ -38,9 +38,9 @@ |
||
38 | 38 | |
39 | 39 | foreach ( $tokens as $token ) { |
40 | 40 | if ( is_array( $token ) ) { |
41 | - $type = $token[0]; |
|
42 | - $value = $token[1]; |
|
43 | - $line = $token[2]; |
|
41 | + $type = $token[ 0 ]; |
|
42 | + $value = $token[ 1 ]; |
|
43 | + $line = $token[ 2 ]; |
|
44 | 44 | |
45 | 45 | if ( in_array( $type, array( T_COMMENT, T_DOC_COMMENT ), true ) && false !== strpos( $value, 'Plugin Name' ) ) { |
46 | 46 | $file_header = $value; |
@@ -147,15 +147,15 @@ |
||
147 | 147 | <?php foreach ( $fields as $i => $field ) : ?> |
148 | 148 | |
149 | 149 | <p class="pronamic-pay-form-row pronamic-pay-form-row-wide"> |
150 | - <label class="pronamic-pay-label" for="<?php echo esc_attr( $field['id'] ); ?>"> |
|
151 | - <?php echo esc_html( $field['label'] ); ?> |
|
150 | + <label class="pronamic-pay-label" for="<?php echo esc_attr( $field[ 'id' ] ); ?>"> |
|
151 | + <?php echo esc_html( $field[ 'label' ] ); ?> |
|
152 | 152 | <span class="pronamic-pay-required-indicator">*</span> |
153 | 153 | </label> |
154 | 154 | |
155 | - <?php if ( 'select' === $field['type'] ) : ?> |
|
155 | + <?php if ( 'select' === $field[ 'type' ] ) : ?> |
|
156 | 156 | |
157 | - <select id="<?php echo esc_attr( $field['id'] ); ?>" name="<?php echo esc_attr( $field['name'] ); ?>"> |
|
158 | - <?php echo Util::select_options_grouped( $field['choices'] ); ?> |
|
157 | + <select id="<?php echo esc_attr( $field[ 'id' ] ); ?>" name="<?php echo esc_attr( $field[ 'name' ] ); ?>"> |
|
158 | + <?php echo Util::select_options_grouped( $field[ 'choices' ] ); ?> |
|
159 | 159 | </select> |
160 | 160 | |
161 | 161 | <?php endif; ?> |