@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | // @see https://en.wikipedia.org/wiki/Non-breaking_space#Keyboard_entry_methods |
189 | 189 | $non_breaking_space = ' '; |
190 | 190 | |
191 | - return '' . $currency_symbol . $non_breaking_space . number_format_i18n( $float, 2 ); |
|
191 | + return ''.$currency_symbol.$non_breaking_space.number_format_i18n( $float, 2 ); |
|
192 | 192 | } |
193 | 193 | |
194 | 194 | /** |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | * @return string |
267 | 267 | */ |
268 | 268 | public static function build_url( $url, array $parameters ) { |
269 | - return $url . '?' . _http_build_query( $parameters, null, '&' ); |
|
269 | + return $url.'?'._http_build_query( $parameters, null, '&' ); |
|
270 | 270 | } |
271 | 271 | |
272 | 272 | /** |
@@ -318,14 +318,14 @@ discard block |
||
318 | 318 | |
319 | 319 | if ( is_array( $groups ) ) { |
320 | 320 | foreach ( $groups as $group ) { |
321 | - $optgroup = isset( $group['name'] ) && ! empty( $group['name'] ); |
|
321 | + $optgroup = isset( $group[ 'name' ] ) && !empty( $group[ 'name' ] ); |
|
322 | 322 | |
323 | 323 | if ( $optgroup ) { |
324 | - $html .= '<optgroup label="' . $group['name'] . '">'; |
|
324 | + $html .= '<optgroup label="'.$group[ 'name' ].'">'; |
|
325 | 325 | } |
326 | 326 | |
327 | - foreach ( $group['options'] as $value => $label ) { |
|
328 | - $html .= '<option value="' . $value . '" ' . selected( $selected_value, $value, false ) . '>' . $label . '</option>'; |
|
327 | + foreach ( $group[ 'options' ] as $value => $label ) { |
|
328 | + $html .= '<option value="'.$value.'" '.selected( $selected_value, $value, false ).'>'.$label.'</option>'; |
|
329 | 329 | } |
330 | 330 | |
331 | 331 | if ( $optgroup ) { |
@@ -39,7 +39,7 @@ discard block |
||
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 |
||
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 |
@@ -16,7 +16,7 @@ |
||
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 | ); |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 |
@@ -8,7 +8,7 @@ |
||
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 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | <?php |
35 | 35 | |
36 | - $html_id = 'comment-' . $comment->comment_ID; |
|
36 | + $html_id = 'comment-'.$comment->comment_ID; |
|
37 | 37 | $html_class = join( ' ', get_comment_class( wp_get_comment_status( $comment->comment_ID ) ) ); |
38 | 38 | |
39 | 39 | ?> |
@@ -26,7 +26,7 @@ |
||
26 | 26 | public function test_construct() { |
27 | 27 | $payment = new Payment(); |
28 | 28 | |
29 | - $this->assertInstanceOf( __NAMESPACE__ . '\Payment', $payment ); |
|
29 | + $this->assertInstanceOf( __NAMESPACE__.'\Payment', $payment ); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |