diff --git a/src/library/FOSSBilling/SentryHelper.php b/src/library/FOSSBilling/SentryHelper.php index 22f6778f5..e9ca125c0 100644 --- a/src/library/FOSSBilling/SentryHelper.php +++ b/src/library/FOSSBilling/SentryHelper.php @@ -112,6 +112,8 @@ class SentryHelper /** * Here we validate that the DSN is correctly set and that error reporting is enabled before passing it off to the Sentry SDK. * It may look a bit odd, but the DSN placeholder value here is split into two strings and concatenated so we can easily perform a `sed` replacement of the placeholder without it effecting this check + * + * @phpstan-ignore-next-line (The value is replaced during release and the check is written with this in mind.) */ if ($config['debug_and_monitoring']['report_errors'] && $sentryDSN !== '--replace--this--' . 'during--release--process--' && !empty($sentryDSN)) { // Per Sentry documentation, not setting this results in the SDK simply not sending any information. diff --git a/src/modules/Email/Service.php b/src/modules/Email/Service.php index 43403b589..c2cea7ac7 100644 --- a/src/modules/Email/Service.php +++ b/src/modules/Email/Service.php @@ -303,7 +303,7 @@ class Service implements \FOSSBilling\InjectionAwareInterface private function _getVarsString() { - $str = '{% apply markdown %}' . PHP_EOL . PHP_EOL; + $str = '{% apply markdown %}' . PHP_EOL . PHP_EOL; $str .= 'This email template was automatically generated by FOSSBilling extension. ' . PHP_EOL; $str .= 'Template is ready to be modified. ' . PHP_EOL; $str .= 'Email template is just like FOSSBilling theme file. ' . PHP_EOL; diff --git a/src/modules/Servicehosting/Api/Client.php b/src/modules/Servicehosting/Api/Client.php index efac302ba..1f7415801 100644 --- a/src/modules/Servicehosting/Api/Client.php +++ b/src/modules/Servicehosting/Api/Client.php @@ -66,14 +66,13 @@ class Client extends \Api_Abstract * Returns the login URL for a given order ID. * If the associated server manager supports SSO, an SSO link will be given. * Will automatically return either a reseller URL or a standard URL depending on the order config. - * - * @param array $data An array containing the API request data. Should have a key named `order_id` containing the order's ID. * - * @return string + * @param array $data An array containing the API request data. Should have a key named `order_id` containing the order's ID. */ public function get_login_url(array $data): string { [$order, $s] = $this->_getService($data); + return $this->getService()->generateLoginUrl($s); } diff --git a/src/modules/Servicehosting/Service.php b/src/modules/Servicehosting/Service.php index d41a4787e..280146be2 100644 --- a/src/modules/Servicehosting/Service.php +++ b/src/modules/Servicehosting/Service.php @@ -926,10 +926,8 @@ class Service implements InjectionAwareInterface /** * Returns both the standard and reseller login URLs. * Will not generate SSO links. - * - * @param \Model_ServiceHostingServer $model - * - * @return string[]|false[] + * + * @return string[]|false[] */ public function getMangerUrls(\Model_ServiceHostingServer $model) { @@ -947,10 +945,8 @@ class Service implements InjectionAwareInterface /** * Generates either a reseller or standard login link for a given order. * If the server manager supports SSO, an SSO link will be returned. - * - * @param \Model_ServiceHosting $model - * - * @return string + * + * @return string */ public function generateLoginUrl(\Model_ServiceHosting $model) {