From 9b715b2c98badad342b4ef25ddaab4d627d4e17c Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 26 Jun 2024 22:51:05 +0200 Subject: [PATCH] SAST Changes --- Model/ApiFacade/TpayConfig/ConfigOpen.php | 8 +++++--- Model/ApiFacade/TpayConfig/ConfigOrigin.php | 8 +++++--- Model/ApiFacade/Transaction/TransactionApiFacade.php | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Model/ApiFacade/TpayConfig/ConfigOpen.php b/Model/ApiFacade/TpayConfig/ConfigOpen.php index af43f85..380b2dd 100755 --- a/Model/ApiFacade/TpayConfig/ConfigOpen.php +++ b/Model/ApiFacade/TpayConfig/ConfigOpen.php @@ -67,13 +67,15 @@ public function showChannels(): ?string public function createScript(string $script): string { - return " - "; + +EOD; } public function getTerms(): ?string diff --git a/Model/ApiFacade/TpayConfig/ConfigOrigin.php b/Model/ApiFacade/TpayConfig/ConfigOrigin.php index a04bf29..39e2f85 100755 --- a/Model/ApiFacade/TpayConfig/ConfigOrigin.php +++ b/Model/ApiFacade/TpayConfig/ConfigOrigin.php @@ -68,13 +68,15 @@ public function showChannels(): ?string public function createScript(string $script): string { - return " - "; + +EOD; } public function getTerms(): ?string diff --git a/Model/ApiFacade/Transaction/TransactionApiFacade.php b/Model/ApiFacade/Transaction/TransactionApiFacade.php index da6e6b2..e0b5c8d 100755 --- a/Model/ApiFacade/Transaction/TransactionApiFacade.php +++ b/Model/ApiFacade/Transaction/TransactionApiFacade.php @@ -12,7 +12,7 @@ class TransactionApiFacade { private const CHANNELS_CACHE_KEY = 'tpay_channels'; - private const CACHE_LIFETIME = 86400; + private const CACHE_LIFETIME = 86_400; /** @var TransactionOriginApi */ private $originApi;