Passed
Push — develop ( 4c3abf...feae28 )
by Reüel
03:53
created
classes/Subscriptions/SubscriptionsModule.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 ),
Please login to merge, or discard this patch.
src/repositories.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 ) {
Please login to merge, or discard this patch.