Skip to content

Commit 3dcfa5a

Browse files
committed
🎨 Fix CI warnings caused by white space issues
1 parent bf7f428 commit 3dcfa5a

8 files changed

Lines changed: 37 additions & 56 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-compat/services.php‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
return array(
1919

20-
'compat.ppec.mock-gateway' => static function ( $container ) {
20+
'compat.ppec.mock-gateway' => static function ( $container ) {
2121
$settings = $container->get( 'settings.settings-provider' );
2222
assert( $settings instanceof SettingsProvider );
2323

@@ -30,15 +30,15 @@
3030
return new PPEC\MockGateway( $title );
3131
},
3232

33-
'compat.ppec.billing-agreement-converter' => static function ( ContainerInterface $container ) {
33+
'compat.ppec.billing-agreement-converter' => static function ( ContainerInterface $container ) {
3434
return new PPEC\BillingAgreementTokenConverter(
3535
$container->get( 'api.endpoint.payment-method-tokens' ),
3636
$container->get( 'api.repository.customer' ),
3737
$container->get( 'woocommerce.logger.woocommerce' )
3838
);
3939
},
4040

41-
'compat.ppec.subscriptions-handler' => static function ( ContainerInterface $container ) {
41+
'compat.ppec.subscriptions-handler' => static function ( ContainerInterface $container ) {
4242
return new PPEC\SubscriptionsHandler(
4343
$container->get( 'wc-subscriptions.renewal-handler' ),
4444
$container->get( 'compat.ppec.mock-gateway' ),
@@ -47,7 +47,7 @@
4747
);
4848
},
4949

50-
'compat.plugin-script-names' => static function ( ContainerInterface $container ): array {
50+
'compat.plugin-script-names' => static function ( ContainerInterface $container ): array {
5151
return array(
5252
'ppcp-smart-button',
5353
'ppcp-oxxo',
@@ -61,7 +61,7 @@
6161
);
6262
},
6363

64-
'compat.plugin-script-file-names' => static function ( ContainerInterface $container ): array {
64+
'compat.plugin-script-file-names' => static function ( ContainerInterface $container ): array {
6565
return array(
6666
'button.js',
6767
'gateway-settings.js',
@@ -71,18 +71,18 @@
7171
);
7272
},
7373

74-
'compat.shiptastic.is_supported_plugin_version_active' => function (): bool {
74+
'compat.shiptastic.is_supported_plugin_version_active' => function (): bool {
7575
return function_exists( 'wc_stc_get_shipments' );
7676
},
7777

7878
'compat.wc_shipment_tracking.is_supported_plugin_version_active' => function (): bool {
7979
return class_exists( 'WC_Shipment_Tracking' );
8080
},
8181

82-
'compat.ywot.is_supported_plugin_version_active' => function (): bool {
82+
'compat.ywot.is_supported_plugin_version_active' => function (): bool {
8383
return function_exists( 'yith_ywot_init' );
8484
},
85-
'compat.dhl.is_supported_plugin_version_active' => function (): bool {
85+
'compat.dhl.is_supported_plugin_version_active' => function (): bool {
8686
return function_exists( 'PR_DHL' );
8787
},
8888
'compat.shipstation.is_supported_plugin_version_active' => function (): bool {
@@ -91,21 +91,21 @@
9191
'compat.wc_shipping_tax.is_supported_plugin_version_active' => function (): bool {
9292
return class_exists( 'WC_Connect_Loader' );
9393
},
94-
'compat.nyp.is_supported_plugin_version_active' => function (): bool {
94+
'compat.nyp.is_supported_plugin_version_active' => function (): bool {
9595
return function_exists( 'wc_nyp_init' );
9696
},
9797
'compat.wc_bookings.is_supported_plugin_version_active' => function (): bool {
9898
return class_exists( 'WC_Bookings' );
9999
},
100100

101-
'compat.asset_getter' => static function ( ContainerInterface $container ): AssetGetter {
101+
'compat.asset_getter' => static function ( ContainerInterface $container ): AssetGetter {
102102
$factory = $container->get( 'assets.asset_getter_factory' );
103103
assert( $factory instanceof AssetGetterFactory );
104104

105105
return $factory->for_module( 'ppcp-compat' );
106106
},
107107

108-
'compat.assets' => function ( ContainerInterface $container ): CompatAssets {
108+
'compat.assets' => function ( ContainerInterface $container ): CompatAssets {
109109
return new CompatAssets(
110110
$container->get( 'compat.asset_getter' ),
111111
$container->get( 'ppcp.asset-version' ),

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

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,10 @@
99

1010
namespace WooCommerce\PayPalCommerce\Settings\Endpoint;
1111

12-
use WooCommerce\PayPalCommerce\Axo\Gateway\AxoGateway;
13-
use WooCommerce\PayPalCommerce\Googlepay\GooglePayGateway;
14-
use WooCommerce\PayPalCommerce\LocalAlternativePaymentMethods\BancontactGateway;
15-
use WooCommerce\PayPalCommerce\LocalAlternativePaymentMethods\BlikGateway;
16-
use WooCommerce\PayPalCommerce\LocalAlternativePaymentMethods\IDealGateway;
17-
use WooCommerce\PayPalCommerce\LocalAlternativePaymentMethods\MultibancoGateway;
18-
use WooCommerce\PayPalCommerce\LocalAlternativePaymentMethods\MyBankGateway;
19-
use WooCommerce\PayPalCommerce\LocalAlternativePaymentMethods\P24Gateway;
20-
use WooCommerce\PayPalCommerce\LocalAlternativePaymentMethods\TrustlyGateway;
21-
use WooCommerce\PayPalCommerce\Settings\Data\PaymentSettings;
22-
use WooCommerce\PayPalCommerce\WcGateway\Gateway\CardButtonGateway;
23-
use WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway;
24-
use WooCommerce\PayPalCommerce\WcGateway\Gateway\OXXO\OXXO;
25-
use WooCommerce\PayPalCommerce\WcGateway\Gateway\PayPalGateway;
26-
use WooCommerce\PayPalCommerce\WcGateway\Gateway\PayUponInvoice\PayUponInvoiceGateway;
2712
use WP_REST_Server;
2813
use WP_REST_Response;
2914
use WP_REST_Request;
30-
use WooCommerce\PayPalCommerce\Applepay\ApplePayGateway;
31-
use WooCommerce\PayPalCommerce\LocalAlternativePaymentMethods\EPSGateway;
15+
use WooCommerce\PayPalCommerce\Settings\Data\PaymentSettings;
3216
use WooCommerce\PayPalCommerce\Settings\Data\Definition\PaymentMethodsDefinition;
3317
use WooCommerce\PayPalCommerce\Settings\Data\Definition\PaymentMethodsDependenciesDefinition;
3418

@@ -73,23 +57,23 @@ class PaymentRestEndpoint extends RestEndpoint {
7357
* @var array
7458
*/
7559
private array $field_map = array(
76-
'paypal_show_logo' => array(
60+
'paypal_show_logo' => array(
7761
'js_name' => 'paypalShowLogo',
7862
'sanitize' => 'to_boolean',
7963
),
80-
'cardholder_name' => array(
64+
'cardholder_name' => array(
8165
'js_name' => 'cardholderName',
8266
'sanitize' => 'to_boolean',
8367
),
84-
'fastlane_display_watermark' => array(
68+
'fastlane_display_watermark' => array(
8569
'js_name' => 'fastlaneDisplayWatermark',
8670
'sanitize' => 'to_boolean',
8771
),
88-
'pui_brand_name' => array(
72+
'pui_brand_name' => array(
8973
'js_name' => 'puiBrandName',
9074
'sanitize' => 'sanitize_text_field',
9175
),
92-
'pui_logo_url' => array(
76+
'pui_logo_url' => array(
9377
'js_name' => 'puiLogoUrl',
9478
'sanitize' => 'esc_url_raw',
9579
),
@@ -215,11 +199,11 @@ public function get_details(): WP_REST_Response {
215199
}
216200
}
217201

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();
202+
$gateway_settings['paypalShowLogo'] = $this->payment_settings->get_paypal_show_logo();
203+
$gateway_settings['cardholderName'] = $this->payment_settings->get_cardholder_name();
204+
$gateway_settings['fastlaneDisplayWatermark'] = $this->payment_settings->get_fastlane_display_watermark();
205+
$gateway_settings['puiBrandName'] = $this->payment_settings->get_pui_brand_name();
206+
$gateway_settings['puiLogoUrl'] = $this->payment_settings->get_pui_logo_url();
223207
$gateway_settings['puiCustomerServiceInstructions'] = $this->payment_settings->get_pui_customer_service_instructions();
224208

225209
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
}

‎modules/ppcp-wc-gateway/services.php‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,15 @@
1717
use WooCommerce\PayPalCommerce\ApiClient\Exception\RuntimeException;
1818
use WooCommerce\PayPalCommerce\ApiClient\Helper\ReferenceTransactionStatus;
1919
use WooCommerce\PayPalCommerce\ApiClient\Helper\Cache;
20-
use WooCommerce\PayPalCommerce\Applepay\ApplePayGateway;
2120
use WooCommerce\PayPalCommerce\Assets\AssetGetter;
2221
use WooCommerce\PayPalCommerce\Assets\AssetGetterFactory;
2322
use WooCommerce\PayPalCommerce\Axo\Gateway\AxoGateway;
2423
use WooCommerce\PayPalCommerce\Button\Helper\MessagesApply;
2524
use WooCommerce\PayPalCommerce\Button\Helper\MessagesDisclaimers;
2625
use WooCommerce\PayPalCommerce\Common\Pattern\SingletonDecorator;
27-
use WooCommerce\PayPalCommerce\Googlepay\GooglePayGateway;
2826
use WooCommerce\PayPalCommerce\Settings\Data\Definition\FeaturesDefinition;
2927
use WooCommerce\PayPalCommerce\Settings\Data\SettingsModel;
3028
use WooCommerce\PayPalCommerce\Settings\Data\SettingsProvider;
31-
use WooCommerce\PayPalCommerce\Settings\SettingsModule;
3229
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
3330
use WooCommerce\PayPalCommerce\WcGateway\Admin\FeesRenderer;
3431
use WooCommerce\PayPalCommerce\WcGateway\Admin\OrderTablePaymentStatusColumn;
@@ -791,7 +788,7 @@ static function ( ContainerInterface $container ): AuthorizeOrderActionNotice {
791788
'wcgateway.logging.is-enabled' => static function ( ContainerInterface $container ): bool {
792789
$settings = $container->get( 'settings.data.settings' );
793790
assert( $settings instanceof SettingsModel );
794-
791+
795792
$is_enabled = $settings->get_enable_logging();
796793

797794
if ( ! $is_enabled ) {

‎modules/ppcp-wc-gateway/src/Endpoint/ReturnUrlEndpoint.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ public function __construct(
6969
SessionHandler $session_handler,
7070
LoggerInterface $logger
7171
) {
72-
$this->gateway = $gateway;
73-
$this->order_endpoint = $order_endpoint;
74-
$this->session_handler = $session_handler;
75-
$this->logger = $logger;
72+
$this->gateway = $gateway;
73+
$this->order_endpoint = $order_endpoint;
74+
$this->session_handler = $session_handler;
75+
$this->logger = $logger;
7676
}
7777

7878
/**

0 commit comments

Comments
 (0)