Skip to content

Commit 57f0a05

Browse files
committed
🎨 Fix PHPCS coding standards violations
1 parent 718aa6b commit 57f0a05

5 files changed

Lines changed: 20 additions & 20 deletions

File tree

‎modules/ppcp-api-client/src/Repository/PartnerReferralsData.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class PartnerReferralsData {
2626
protected FeaturesDefinition $features_definition;
2727

2828
public function __construct( DccApplies $dcc_applies, FeaturesDefinition $features_definition ) {
29-
$this->dcc_applies = $dcc_applies; // @phpstan-ignore property.deprecated
29+
$this->dcc_applies = $dcc_applies; // @phpstan-ignore property.deprecated
3030
$this->features_definition = $features_definition;
3131
}
3232

‎modules/ppcp-button/services.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
336336
$data_store = \WC_Data_Store::load( 'product' );
337337
return new CartProductsHelper( $data_store );
338338
},
339-
'button.helper.isolated-cart-simulator' => static function ( ContainerInterface $container ): IsolatedCartSimulator {
339+
'button.helper.isolated-cart-simulator' => static function ( ContainerInterface $container ): IsolatedCartSimulator {
340340
return new IsolatedCartSimulator(
341341
$container->get( 'button.helper.cart-products' ),
342342
$container->get( 'woocommerce.logger.woocommerce' )

‎modules/ppcp-button/src/Endpoint/SimulateCartEndpoint.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ public function __construct(
2525
IsolatedCartSimulator $cart_simulator,
2626
LoggerInterface $logger
2727
) {
28-
$this->smart_button = $smart_button;
29-
$this->request_data = $request_data;
30-
$this->cart_products = $cart_products;
28+
$this->smart_button = $smart_button;
29+
$this->request_data = $request_data;
30+
$this->cart_products = $cart_products;
3131
$this->cart_simulator = $cart_simulator;
32-
$this->logger = $logger;
32+
$this->logger = $logger;
3333

3434
$this->logger_tag = 'simulation';
3535
}

‎modules/ppcp-settings/src/Endpoint/PaymentRestEndpoint.php‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,23 @@ class PaymentRestEndpoint extends RestEndpoint {
7373
* @var array
7474
*/
7575
private array $field_map = array(
76-
'paypal_show_logo' => array(
76+
'paypal_show_logo' => array(
7777
'js_name' => 'paypalShowLogo',
7878
'sanitize' => 'to_boolean',
7979
),
80-
'cardholder_name' => array(
80+
'cardholder_name' => array(
8181
'js_name' => 'cardholderName',
8282
'sanitize' => 'to_boolean',
8383
),
84-
'fastlane_display_watermark' => array(
84+
'fastlane_display_watermark' => array(
8585
'js_name' => 'fastlaneDisplayWatermark',
8686
'sanitize' => 'to_boolean',
8787
),
88-
'pui_brand_name' => array(
88+
'pui_brand_name' => array(
8989
'js_name' => 'puiBrandName',
9090
'sanitize' => 'sanitize_text_field',
9191
),
92-
'pui_logo_url' => array(
92+
'pui_logo_url' => array(
9393
'js_name' => 'puiLogoUrl',
9494
'sanitize' => 'esc_url_raw',
9595
),
@@ -215,11 +215,11 @@ public function get_details(): WP_REST_Response {
215215
}
216216
}
217217

218-
$gateway_settings['paypalShowLogo'] = $this->payment_settings->get_paypal_show_logo();
219-
$gateway_settings['cardholderName'] = $this->payment_settings->get_cardholder_name();
220-
$gateway_settings['fastlaneDisplayWatermark'] = $this->payment_settings->get_fastlane_display_watermark();
221-
$gateway_settings['puiBrandName'] = $this->payment_settings->get_pui_brand_name();
222-
$gateway_settings['puiLogoUrl'] = $this->payment_settings->get_pui_logo_url();
218+
$gateway_settings['paypalShowLogo'] = $this->payment_settings->get_paypal_show_logo();
219+
$gateway_settings['cardholderName'] = $this->payment_settings->get_cardholder_name();
220+
$gateway_settings['fastlaneDisplayWatermark'] = $this->payment_settings->get_fastlane_display_watermark();
221+
$gateway_settings['puiBrandName'] = $this->payment_settings->get_pui_brand_name();
222+
$gateway_settings['puiLogoUrl'] = $this->payment_settings->get_pui_logo_url();
223223
$gateway_settings['puiCustomerServiceInstructions'] = $this->payment_settings->get_pui_customer_service_instructions();
224224

225225
return $this->return_success( apply_filters( 'woocommerce_paypal_payments_payment_methods', $gateway_settings ) );

‎modules/ppcp-settings/src/Service/FeaturesEligibilityService.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ public function get_eligibility_checks(): array {
127127
FeaturesDefinition::FEATURE_SAVE_PAYPAL_AND_VENMO => fn() => $this->is_save_paypal_eligible,
128128
FeaturesDefinition::FEATURE_ADVANCED_CREDIT_AND_DEBIT_CARDS => $this->check_acdc_eligible,
129129
FeaturesDefinition::FEATURE_ALTERNATIVE_PAYMENT_METHODS => fn() => $this->is_apm_eligible,
130-
FeaturesDefinition::FEATURE_GOOGLE_PAY => $this->check_google_pay_eligible,
131-
FeaturesDefinition::FEATURE_APPLE_PAY => $this->check_apple_pay_eligible,
130+
FeaturesDefinition::FEATURE_GOOGLE_PAY => $this->check_google_pay_eligible,
131+
FeaturesDefinition::FEATURE_APPLE_PAY => $this->check_apple_pay_eligible,
132132
FeaturesDefinition::FEATURE_PAY_LATER_MESSAGING => fn() => $this->is_pay_later_eligible,
133-
FeaturesDefinition::FEATURE_INSTALLMENTS => fn() => $this->is_installments_eligible,
134-
FeaturesDefinition::FEATURE_PAY_WITH_CRYPTO => fn() => $this->is_pwc_eligibility_checked,
133+
FeaturesDefinition::FEATURE_INSTALLMENTS => fn() => $this->is_installments_eligible,
134+
FeaturesDefinition::FEATURE_PAY_WITH_CRYPTO => fn() => $this->is_pwc_eligibility_checked,
135135
FeaturesDefinition::FEATURE_PAY_UPON_INVOICE => fn() => $this->is_pui_eligible,
136136
);
137137
}

0 commit comments

Comments
 (0)