🎨 Minor code-style changes

This commit is contained in:
Philipp Stracker 2025-01-13 13:57:42 +01:00
parent 4f61251ae7
commit 1bee5f1c46
No known key found for this signature in database
4 changed files with 8 additions and 4 deletions

View file

@ -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
*/

View file

@ -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
*/

View file

@ -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
*/

View file

@ -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;