@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | // Handle renewals. |
| 262 | 262 | if ( is_array( $renewal ) ) { |
| 263 | 263 | $payment->recurring = false; |
| 264 | - $payment->issuer = $renewal['issuer']; |
|
| 264 | + $payment->issuer = $renewal[ 'issuer' ]; |
|
| 265 | 265 | } |
| 266 | 266 | |
| 267 | 267 | // Start payment. |
@@ -305,11 +305,11 @@ discard block |
||
| 305 | 305 | * @return array |
| 306 | 306 | */ |
| 307 | 307 | public function exclude_subscription_comment_notes( $clauses, $query ) { |
| 308 | - $type = $query->query_vars['type']; |
|
| 308 | + $type = $query->query_vars[ 'type' ]; |
|
| 309 | 309 | |
| 310 | 310 | // Ignore subscription notes comments if it's not specifically requested. |
| 311 | 311 | if ( 'subscription_note' !== $type ) { |
| 312 | - $clauses['where'] .= " AND comment_type != 'subscription_note'"; |
|
| 312 | + $clauses[ 'where' ] .= " AND comment_type != 'subscription_note'"; |
|
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | return $clauses; |
@@ -596,7 +596,7 @@ discard block |
||
| 596 | 596 | ); |
| 597 | 597 | |
| 598 | 598 | if ( ! $cli_test ) { |
| 599 | - $args['meta_query'][] = array( |
|
| 599 | + $args[ 'meta_query' ][ ] = array( |
|
| 600 | 600 | 'key' => '_pronamic_subscription_next_payment', |
| 601 | 601 | 'compare' => '<=', |
| 602 | 602 | 'value' => current_time( 'mysql', true ), |
@@ -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 ) { |