From 1bee5f1c46ae0a1c7ddb579f1f1a7baa9313cf5d Mon Sep 17 00:00:00 2001 From: Philipp Stracker Date: Mon, 13 Jan 2025 13:57:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Minor=20code-style=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ppcp-settings/src/Endpoint/CommonRestEndpoint.php | 2 +- .../ppcp-settings/src/Endpoint/OnboardingRestEndpoint.php | 2 +- .../src/Endpoint/RefreshFeatureStatusEndpoint.php | 2 +- .../ppcp-settings/src/Endpoint/WebhookSettingsEndpoint.php | 6 +++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/ppcp-settings/src/Endpoint/CommonRestEndpoint.php b/modules/ppcp-settings/src/Endpoint/CommonRestEndpoint.php index 6da060f28..35af6c093 100644 --- a/modules/ppcp-settings/src/Endpoint/CommonRestEndpoint.php +++ b/modules/ppcp-settings/src/Endpoint/CommonRestEndpoint.php @@ -110,7 +110,7 @@ class CommonRestEndpoint extends RestEndpoint { /** * Configure REST API routes. */ - public function register_routes() { + public function register_routes() : void { /** * GET /wp-json/wc/v3/wc_paypal/common */ diff --git a/modules/ppcp-settings/src/Endpoint/OnboardingRestEndpoint.php b/modules/ppcp-settings/src/Endpoint/OnboardingRestEndpoint.php index 19cdcd530..54aced7ef 100644 --- a/modules/ppcp-settings/src/Endpoint/OnboardingRestEndpoint.php +++ b/modules/ppcp-settings/src/Endpoint/OnboardingRestEndpoint.php @@ -96,7 +96,7 @@ class OnboardingRestEndpoint extends RestEndpoint { /** * Configure REST API routes. */ - public function register_routes() { + public function register_routes() : void { /** * GET /wp-json/wc/v3/wc_paypal/onboarding */ diff --git a/modules/ppcp-settings/src/Endpoint/RefreshFeatureStatusEndpoint.php b/modules/ppcp-settings/src/Endpoint/RefreshFeatureStatusEndpoint.php index 7e8335e00..7f1d4468c 100644 --- a/modules/ppcp-settings/src/Endpoint/RefreshFeatureStatusEndpoint.php +++ b/modules/ppcp-settings/src/Endpoint/RefreshFeatureStatusEndpoint.php @@ -82,7 +82,7 @@ class RefreshFeatureStatusEndpoint extends RestEndpoint { /** * Configure REST API routes. */ - public function register_routes() { + public function register_routes() : void { /** * POST /wp-json/wc/v3/wc_paypal/refresh-feature-status */ diff --git a/modules/ppcp-settings/src/Endpoint/WebhookSettingsEndpoint.php b/modules/ppcp-settings/src/Endpoint/WebhookSettingsEndpoint.php index 603496194..5e56de9e3 100644 --- a/modules/ppcp-settings/src/Endpoint/WebhookSettingsEndpoint.php +++ b/modules/ppcp-settings/src/Endpoint/WebhookSettingsEndpoint.php @@ -67,7 +67,11 @@ class WebhookSettingsEndpoint extends RestEndpoint { * @param WebhookRegistrar $webhook_registrar A service that allows resubscribing webhooks. * @param WebhookSimulation $webhook_simulation A service that allows webhook simulations. */ - public function __construct( WebhookEndpoint $webhook_endpoint, WebhookRegistrar $webhook_registrar, WebhookSimulation $webhook_simulation ) { + public function __construct( + WebhookEndpoint $webhook_endpoint, + WebhookRegistrar $webhook_registrar, + WebhookSimulation $webhook_simulation + ) { $this->webhook_endpoint = $webhook_endpoint; $this->webhook_registrar = $webhook_registrar; $this->webhook_simulation = $webhook_simulation;