Passed
Push — develop ( bd5841...a021a8 )
by Reüel
05:34
created
src/Integration.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -29,29 +29,29 @@  discard block
 block discarded – undo
29 29
 		$this->id          = 'mollie';
30 30
 		$this->name        = 'Mollie';
31 31
 		$this->url         = 'http://www.mollie.com/en/';
32
-		$this->product_url = __( 'https://www.mollie.com/en/pricing', 'pronamic_ideal' );
32
+		$this->product_url = __('https://www.mollie.com/en/pricing', 'pronamic_ideal');
33 33
 		$this->provider    = 'mollie';
34 34
 
35 35
 		// Actions.
36
-		$function = array( __NAMESPACE__ . '\Listener', 'listen' );
36
+		$function = array(__NAMESPACE__ . '\Listener', 'listen');
37 37
 
38
-		if ( ! has_action( 'wp_loaded', $function ) ) {
39
-			add_action( 'wp_loaded', $function );
38
+		if ( ! has_action('wp_loaded', $function)) {
39
+			add_action('wp_loaded', $function);
40 40
 		}
41 41
 
42
-		if ( is_admin() ) {
43
-			$function = array( __CLASS__, 'user_profile' );
42
+		if (is_admin()) {
43
+			$function = array(__CLASS__, 'user_profile');
44 44
 
45
-			if ( ! has_action( 'show_user_profile', $function ) ) {
46
-				add_action( 'show_user_profile', $function );
45
+			if ( ! has_action('show_user_profile', $function)) {
46
+				add_action('show_user_profile', $function);
47 47
 			}
48 48
 
49
-			if ( ! has_action( 'edit_user_profile', $function ) ) {
50
-				add_action( 'edit_user_profile', $function );
49
+			if ( ! has_action('edit_user_profile', $function)) {
50
+				add_action('edit_user_profile', $function);
51 51
 			}
52 52
 		}
53 53
 
54
-		add_filter( 'pronamic_payment_provider_url_mollie', array( $this, 'payment_provider_url' ), 10, 2 );
54
+		add_filter('pronamic_payment_provider_url_mollie', array($this, 'payment_provider_url'), 10, 2);
55 55
 	}
56 56
 
57 57
 	/**
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
 	 * @since 1.1.6
94 94
 	 * @link https://github.com/WordPress/WordPress/blob/4.5.2/wp-admin/user-edit.php#L578-L600
95 95
 	 */
96
-	public static function user_profile( $user ) {
97
-		include dirname( __FILE__ ) . '/../views/html-admin-user-profile.php';
96
+	public static function user_profile($user) {
97
+		include dirname(__FILE__) . '/../views/html-admin-user-profile.php';
98 98
 	}
99 99
 
100 100
 	/**
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 	 * @param Payment $payment
105 105
 	 * @return string
106 106
 	 */
107
-	public function payment_provider_url( $url, $payment ) {
107
+	public function payment_provider_url($url, $payment) {
108 108
 		return sprintf(
109 109
 			'https://www.mollie.com/dashboard/payments/%s',
110 110
 			$payment->get_transaction_id()
Please login to merge, or discard this patch.
views/html-admin-user-profile.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,31 +7,31 @@
 block discarded – undo
7 7
  * @link https://github.com/WordPress/WordPress/blob/4.5.2/wp-admin/user-edit.php#L578-L600
8 8
  */
9 9
 
10
-$customer_id_live = get_user_meta( $user->ID, '_pronamic_pay_mollie_customer_id', true );
11
-$customer_id_test = get_user_meta( $user->ID, '_pronamic_pay_mollie_customer_id_test', true );
10
+$customer_id_live = get_user_meta($user->ID, '_pronamic_pay_mollie_customer_id', true);
11
+$customer_id_test = get_user_meta($user->ID, '_pronamic_pay_mollie_customer_id_test', true);
12 12
 
13 13
 ?>
14
-<h2><?php esc_html_e( 'Mollie', 'pronamic_ideal' ); ?></h2>
14
+<h2><?php esc_html_e('Mollie', 'pronamic_ideal'); ?></h2>
15 15
 
16 16
 <table class="form-table">
17 17
 	<tr>
18 18
 		<th>
19 19
 			<label for="pronamic_pay_mollie_customer_id_live">
20
-				<?php esc_html_e( 'Customer live ID', 'pronamic_ideal' ); ?>
20
+				<?php esc_html_e('Customer live ID', 'pronamic_ideal'); ?>
21 21
 			</label>
22 22
 		</th>
23 23
 		<td>
24
-			<input id="pronamic_pay_mollie_customer_id_live" name="pronamic_pay_mollie_customer_id_live" type="text" value="<?php echo esc_attr( $customer_id_live ); ?>" class="regular-text" readonly="readonly" />
24
+			<input id="pronamic_pay_mollie_customer_id_live" name="pronamic_pay_mollie_customer_id_live" type="text" value="<?php echo esc_attr($customer_id_live); ?>" class="regular-text" readonly="readonly" />
25 25
 		</td>
26 26
 	</tr>
27 27
 	<tr>
28 28
 		<th>
29 29
 			<label for="pronamic_pay_mollie_customer_id_test">
30
-				<?php esc_html_e( 'Customer test ID', 'pronamic_ideal' ); ?>
30
+				<?php esc_html_e('Customer test ID', 'pronamic_ideal'); ?>
31 31
 			</label>
32 32
 		</th>
33 33
 		<td>
34
-			<input id="pronamic_pay_mollie_customer_id_test" name="pronamic_pay_mollie_customer_id_test" type="text" value="<?php echo esc_attr( $customer_id_test ); ?>" class="regular-text" readonly="readonly" />
34
+			<input id="pronamic_pay_mollie_customer_id_test" name="pronamic_pay_mollie_customer_id_test" type="text" value="<?php echo esc_attr($customer_id_test); ?>" class="regular-text" readonly="readonly" />
35 35
 		</td>
36 36
 	</tr>
37 37
 </table>
Please login to merge, or discard this patch.