@@ -46,7 +46,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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(); |
@@ -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 | |
@@ -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 | /** |
@@ -25,7 +25,7 @@ |
||
| 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 | /** |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | $post_status = $this->get_post_status( $payment, null ); |
| 112 | 112 | |
| 113 | 113 | if ( null !== $post_status ) { |
| 114 | - $data['post_status'] = $post_status; |
|
| 114 | + $data[ 'post_status' ] = $post_status; |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | wp_update_post( $data ); |
@@ -238,8 +238,8 @@ discard block |
||
| 238 | 238 | if ( $previous_status !== $payment->status ) { |
| 239 | 239 | $can_redirect = false; |
| 240 | 240 | |
| 241 | - do_action( 'pronamic_payment_status_update_' . $payment->source . '_' . $previous_status . '_to_' . $payment->status, $payment, $can_redirect ); |
|
| 242 | - do_action( 'pronamic_payment_status_update_' . $payment->source, $payment, $can_redirect ); |
|
| 241 | + do_action( 'pronamic_payment_status_update_'.$payment->source.'_'.$previous_status.'_to_'.$payment->status, $payment, $can_redirect ); |
|
| 242 | + do_action( 'pronamic_payment_status_update_'.$payment->source, $payment, $can_redirect ); |
|
| 243 | 243 | do_action( 'pronamic_payment_status_update', $payment, $can_redirect ); |
| 244 | 244 | } |
| 245 | 245 | } |
@@ -36,7 +36,7 @@ |
||
| 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 | /** |