Passed
Push — develop ( 22778e...6d9cbe )
by Remco
05:17 queued 01:22
created
classes/Admin/AdminReports.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 		);
63 63
 
64 64
 		// @see https://github.com/WordPress/WordPress/blob/4.2.4/wp-admin/admin-header.php#L82-L87.
65
-		add_action( 'admin_print_styles-' . $hook_suffix, array( $this, 'admin_css' ) );
65
+		add_action( 'admin_print_styles-'.$hook_suffix, array( $this, 'admin_css' ) );
66 66
 	}
67 67
 
68 68
 	/**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
 		wp_register_script(
85 85
 			'flot',
86
-			plugins_url( 'assets/flot/jquery.flot' . $min . '.js', \Pronamic\WordPress\Pay\Plugin::$file ),
86
+			plugins_url( 'assets/flot/jquery.flot'.$min.'.js', \Pronamic\WordPress\Pay\Plugin::$file ),
87 87
 			array( 'jquery' ),
88 88
 			$flot_version,
89 89
 			true
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
 		wp_register_script(
93 93
 			'flot-time',
94
-			plugins_url( 'assets/flot/jquery.flot.time' . $min . '.js', \Pronamic\WordPress\Pay\Plugin::$file ),
94
+			plugins_url( 'assets/flot/jquery.flot.time'.$min.'.js', \Pronamic\WordPress\Pay\Plugin::$file ),
95 95
 			array( 'flot' ),
96 96
 			$flot_version,
97 97
 			true
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
 		wp_register_script(
101 101
 			'flot-resize',
102
-			plugins_url( 'assets/flot/jquery.flot.resize' . $min . '.js', \Pronamic\WordPress\Pay\Plugin::$file ),
102
+			plugins_url( 'assets/flot/jquery.flot.resize'.$min.'.js', \Pronamic\WordPress\Pay\Plugin::$file ),
103 103
 			array( 'flot' ),
104 104
 			$flot_version,
105 105
 			true
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 		// Accounting.js - http://openexchangerates.github.io/accounting.js.
109 109
 		wp_register_script(
110 110
 			'accounting',
111
-			plugins_url( 'assets/accounting/accounting' . $min . '.js', \Pronamic\WordPress\Pay\Plugin::$file ),
111
+			plugins_url( 'assets/accounting/accounting'.$min.'.js', \Pronamic\WordPress\Pay\Plugin::$file ),
112 112
 			array( 'jquery' ),
113 113
 			'0.4.1',
114 114
 			true
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 		// Reports.
118 118
 		wp_register_script(
119 119
 			'proanmic-pay-admin-reports',
120
-			plugins_url( 'js/admin-reports' . $min . '.js', \Pronamic\WordPress\Pay\Plugin::$file ),
120
+			plugins_url( 'js/admin-reports'.$min.'.js', \Pronamic\WordPress\Pay\Plugin::$file ),
121 121
 			array(
122 122
 				'jquery',
123 123
 				'flot',
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 				$value = (float) $data[ $key ]->value;
348 348
 			}
349 349
 
350
-			$report[] = array(
350
+			$report[ ] = array(
351 351
 				// Flot requires milliseconds so multiply with 1000.
352 352
 				$date->getTimestamp() * 1000,
353 353
 				$value,
Please login to merge, or discard this patch.
classes/Admin/AdminTour.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 			update_user_meta( get_current_user_id(), 'pronamic_pay_ignore_tour', $ignore );
47 47
 		}
48 48
 
49
-		if ( ! get_user_meta( get_current_user_id(), 'pronamic_pay_ignore_tour', true ) ) {
49
+		if ( !get_user_meta( get_current_user_id(), 'pronamic_pay_ignore_tour', true ) ) {
50 50
 			add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
51 51
 		}
52 52
 	}
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 		// Pointers.
61 61
 		wp_register_style(
62 62
 			'proanmic-pay-admin-tour',
63
-			plugins_url( 'css/admin-tour' . $min . '.css', \Pronamic\WordPress\Pay\Plugin::$file ),
63
+			plugins_url( 'css/admin-tour'.$min.'.css', \Pronamic\WordPress\Pay\Plugin::$file ),
64 64
 			array(
65 65
 				'wp-pointer',
66 66
 			),
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
 		wp_register_script(
71 71
 			'proanmic-pay-admin-tour',
72
-			plugins_url( 'js/admin-tour' . $min . '.js', \Pronamic\WordPress\Pay\Plugin::$file ),
72
+			plugins_url( 'js/admin-tour'.$min.'.js', \Pronamic\WordPress\Pay\Plugin::$file ),
73 73
 			array(
74 74
 				'jquery',
75 75
 				'wp-pointer',
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	private function get_content( $file ) {
101 101
 		$content = '';
102 102
 
103
-		$path = plugin_dir_path( \Pronamic\WordPress\Pay\Plugin::$file ) . 'admin/' . $file . '.php';
103
+		$path = plugin_dir_path( \Pronamic\WordPress\Pay\Plugin::$file ).'admin/'.$file.'.php';
104 104
 
105 105
 		if ( is_readable( $path ) ) {
106 106
 			ob_start();
Please login to merge, or discard this patch.
classes/GatewayPostType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 		 */
40 40
 		add_action( 'init', array( $this, 'register_gateway_post_type' ), 0 ); // Highest priority.
41 41
 
42
-		add_action( 'save_post_' . self::POST_TYPE, array( $this, 'maybe_set_default_gateway' ) );
42
+		add_action( 'save_post_'.self::POST_TYPE, array( $this, 'maybe_set_default_gateway' ) );
43 43
 	}
44 44
 
45 45
 	/**
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 		// Don't set the default gateway if there is already a published gateway set.
103 103
 		$config_id = get_option( 'pronamic_pay_config_id' );
104 104
 
105
-		if ( ! empty( $config_id ) && 'publish' === get_post_status( $config_id ) ) {
105
+		if ( !empty( $config_id ) && 'publish' === get_post_status( $config_id ) ) {
106 106
 			return;
107 107
 		}
108 108
 
Please login to merge, or discard this patch.
views/redirect-via-html.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
 wp_register_style(
18 18
 	'pronamic-pay-redirect',
19
-	plugins_url( 'css/redirect' . $min . '.css', Plugin::$file ),
19
+	plugins_url( 'css/redirect'.$min.'.css', Plugin::$file ),
20 20
 	array(),
21 21
 	$pronamic_ideal->get_version()
22 22
 );
Please login to merge, or discard this patch.
src/readme-md/gateways.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$data = file_get_contents( __DIR__ . '/../providers.json' );
3
+$data = file_get_contents( __DIR__.'/../providers.json' );
4 4
 $data = json_decode( $data );
5 5
 
6 6
 $providers = array();
@@ -8,14 +8,14 @@  discard block
 block discarded – undo
8 8
 	$providers[ $provider->slug ] = $provider;
9 9
 }
10 10
 
11
-$data     = file_get_contents( __DIR__ . '/../gateways.json' );
11
+$data     = file_get_contents( __DIR__.'/../gateways.json' );
12 12
 $gateways = json_decode( $data );
13 13
 
14 14
 foreach ( $gateways as $gateway ) {
15 15
 	if ( isset( $providers[ $gateway->provider ] ) ) {
16 16
 		$provider = $providers[ $gateway->provider ];
17 17
 
18
-		if ( ! isset( $provider->gateways ) ) {
18
+		if ( !isset( $provider->gateways ) ) {
19 19
 			$provider->gateways = array();
20 20
 		}
21 21
 
Please login to merge, or discard this patch.
admin/notice-license.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  * @package   Pronamic\WordPress\Pay
9 9
  */
10 10
 
11
-if ( ! defined( 'WPINC' ) ) {
11
+if ( !defined( 'WPINC' ) ) {
12 12
 	die;
13 13
 }
14 14
 
Please login to merge, or discard this patch.
tests/CreditCardTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 	public function test_construct() {
26 26
 		$credit_card = new CreditCard();
27 27
 
28
-		$this->assertInstanceOf( __NAMESPACE__ . '\CreditCard', $credit_card );
28
+		$this->assertInstanceOf( __NAMESPACE__.'\CreditCard', $credit_card );
29 29
 	}
30 30
 
31 31
 	/** 
Please login to merge, or discard this patch.
classes/AbstractDataStoreCPT.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 	 * @return string
37 37
 	 */
38 38
 	private function get_meta_key( $key ) {
39
-		return $this->meta_key_prefix . $key;
39
+		return $this->meta_key_prefix.$key;
40 40
 	}
41 41
 
42 42
 	/**
Please login to merge, or discard this patch.
classes/Subscriptions/Subscription.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
 	 * @throws \Exception    Throws an Exception when the `interval_spec` cannot be parsed as an interval.
381 381
 	 */
382 382
 	public function get_date_interval() {
383
-		$interval_spec = 'P' . $this->interval . $this->interval_period;
383
+		$interval_spec = 'P'.$this->interval.$this->interval_period;
384 384
 
385 385
 		$interval = new DateInterval( $interval_spec );
386 386
 
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
 	 * @return string
510 510
 	 */
511 511
 	public function get_meta( $key ) {
512
-		$key = '_pronamic_subscription_' . $key;
512
+		$key = '_pronamic_subscription_'.$key;
513 513
 
514 514
 		return get_post_meta( $this->id, $key, true );
515 515
 	}
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
 	 * @return boolean        True on successful update, false on failure.
524 524
 	 */
525 525
 	public function set_meta( $key, $value = false ) {
526
-		$key = '_pronamic_subscription_' . $key;
526
+		$key = '_pronamic_subscription_'.$key;
527 527
 
528 528
 		if ( $value instanceof DateTime ) {
529 529
 			$value = $value->format( 'Y-m-d H:i:s' );
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
 
549 549
 		if ( $payment ) {
550 550
 			$description = apply_filters( 'pronamic_payment_source_description', $description, $payment );
551
-			$description = apply_filters( 'pronamic_payment_source_description_' . $this->source, $description, $payment );
551
+			$description = apply_filters( 'pronamic_payment_source_description_'.$this->source, $description, $payment );
552 552
 		}
553 553
 
554 554
 		return $description;
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
 
567 567
 		if ( $payment ) {
568 568
 			$url = apply_filters( 'pronamic_payment_source_url', $url, $payment );
569
-			$url = apply_filters( 'pronamic_payment_source_url_' . $this->source, $url, $payment );
569
+			$url = apply_filters( 'pronamic_payment_source_url_'.$this->source, $url, $payment );
570 570
 		}
571 571
 
572 572
 		return $url;
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
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;
@@ -897,7 +897,7 @@  discard block
 block discarded – undo
897 897
 	 * @param array $meta The meta data to update.
898 898
 	 */
899 899
 	public function update_meta( $meta ) {
900
-		if ( ! is_array( $meta ) || count( $meta ) === 0 ) {
900
+		if ( !is_array( $meta ) || count( $meta ) === 0 ) {
901 901
 			return;
902 902
 		}
903 903
 
Please login to merge, or discard this patch.