@@ -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;  | 
                                                        
@@ -243,7 +243,7 @@ discard block  | 
                                                    ||
| 243 | 243 | break;  | 
                                                        
| 244 | 244 | }  | 
                                                        
| 245 | 245 | |
| 246 | -		if ( ! empty( $page_id ) ) { | 
                                                        |
| 246 | +		if ( !empty( $page_id ) ) { | 
                                                        |
| 247 | 247 | $page_url = get_permalink( $page_id );  | 
                                                        
| 248 | 248 | |
| 249 | 249 |  			if ( false !== $page_url ) { | 
                                                        
@@ -306,7 +306,7 @@ discard block  | 
                                                    ||
| 306 | 306 | * Handle returns.  | 
                                                        
| 307 | 307 | */  | 
                                                        
| 308 | 308 |  	public function handle_returns() { | 
                                                        
| 309 | -		if ( ! filter_has_var( INPUT_GET, 'payment' ) ) { | 
                                                        |
| 309 | +		if ( !filter_has_var( INPUT_GET, 'payment' ) ) { | 
                                                        |
| 310 | 310 | return;  | 
                                                        
| 311 | 311 | }  | 
                                                        
| 312 | 312 | |
@@ -325,7 +325,7 @@ discard block  | 
                                                    ||
| 325 | 325 | $valid_key = ( $key === $payment->key );  | 
                                                        
| 326 | 326 | }  | 
                                                        
| 327 | 327 | |
| 328 | -		if ( ! $valid_key ) { | 
                                                        |
| 328 | +		if ( !$valid_key ) { | 
                                                        |
| 329 | 329 | wp_redirect( home_url() );  | 
                                                        
| 330 | 330 | |
| 331 | 331 | exit;  | 
                                                        
@@ -353,7 +353,7 @@ discard block  | 
                                                    ||
| 353 | 353 | * Maybe redirect.  | 
                                                        
| 354 | 354 | */  | 
                                                        
| 355 | 355 |  	public function maybe_redirect() { | 
                                                        
| 356 | -		if ( ! filter_has_var( INPUT_GET, 'payment_redirect' ) ) { | 
                                                        |
| 356 | +		if ( !filter_has_var( INPUT_GET, 'payment_redirect' ) ) { | 
                                                        |
| 357 | 357 | return;  | 
                                                        
| 358 | 358 | }  | 
                                                        
| 359 | 359 | |
@@ -364,7 +364,7 @@ discard block  | 
                                                    ||
| 364 | 364 | // HTML Answer.  | 
                                                        
| 365 | 365 | $html_answer = $payment->get_meta( 'ogone_directlink_html_answer' );  | 
                                                        
| 366 | 366 | |
| 367 | -		if ( ! empty( $html_answer ) ) { | 
                                                        |
| 367 | +		if ( !empty( $html_answer ) ) { | 
                                                        |
| 368 | 368 | echo $html_answer; // WPCS: XSS ok.  | 
                                                        
| 369 | 369 | |
| 370 | 370 | exit;  | 
                                                        
@@ -372,7 +372,7 @@ discard block  | 
                                                    ||
| 372 | 372 | |
| 373 | 373 | $redirect_message = $payment->get_meta( 'payment_redirect_message' );  | 
                                                        
| 374 | 374 | |
| 375 | -		if ( ! empty( $redirect_message ) ) { | 
                                                        |
| 375 | +		if ( !empty( $redirect_message ) ) { | 
                                                        |
| 376 | 376 | $key = filter_input( INPUT_GET, 'key', FILTER_SANITIZE_STRING );  | 
                                                        
| 377 | 377 | |
| 378 | 378 |  			if ( $key !== $payment->key ) { | 
                                                        
@@ -383,29 +383,29 @@ discard block  | 
                                                    ||
| 383 | 383 | |
| 384 | 384 | // @see https://github.com/woothemes/woocommerce/blob/2.3.11/includes/class-wc-cache-helper.php  | 
                                                        
| 385 | 385 | // @see https://www.w3-edge.com/products/w3-total-cache/  | 
                                                        
| 386 | -			if ( ! defined( 'DONOTCACHEPAGE' ) ) { | 
                                                        |
| 386 | +			if ( !defined( 'DONOTCACHEPAGE' ) ) { | 
                                                        |
| 387 | 387 | define( 'DONOTCACHEPAGE', true );  | 
                                                        
| 388 | 388 | }  | 
                                                        
| 389 | 389 | |
| 390 | -			if ( ! defined( 'DONOTCACHEDB' ) ) { | 
                                                        |
| 390 | +			if ( !defined( 'DONOTCACHEDB' ) ) { | 
                                                        |
| 391 | 391 | define( 'DONOTCACHEDB', true );  | 
                                                        
| 392 | 392 | }  | 
                                                        
| 393 | 393 | |
| 394 | -			if ( ! defined( 'DONOTMINIFY' ) ) { | 
                                                        |
| 394 | +			if ( !defined( 'DONOTMINIFY' ) ) { | 
                                                        |
| 395 | 395 | define( 'DONOTMINIFY', true );  | 
                                                        
| 396 | 396 | }  | 
                                                        
| 397 | 397 | |
| 398 | -			if ( ! defined( 'DONOTCDN' ) ) { | 
                                                        |
| 398 | +			if ( !defined( 'DONOTCDN' ) ) { | 
                                                        |
| 399 | 399 | define( 'DONOTCDN', true );  | 
                                                        
| 400 | 400 | }  | 
                                                        
| 401 | 401 | |
| 402 | -			if ( ! defined( 'DONOTCACHEOBJECT' ) ) { | 
                                                        |
| 402 | +			if ( !defined( 'DONOTCACHEOBJECT' ) ) { | 
                                                        |
| 403 | 403 | define( 'DONOTCACHEOBJECT', true );  | 
                                                        
| 404 | 404 | }  | 
                                                        
| 405 | 405 | |
| 406 | 406 | nocache_headers();  | 
                                                        
| 407 | 407 | |
| 408 | - include Plugin::$dirname . '/views/redirect-message.php';  | 
                                                        |
| 408 | + include Plugin::$dirname.'/views/redirect-message.php';  | 
                                                        |
| 409 | 409 | |
| 410 | 410 | exit;  | 
                                                        
| 411 | 411 | }  | 
                                                        
@@ -424,7 +424,7 @@ discard block  | 
                                                    ||
| 424 | 424 | }  | 
                                                        
| 425 | 425 | }  | 
                                                        
| 426 | 426 | |
| 427 | -		if ( ! empty( $payment->action_url ) ) { | 
                                                        |
| 427 | +		if ( !empty( $payment->action_url ) ) { | 
                                                        |
| 428 | 428 | wp_redirect( $payment->action_url );  | 
                                                        
| 429 | 429 | |
| 430 | 430 | exit;  | 
                                                        
@@ -453,7 +453,7 @@ discard block  | 
                                                    ||
| 453 | 453 | */  | 
                                                        
| 454 | 454 |  	public function plugins_loaded() { | 
                                                        
| 455 | 455 | // Load plugin text domain.  | 
                                                        
| 456 | - $rel_path = dirname( plugin_basename( self::$file ) ) . '/languages/';  | 
                                                        |
| 456 | + $rel_path = dirname( plugin_basename( self::$file ) ).'/languages/';  | 
                                                        |
| 457 | 457 | |
| 458 | 458 | load_plugin_textdomain( 'pronamic_ideal', false, $rel_path );  | 
                                                        
| 459 | 459 | |
@@ -680,7 +680,7 @@ discard block  | 
                                                    ||
| 680 | 680 | break;  | 
                                                        
| 681 | 681 | }  | 
                                                        
| 682 | 682 | |
| 683 | - $args['meta_query'] = array(  | 
                                                        |
| 683 | + $args[ 'meta_query' ] = array(  | 
                                                        |
| 684 | 684 | array(  | 
                                                        
| 685 | 685 | 'key' => '_pronamic_gateway_id',  | 
                                                        
| 686 | 686 | 'value' => $gateways,  | 
                                                        
@@ -727,12 +727,12 @@ discard block  | 
                                                    ||
| 727 | 727 | * @param array $errors An array with errors to render.  | 
                                                        
| 728 | 728 | */  | 
                                                        
| 729 | 729 |  	public static function render_errors( $errors = array() ) { | 
                                                        
| 730 | -		if ( ! is_array( $errors ) ) { | 
                                                        |
| 730 | +		if ( !is_array( $errors ) ) { | 
                                                        |
| 731 | 731 | $errors = array( $errors );  | 
                                                        
| 732 | 732 | }  | 
                                                        
| 733 | 733 | |
| 734 | 734 |  		foreach ( $errors as $error ) { | 
                                                        
| 735 | - include Plugin::$dirname . '/views/error.php';  | 
                                                        |
| 735 | + include Plugin::$dirname.'/views/error.php';  | 
                                                        |
| 736 | 736 | }  | 
                                                        
| 737 | 737 | }  | 
                                                        
| 738 | 738 | |
@@ -920,7 +920,7 @@ discard block  | 
                                                    ||
| 920 | 920 | $subscription = $payment->get_subscription();  | 
                                                        
| 921 | 921 | |
| 922 | 922 |  			if ( $subscription ) { | 
                                                        
| 923 | -				if ( ! $payment->get_recurring() ) { | 
                                                        |
| 923 | +				if ( !$payment->get_recurring() ) { | 
                                                        |
| 924 | 924 | // First payment.  | 
                                                        
| 925 | 925 | // Cancel subscription to prevent unwanted recurring payments in the future,  | 
                                                        
| 926 | 926 | // when a valid customer ID might be set for the user.  | 
                                                        
@@ -76,7 +76,7 @@ discard block  | 
                                                    ||
| 76 | 76 | 'test' => 'https://abnamro-test.ideal-payment.de/',  | 
                                                        
| 77 | 77 | 'live' => 'https://abnamro.ideal-payment.de/',  | 
                                                        
| 78 | 78 | );  | 
                                                        
| 79 | - $abn_amro_ideal_zelfbouw_v3->provider = 'abnamro';  | 
                                                        |
| 79 | + $abn_amro_ideal_zelfbouw_v3->provider = 'abnamro';  | 
                                                        |
| 80 | 80 | |
| 81 | 81 | // Deutsche Bank - iDEAL via Ogone.  | 
                                                        
| 82 | 82 | $deutsche_bank_ideal_ogone = new Gateways\Ingenico\OrderStandardEasy\Integration();  | 
                                                        
@@ -94,7 +94,7 @@ discard block  | 
                                                    ||
| 94 | 94 | 'test' => 'https://myideal.test.db.com/',  | 
                                                        
| 95 | 95 | 'live' => 'https://myideal.db.com/',  | 
                                                        
| 96 | 96 | );  | 
                                                        
| 97 | - $deutsche_bank_ideal_expert_v3->provider = 'deutschebank';  | 
                                                        |
| 97 | + $deutsche_bank_ideal_expert_v3->provider = 'deutschebank';  | 
                                                        |
| 98 | 98 | |
| 99 | 99 | // Fibonacci ORANGE.  | 
                                                        
| 100 | 100 | $fibonacci_orange = new Gateways\Icepay\Integration();  |