Skip to content

Commit

Permalink
🚨 Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
larasmorningtrain committed Mar 14, 2024
1 parent 32e9498 commit 1b9e690
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Woocommerce/ProductService.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static function addEconomicProductFieldWithWrapper(): void
public static function addEconomicProductField($loop, $variation_data, $variation): void
{
woocommerce_wp_text_input([
'id' => 'economic_product_id_'."[{$loop}]",
'id' => 'economic_product_id_' . "[{$loop}]",
'label' => __('E-conomic produkt id', 'mt-wc-economic'),
'placeholder' => __('E-conomic produkt id', 'mt-wc-economic'),
'desc_tip' => 'true',
Expand Down
4 changes: 2 additions & 2 deletions src/Woocommerce/WC_Gateway_Economic_Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct()
$this->description = $this->get_option('description');

// This action hook saves the settings
add_action('woocommerce_update_options_payment_gateways_'.$this->id, [$this, 'process_admin_options']);
add_action('woocommerce_update_options_payment_gateways_' . $this->id, [$this, 'process_admin_options']);

add_action('woocommerce_new_order', [$this, 'onNewOrder'], 10, 1);
add_action('woocommerce_order_status_completed', [$this, 'onOrderCompleted'], 10, 1);
Expand Down Expand Up @@ -274,7 +274,7 @@ public function eanFieldUpdateOrderMeta($order_id): void

public function addEanFieldFisplayAdminOrderMeta($order): void
{
echo '<p><strong>'.__('EAN nummer', 'woocommerce').':</strong> '.get_post_meta($order->get_id(), 'economic_billing_ean', true).'</p>';
echo '<p><strong>' . __('EAN nummer', 'woocommerce') . ':</strong> ' . get_post_meta($order->get_id(), 'economic_billing_ean', true) . '</p>';
}

public function isSettingsPage()
Expand Down

0 comments on commit 1b9e690

Please sign in to comment.