Skip to content

Commit

Permalink
run code reformatting
Browse files Browse the repository at this point in the history
PatryQHyper committed Jan 12, 2025
1 parent 3c00f43 commit 088bbc1
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions simpay-woocommerce-payment.php
Original file line number Diff line number Diff line change
@@ -34,17 +34,17 @@ function simpay_woocommerce_payment_gateways( $methods ) {
}
}

add_action('enqueue_block_assets', 'simpay_woocommerce_payment_block_assets');
add_action( 'enqueue_block_assets', 'simpay_woocommerce_payment_block_assets' );

function simpay_woocommerce_payment_block_assets() {
if (!function_exists('is_checkout') || !is_checkout()) {
if ( ! function_exists( 'is_checkout' ) || ! is_checkout() ) {
return;
}

wp_enqueue_script(
'simpay_woocommerce_payment_blocks_integration',
plugins_url('assets/js/simpay_woocommerce_payment_blocks_integration.js', __FILE__),
array('wc-blocks-registry', 'wp-element', 'wp-i18n', 'wp-hooks'),
plugins_url( 'assets/js/simpay_woocommerce_payment_blocks_integration.js', __FILE__ ),
array( 'wc-blocks-registry', 'wp-element', 'wp-i18n', 'wp-hooks' ),
'1.0.0',
true
);
8 changes: 4 additions & 4 deletions src/SimPay_Gateway.php
Original file line number Diff line number Diff line change
@@ -12,8 +12,8 @@ public function __construct() {
$this->method_description = 'Wygodne przyjmowanie płatności online i BLIK';
$this->init_form_fields();
$this->init_settings();
$this->title = $this->get_option( 'title', 'SimPay.pl' );
$this->description =$this->get_option( 'description', 'Zapłać przez SimPay.pl' );
$this->title = $this->get_option( 'title', 'SimPay.pl' );
$this->description = $this->get_option( 'description', 'Zapłać przez SimPay.pl' );

$this->supports = array(
'products'
@@ -35,7 +35,7 @@ public function simpay_handle_ipn() {
$this->get_option( 'simpay_service_hash' ),
$this->get_option( 'simpay_service_id' ),
$this->get_option( 'simpay_bearer' ),
$this->get_option('simpay_ipn_check_ip') === 'yes',
$this->get_option( 'simpay_ipn_check_ip' ) === 'yes',
);
}

@@ -53,7 +53,7 @@ public function init_form_fields() {
'type' => 'text',
'default' => __( 'SimPay.pl', 'woocommerce' ),
),
'description' => array(
'description' => array(
'title' => __( 'Opis metody płatności', 'simpay_woocommerce_payment' ),
'description' => __( 'Ten opis będzie widoczny dla kupującego w momencie wybierania metody płatności', 'simpay_woocommerce_payment' ),
'type' => 'text',

0 comments on commit 088bbc1

Please sign in to comment.