Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelzaleski committed Dec 26, 2024
1 parent 6a7e39f commit 4ced284
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions includes/multi-currency/MultiCurrency.php
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ public function set_client_format_and_rounding_precision() {
woocommerce_admin_meta_boxes.rounding_precision = <?php echo (int) $rounding_precision; ?>;
</script>
<?php
endif;
endif;
}

/**
Expand Down Expand Up @@ -1252,10 +1252,10 @@ public function get_multi_currency_onboarding_simulation_variables() {
public function is_multi_currency_settings_page(): bool {
global $current_screen, $current_tab;
return (
is_admin()
&& $current_tab && $current_screen
&& 'wcpay_multi_currency' === $current_tab
&& 'woocommerce_page_wc-settings' === $current_screen->base
is_admin()
&& $current_tab && $current_screen
&& 'wcpay_multi_currency' === $current_tab
&& 'woocommerce_page_wc-settings' === $current_screen->base
);
}

Expand All @@ -1277,7 +1277,7 @@ public function get_all_customer_currencies(): array {
$query_union = [];

if ( class_exists( 'Automattic\WooCommerce\Utilities\OrderUtil' ) &&
\Automattic\WooCommerce\Utilities\OrderUtil::custom_orders_table_usage_is_enabled() ) {
\Automattic\WooCommerce\Utilities\OrderUtil::custom_orders_table_usage_is_enabled() ) {
foreach ( $currencies as $currency ) {
$query_union[] = $wpdb->prepare(
"SELECT %s AS currency_code, EXISTS(SELECT currency FROM {$wpdb->prefix}wc_orders WHERE currency=%s LIMIT 1) AS exists_in_orders",
Expand Down Expand Up @@ -1339,6 +1339,7 @@ public function is_initialized(): bool {
*/
public function adjust_amount_for_selected_currency( $amount, $apply_charm_pricing = true ) {
return $this->get_adjusted_price( $amount, $apply_charm_pricing, $this->get_selected_currency() );
}

/**
* Returns the amount with the backend format.
Expand Down

0 comments on commit 4ced284

Please sign in to comment.