Completed
Branch master (ab0cd9)
by Reüel
04:17
created
Category
src/Integration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,16 +20,16 @@
 block discarded – undo
20 20
 		$this->name          = 'Rabobank - OmniKassa';
21 21
 		$this->product_url   = 'https://www.rabobank.nl/bedrijven/betalen/geld-ontvangen/rabo-omnikassa/';
22 22
 		$this->dashboard_url = array(
23
-			__( 'admin', 'pronamic_ideal' )    => 'https://dashboard.omnikassa.rabobank.nl/',
24
-			__( 'download', 'pronamic_ideal' ) => 'https://download.omnikassa.rabobank.nl/',
23
+			__('admin', 'pronamic_ideal')    => 'https://dashboard.omnikassa.rabobank.nl/',
24
+			__('download', 'pronamic_ideal') => 'https://download.omnikassa.rabobank.nl/',
25 25
 		);
26
-		$this->provider      = 'rabobank';
26
+		$this->provider = 'rabobank';
27 27
 
28 28
 		// Actions
29
-		$function = array( __NAMESPACE__ . '\Listener', 'listen' );
29
+		$function = array(__NAMESPACE__ . '\Listener', 'listen');
30 30
 
31
-		if ( ! has_action( 'wp_loaded', $function ) ) {
32
-			add_action( 'wp_loaded', $function );
31
+		if ( ! has_action('wp_loaded', $function)) {
32
+			add_action('wp_loaded', $function);
33 33
 		}
34 34
 	}
35 35
 
Please login to merge, or discard this patch.
src/Listener.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -16,32 +16,32 @@
 block discarded – undo
16 16
  */
17 17
 class Listener {
18 18
 	public static function listen() {
19
-		if ( ! filter_has_var( INPUT_POST, 'Data' ) || ! filter_has_var( INPUT_POST, 'Seal' ) ) {
19
+		if ( ! filter_has_var(INPUT_POST, 'Data') || ! filter_has_var(INPUT_POST, 'Seal')) {
20 20
 			return;
21 21
 		}
22 22
 
23
-		$input_data = filter_input( INPUT_POST, 'Data' );
23
+		$input_data = filter_input(INPUT_POST, 'Data');
24 24
 
25
-		$data = Client::parse_piped_string( $input_data );
25
+		$data = Client::parse_piped_string($input_data);
26 26
 
27 27
 		$transaction_reference = $data['transactionReference'];
28 28
 
29
-		$payment = get_pronamic_payment_by_meta( '_pronamic_payment_omnikassa_transaction_reference', $transaction_reference );
29
+		$payment = get_pronamic_payment_by_meta('_pronamic_payment_omnikassa_transaction_reference', $transaction_reference);
30 30
 
31
-		if ( null === $payment ) {
31
+		if (null === $payment) {
32 32
 			return;
33 33
 		}
34 34
 
35 35
 		// Add note.
36 36
 		$note = sprintf(
37 37
 			/* translators: %s: OmniKassa */
38
-			__( 'Webhook requested by %s.', 'pronamic_ideal' ),
39
-			__( 'OmniKassa', 'pronamic_ideal' )
38
+			__('Webhook requested by %s.', 'pronamic_ideal'),
39
+			__('OmniKassa', 'pronamic_ideal')
40 40
 		);
41 41
 
42
-		$payment->add_note( $note );
42
+		$payment->add_note($note);
43 43
 
44 44
 		// Update payment.
45
-		Plugin::update_payment( $payment );
45
+		Plugin::update_payment($payment);
46 46
 	}
47 47
 }
Please login to merge, or discard this patch.
src/Settings.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -16,35 +16,35 @@  discard block
 block discarded – undo
16 16
  */
17 17
 class Settings extends GatewaySettings {
18 18
 	public function __construct() {
19
-		add_filter( 'pronamic_pay_gateway_sections', array( $this, 'sections' ) );
20
-		add_filter( 'pronamic_pay_gateway_fields', array( $this, 'fields' ) );
19
+		add_filter('pronamic_pay_gateway_sections', array($this, 'sections'));
20
+		add_filter('pronamic_pay_gateway_fields', array($this, 'fields'));
21 21
 	}
22 22
 
23
-	public function sections( array $sections ) {
23
+	public function sections(array $sections) {
24 24
 		// iDEAL
25 25
 		$sections['omnikassa'] = array(
26
-			'title'   => __( 'OmniKassa', 'pronamic_ideal' ),
27
-			'methods' => array( 'omnikassa' ),
26
+			'title'   => __('OmniKassa', 'pronamic_ideal'),
27
+			'methods' => array('omnikassa'),
28 28
 		);
29 29
 
30 30
 		// Advanced
31 31
 		$sections['omnikassa_advanced'] = array(
32
-			'title'   => __( 'Advanced', 'pronamic_ideal' ),
33
-			'methods' => array( 'omnikassa' ),
32
+			'title'   => __('Advanced', 'pronamic_ideal'),
33
+			'methods' => array('omnikassa'),
34 34
 		);
35 35
 
36 36
 		return $sections;
37 37
 	}
38 38
 
39
-	public function fields( array $fields ) {
39
+	public function fields(array $fields) {
40 40
 		// Merchant ID
41 41
 		$fields[] = array(
42 42
 			'filter'   => FILTER_SANITIZE_STRING,
43 43
 			'section'  => 'omnikassa',
44 44
 			'meta_key' => '_pronamic_gateway_omnikassa_merchant_id',
45
-			'title'    => __( 'Merchant ID', 'pronamic_ideal' ),
45
+			'title'    => __('Merchant ID', 'pronamic_ideal'),
46 46
 			'type'     => 'text',
47
-			'classes'  => array( 'code' ),
47
+			'classes'  => array('code'),
48 48
 		);
49 49
 
50 50
 		// Secret Key
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
 			'filter'   => FILTER_SANITIZE_STRING,
53 53
 			'section'  => 'omnikassa',
54 54
 			'meta_key' => '_pronamic_gateway_omnikassa_secret_key',
55
-			'title'    => __( 'Secret Key', 'pronamic_ideal' ),
55
+			'title'    => __('Secret Key', 'pronamic_ideal'),
56 56
 			'type'     => 'text',
57
-			'classes'  => array( 'large-text', 'code' ),
57
+			'classes'  => array('large-text', 'code'),
58 58
 		);
59 59
 
60 60
 		// Key Version
@@ -62,21 +62,21 @@  discard block
 block discarded – undo
62 62
 			'filter'      => FILTER_SANITIZE_STRING,
63 63
 			'section'     => 'omnikassa',
64 64
 			'meta_key'    => '_pronamic_gateway_omnikassa_key_version',
65
-			'title'       => __( 'Key Version', 'pronamic_ideal' ),
65
+			'title'       => __('Key Version', 'pronamic_ideal'),
66 66
 			'type'        => 'text',
67
-			'classes'     => array( 'code' ),
67
+			'classes'     => array('code'),
68 68
 			'size'        => 5,
69
-			'description' => sprintf( __( 'You can find the key version in the <a href="%s" target="_blank">OmniKassa Download Dashboard</a>.', 'pronamic_ideal' ), 'https://download.omnikassa.rabobank.nl/' ),
69
+			'description' => sprintf(__('You can find the key version in the <a href="%s" target="_blank">OmniKassa Download Dashboard</a>.', 'pronamic_ideal'), 'https://download.omnikassa.rabobank.nl/'),
70 70
 		);
71 71
 
72 72
 		// Transaction feedback
73 73
 		$fields[] = array(
74 74
 			'section' => 'omnikassa',
75
-			'title'   => __( 'Transaction feedback', 'pronamic_ideal' ),
75
+			'title'   => __('Transaction feedback', 'pronamic_ideal'),
76 76
 			'type'    => 'description',
77 77
 			'html'    => sprintf(
78 78
 				'<span class="dashicons dashicons-yes"></span> %s',
79
-				__( 'Payment status updates will be processed without any additional configuration.', 'pronamic_ideal' )
79
+				__('Payment status updates will be processed without any additional configuration.', 'pronamic_ideal')
80 80
 			),
81 81
 		);
82 82
 
@@ -85,23 +85,23 @@  discard block
 block discarded – undo
85 85
 			'filter'      => FILTER_SANITIZE_STRING,
86 86
 			'section'     => 'omnikassa_advanced',
87 87
 			'meta_key'    => '_pronamic_gateway_omnikassa_order_id',
88
-			'title'       => __( 'Order ID', 'pronamic_ideal' ),
88
+			'title'       => __('Order ID', 'pronamic_ideal'),
89 89
 			'type'        => 'text',
90
-			'classes'     => array( 'regular-text', 'code' ),
90
+			'classes'     => array('regular-text', 'code'),
91 91
 			'tooltip'     => sprintf(
92
-				__( 'The OmniKassa %s parameter.', 'pronamic_ideal' ),
93
-				sprintf( '<code>%s</code>', 'orderId' )
92
+				__('The OmniKassa %s parameter.', 'pronamic_ideal'),
93
+				sprintf('<code>%s</code>', 'orderId')
94 94
 			),
95 95
 			'description' => sprintf(
96 96
 				'%s %s<br />%s',
97
-				__( 'Available tags:', 'pronamic_ideal' ),
97
+				__('Available tags:', 'pronamic_ideal'),
98 98
 				sprintf(
99 99
 					'<code>%s</code> <code>%s</code>',
100 100
 					'{order_id}',
101 101
 					'{payment_id}'
102 102
 				),
103 103
 				sprintf(
104
-					__( 'Default: <code>%s</code>', 'pronamic_ideal' ),
104
+					__('Default: <code>%s</code>', 'pronamic_ideal'),
105 105
 					'{payment_id}'
106 106
 				)
107 107
 			),
Please login to merge, or discard this patch.
src/DataHelper.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,21 +19,21 @@  discard block
 block discarded – undo
19 19
 	 *
20 20
 	 * @var array
21 21
 	 */
22
-	private static $characters_n = array( '0-9' );
22
+	private static $characters_n = array('0-9');
23 23
 
24 24
 	/**
25 25
 	 * A - Indicates that an alphabetical value [aA-zZ] is accepted
26 26
 	 *
27 27
 	 * @var array
28 28
 	 */
29
-	private static $characters_a = array( 'A-Z', 'a-z' );
29
+	private static $characters_a = array('A-Z', 'a-z');
30 30
 
31 31
 	/**
32 32
 	 * A + N
33 33
 	 *
34 34
 	 * @var array
35 35
 	 */
36
-	private static $characters_an = array( 'A-Z', 'a-z', '0-9' );
36
+	private static $characters_an = array('A-Z', 'a-z', '0-9');
37 37
 
38 38
 	/**
39 39
 	 * Filter N characters
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 	 *
44 44
 	 * @return string
45 45
 	 */
46
-	public static function filter_n( $string, $max = null ) {
47
-		return Core_DataHelper::filter( self::$characters_n, $string, $max );
46
+	public static function filter_n($string, $max = null) {
47
+		return Core_DataHelper::filter(self::$characters_n, $string, $max);
48 48
 	}
49 49
 
50 50
 	/**
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
 	 *
56 56
 	 * @return string
57 57
 	 */
58
-	public static function filter_a( $string, $max = null ) {
59
-		return Core_DataHelper::filter( self::$characters_a, $string, $max );
58
+	public static function filter_a($string, $max = null) {
59
+		return Core_DataHelper::filter(self::$characters_a, $string, $max);
60 60
 	}
61 61
 
62 62
 	/**
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	 *
68 68
 	 * @return string
69 69
 	 */
70
-	public static function filter_an( $string, $max = null ) {
71
-		return Core_DataHelper::filter( self::$characters_an, $string, $max );
70
+	public static function filter_an($string, $max = null) {
71
+		return Core_DataHelper::filter(self::$characters_an, $string, $max);
72 72
 	}
73 73
 }
Please login to merge, or discard this patch.
src/ConfigFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,14 +15,14 @@
 block discarded – undo
15 15
  * @since   1.0.0
16 16
  */
17 17
 class ConfigFactory extends GatewayConfigFactory {
18
-	public function get_config( $post_id ) {
18
+	public function get_config($post_id) {
19 19
 		$config = new Config();
20 20
 
21
-		$config->merchant_id = get_post_meta( $post_id, '_pronamic_gateway_omnikassa_merchant_id', true );
22
-		$config->secret_key  = get_post_meta( $post_id, '_pronamic_gateway_omnikassa_secret_key', true );
23
-		$config->key_version = get_post_meta( $post_id, '_pronamic_gateway_omnikassa_key_version', true );
24
-		$config->order_id    = get_post_meta( $post_id, '_pronamic_gateway_omnikassa_order_id', true );
25
-		$config->mode        = get_post_meta( $post_id, '_pronamic_gateway_mode', true );
21
+		$config->merchant_id = get_post_meta($post_id, '_pronamic_gateway_omnikassa_merchant_id', true);
22
+		$config->secret_key  = get_post_meta($post_id, '_pronamic_gateway_omnikassa_secret_key', true);
23
+		$config->key_version = get_post_meta($post_id, '_pronamic_gateway_omnikassa_key_version', true);
24
+		$config->order_id    = get_post_meta($post_id, '_pronamic_gateway_omnikassa_order_id', true);
25
+		$config->mode        = get_post_meta($post_id, '_pronamic_gateway_mode', true);
26 26
 
27 27
 		return $config;
28 28
 	}
Please login to merge, or discard this patch.
src/ResponseCodes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,8 +157,8 @@
 block discarded – undo
157 157
 	 *
158 158
 	 * @return string|null
159 159
 	 */
160
-	public static function transform( $response_code ) {
161
-		switch ( $response_code ) {
160
+	public static function transform($response_code) {
161
+		switch ($response_code) {
162 162
 			case self::TRANSACTION_SUCCES :
163 163
 				return Statuses::SUCCESS;
164 164
 
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
 		);
58 58
 	}
59 59
 
60
-	public static function is_supported_language( $language ) {
60
+	public static function is_supported_language($language) {
61 61
 		$languages = self::get_supported_language_codes();
62 62
 
63
-		return in_array( $language, $languages, true );
63
+		return in_array($language, $languages, true);
64 64
 	}
65 65
 
66 66
 	/**
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 	public function __construct() {
193 193
 		$this->payment_mean_brand_list = array();
194 194
 
195
-		$this->set_interface_version( self::INTERFACE_VERSION_HP_1_0 );
195
+		$this->set_interface_version(self::INTERFACE_VERSION_HP_1_0);
196 196
 	}
197 197
 
198 198
 	/**
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 	 *
210 210
 	 * @param string $url an URL
211 211
 	 */
212
-	public function set_action_url( $url ) {
212
+	public function set_action_url($url) {
213 213
 		$this->action_url = $url;
214 214
 	}
215 215
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 	 *
228 228
 	 * @param string $interface_version
229 229
 	 */
230
-	public function set_interface_version( $interface_version ) {
230
+	public function set_interface_version($interface_version) {
231 231
 		$this->interface_version = $interface_version;
232 232
 	}
233 233
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 	 *
246 246
 	 * @param string $currency_numeric_code
247 247
 	 */
248
-	public function set_currency_numeric_code( $currency_numeric_code ) {
248
+	public function set_currency_numeric_code($currency_numeric_code) {
249 249
 		$this->currency_numeric_code = $currency_numeric_code;
250 250
 	}
251 251
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 	 *
264 264
 	 * @param string $merchant_id
265 265
 	 */
266
-	public function set_merchant_id( $merchant_id ) {
266
+	public function set_merchant_id($merchant_id) {
267 267
 		$this->merchant_id = $merchant_id;
268 268
 	}
269 269
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 	 *
284 284
 	 * @param string $normal_return_url
285 285
 	 */
286
-	public function set_normal_return_url( $normal_return_url ) {
286
+	public function set_normal_return_url($normal_return_url) {
287 287
 		$this->normal_return_url = $normal_return_url;
288 288
 	}
289 289
 
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 	 * @return int
303 303
 	 */
304 304
 	public function get_formatted_amount() {
305
-		return Core_Util::amount_to_cents( $this->amount );
305
+		return Core_Util::amount_to_cents($this->amount);
306 306
 	}
307 307
 
308 308
 	/**
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 	 *
311 311
 	 * @param float $amount
312 312
 	 */
313
-	public function set_amount( $amount ) {
313
+	public function set_amount($amount) {
314 314
 		$this->amount = $amount;
315 315
 	}
316 316
 
@@ -329,8 +329,8 @@  discard block
 block discarded – undo
329 329
 	 *
330 330
 	 * @param string $transaction_reference
331 331
 	 */
332
-	public function set_transaction_reference( $transaction_reference ) {
333
-		$this->transaction_reference = DataHelper::filter_an( $transaction_reference, 35 );
332
+	public function set_transaction_reference($transaction_reference) {
333
+		$this->transaction_reference = DataHelper::filter_an($transaction_reference, 35);
334 334
 	}
335 335
 
336 336
 	/**
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 	 *
348 348
 	 * @param string $key_version
349 349
 	 */
350
-	public function set_key_version( $key_version ) {
350
+	public function set_key_version($key_version) {
351 351
 		$this->key_version = $key_version;
352 352
 	}
353 353
 
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 	 *
368 368
 	 * @param string $automatic_response_url
369 369
 	 */
370
-	public function set_automatic_response_url( $automatic_response_url ) {
370
+	public function set_automatic_response_url($automatic_response_url) {
371 371
 		$this->automatic_response_url = $automatic_response_url;
372 372
 	}
373 373
 
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
 	 *
386 386
 	 * @param string $customer_language
387 387
 	 */
388
-	public function set_customer_language( $customer_language ) {
388
+	public function set_customer_language($customer_language) {
389 389
 		$this->customer_language = $customer_language;
390 390
 	}
391 391
 
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 	 *
395 395
 	 * @param string $payment_mean_brand
396 396
 	 */
397
-	public function add_payment_mean_brand( $payment_mean_brand ) {
397
+	public function add_payment_mean_brand($payment_mean_brand) {
398 398
 		$this->payment_mean_brand_list[] = $payment_mean_brand;
399 399
 	}
400 400
 
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
 	 * @return string ANS128 listString comma separated list
405 405
 	 */
406 406
 	public function get_payment_mean_brand_list() {
407
-		return apply_filters( 'pronamic_pay_omnikassa_payment_mean_brand_list', implode( ', ', $this->payment_mean_brand_list ) );
407
+		return apply_filters('pronamic_pay_omnikassa_payment_mean_brand_list', implode(', ', $this->payment_mean_brand_list));
408 408
 	}
409 409
 
410 410
 	/**
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
 	 *
422 422
 	 * @param string $order_id
423 423
 	 */
424
-	public function set_order_id( $order_id ) {
424
+	public function set_order_id($order_id) {
425 425
 		$this->order_id = $order_id;
426 426
 	}
427 427
 
@@ -442,8 +442,8 @@  discard block
 block discarded – undo
442 442
 	public function get_formatted_expiration_date() {
443 443
 		$result = null;
444 444
 
445
-		if ( null !== $this->expiration_date ) {
446
-			$result = $this->expiration_date->format( DATE_ISO8601 );
445
+		if (null !== $this->expiration_date) {
446
+			$result = $this->expiration_date->format(DATE_ISO8601);
447 447
 		}
448 448
 
449 449
 		return $result;
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 	 *
455 455
 	 * @param DateTime $date
456 456
 	 */
457
-	public function set_expiration_date( DateTime $date = null ) {
457
+	public function set_expiration_date(DateTime $date = null) {
458 458
 		$this->expiration_date = $date;
459 459
 	}
460 460
 
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
 		);
480 480
 
481 481
 		// @see http://briancray.com/2009/04/25/remove-null-values-php-arrays/
482
-		$optional_fields = array_filter( $optional_fields );
482
+		$optional_fields = array_filter($optional_fields);
483 483
 
484 484
 		// Data
485 485
 		$data = $required_fields + $optional_fields;
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
 	public function get_data() {
496 496
 		$data = $this->get_data_array();
497 497
 
498
-		return self::create_piped_string( $data );
498
+		return self::create_piped_string($data);
499 499
 	}
500 500
 
501 501
 	/**
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
 	 *
513 513
 	 * @return string
514 514
 	 */
515
-	public function set_secret_key( $secret_key ) {
515
+	public function set_secret_key($secret_key) {
516 516
 		$this->secret_key = $secret_key;
517 517
 	}
518 518
 
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
 		$data       = $this->get_data();
526 526
 		$secret_key = $this->get_secret_key();
527 527
 
528
-		return self::compute_seal( $data, $secret_key );
528
+		return self::compute_seal($data, $secret_key);
529 529
 	}
530 530
 
531 531
 	/**
@@ -536,11 +536,11 @@  discard block
 block discarded – undo
536 536
 	 *
537 537
 	 * @return string seal
538 538
 	 */
539
-	public static function compute_seal( $data, $secret_key ) {
539
+	public static function compute_seal($data, $secret_key) {
540 540
 		$value = $data . $secret_key;
541
-		$value = utf8_encode( $value );
541
+		$value = utf8_encode($value);
542 542
 
543
-		return hash( self::HASH_ALGORITHM_SHA256, $value );
543
+		return hash(self::HASH_ALGORITHM_SHA256, $value);
544 544
 	}
545 545
 
546 546
 	/**
@@ -564,9 +564,9 @@  discard block
 block discarded – undo
564 564
 	 *
565 565
 	 * @return string
566 566
 	 */
567
-	public static function create_piped_string( array $data ) {
567
+	public static function create_piped_string(array $data) {
568 568
 		// @see http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/functions.php#L1385
569
-		return _http_build_query( $data, null, '|', '', false );
569
+		return _http_build_query($data, null, '|', '', false);
570 570
 	}
571 571
 
572 572
 	/**
@@ -576,14 +576,14 @@  discard block
 block discarded – undo
576 576
 	 *
577 577
 	 * @return array
578 578
 	 */
579
-	public static function parse_piped_string( $string ) {
579
+	public static function parse_piped_string($string) {
580 580
 		$data = array();
581 581
 
582
-		$pairs = explode( '|', $string );
583
-		foreach ( $pairs as $pair ) {
584
-			list( $key, $value ) = explode( '=', $pair );
582
+		$pairs = explode('|', $string);
583
+		foreach ($pairs as $pair) {
584
+			list($key, $value) = explode('=', $pair);
585 585
 
586
-			$data[ $key ] = $value;
586
+			$data[$key] = $value;
587 587
 		}
588 588
 
589 589
 		return $data;
Please login to merge, or discard this patch.
src/PaymentMeanBrandList.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 	 *
26 26
 	 * @parm array $list
27 27
 	 */
28
-	public function __construct( array $list = array() ) {
28
+	public function __construct(array $list = array()) {
29 29
 		$this->list = $list;
30 30
 	}
31 31
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	 *
35 35
 	 * @param string $payment_mean_brand
36 36
 	 */
37
-	public function add_payment_mean_brand( $payment_mean_brand ) {
37
+	public function add_payment_mean_brand($payment_mean_brand) {
38 38
 		$this->list[] = $payment_mean_brand;
39 39
 	}
40 40
 
@@ -44,6 +44,6 @@  discard block
 block discarded – undo
44 44
 	 * @return string
45 45
 	 */
46 46
 	public function __toString() {
47
-		return implode( ', ', $this->list );
47
+		return implode(', ', $this->list);
48 48
 	}
49 49
 }
Please login to merge, or discard this patch.
src/LocaleHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	 *
19 19
 	 * @return string|null
20 20
 	 */
21
-	public static function transform( $locale ) {
21
+	public static function transform($locale) {
22 22
 		// Supported locales
23 23
 		$supported = array(
24 24
 			Locales::CS,
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
 		);
33 33
 
34 34
 		// Sub string
35
-		$locale = substr( $locale, 0, 2 );
35
+		$locale = substr($locale, 0, 2);
36 36
 
37 37
 		// Lower case
38
-		$locale = strtoupper( $locale );
38
+		$locale = strtoupper($locale);
39 39
 
40 40
 		// Is supported?
41
-		if ( in_array( $locale, $supported, true ) ) {
41
+		if (in_array($locale, $supported, true)) {
42 42
 			return $locale;
43 43
 		}
44 44
 
Please login to merge, or discard this patch.