From 75f1ec34095bc22ef821d71f459c9321d570e12e Mon Sep 17 00:00:00 2001
From: Philipp Stracker
Date: Mon, 24 Feb 2025 18:13:17 +0100
Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Code=20style=20changes?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/DTO/MerchantConnectionDTO.php | 16 ++++++++--------
.../src/Service/AuthenticationManager.php | 12 ++++++------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/modules/ppcp-settings/src/DTO/MerchantConnectionDTO.php b/modules/ppcp-settings/src/DTO/MerchantConnectionDTO.php
index ed9098b48..de97e3590 100644
--- a/modules/ppcp-settings/src/DTO/MerchantConnectionDTO.php
+++ b/modules/ppcp-settings/src/DTO/MerchantConnectionDTO.php
@@ -70,21 +70,21 @@ class MerchantConnectionDTO {
/**
* Constructor.
*
- * @param bool $is_sandbox Whether this connection is a sandbox account.
- * @param string $client_id API client ID.
- * @param string $client_secret API client secret.
- * @param string $merchant_id PayPal's 13-character merchant ID.
- * @param string $merchant_email Email address of the merchant account.
+ * @param bool $is_sandbox Whether this connection is a sandbox account.
+ * @param string $client_id API client ID.
+ * @param string $client_secret API client secret.
+ * @param string $merchant_id PayPal's 13-character merchant ID.
+ * @param string $merchant_email Email address of the merchant account.
* @param string $merchant_country Merchant's country.
- * @param string $seller_type Whether the merchant is a business or personal account.
+ * @param string $seller_type Whether the merchant is a business or personal account.
*/
public function __construct(
bool $is_sandbox,
string $client_id,
string $client_secret,
string $merchant_id,
- string $merchant_email,
- string $merchant_country,
+ string $merchant_email = '',
+ string $merchant_country = '',
string $seller_type = SellerTypeEnum::UNKNOWN
) {
$this->is_sandbox = $is_sandbox;
diff --git a/modules/ppcp-settings/src/Service/AuthenticationManager.php b/modules/ppcp-settings/src/Service/AuthenticationManager.php
index 9e55ee838..41c25da13 100644
--- a/modules/ppcp-settings/src/Service/AuthenticationManager.php
+++ b/modules/ppcp-settings/src/Service/AuthenticationManager.php
@@ -84,13 +84,13 @@ class AuthenticationManager {
/**
* Constructor.
*
- * @param GeneralSettings $common_settings Data model that stores the connection details.
- * @param EnvironmentConfig $connection_host API host for direct authentication.
- * @param EnvironmentConfig $login_endpoint API handler to fetch merchant credentials.
- * @param PartnerReferralsData $referrals_data Partner referrals data.
- * @param ConnectionState $connection_state Connection state manager.
+ * @param GeneralSettings $common_settings Data model that stores the connection details.
+ * @param EnvironmentConfig $connection_host API host for direct authentication.
+ * @param EnvironmentConfig $login_endpoint API handler to fetch merchant credentials.
+ * @param PartnerReferralsData $referrals_data Partner referrals data.
+ * @param ConnectionState $connection_state Connection state manager.
* @param PartnersEndpoint $partners_endpoint Partners endpoint.
- * @param ?LoggerInterface $logger Logging instance.
+ * @param ?LoggerInterface $logger Logging instance.
*/
public function __construct(
GeneralSettings $common_settings,