Skip to content

Commit

Permalink
SAST Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
s4ddly committed Jun 26, 2024
1 parent 36e668b commit 9b715b2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions Model/ApiFacade/TpayConfig/ConfigOpen.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ public function showChannels(): ?string

public function createScript(string $script): string
{
return "
<script type=\"text/javascript\">
return <<<EOD
<script type="text/javascript">
require(['jquery'], function ($) {
$.getScript('{$this->generateURL($script)}');
});
</script>";
</script>
EOD;
}

public function getTerms(): ?string
Expand Down
8 changes: 5 additions & 3 deletions Model/ApiFacade/TpayConfig/ConfigOrigin.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ public function showChannels(): ?string

public function createScript(string $script): string
{
return "
<script type=\"text/javascript\">
return <<<EOD
<script type="text/javascript">
require(['jquery'], function ($) {
$.getScript('{$this->generateURL($script)}');
});
</script>";
</script>
EOD;
}

public function getTerms(): ?string
Expand Down
2 changes: 1 addition & 1 deletion Model/ApiFacade/Transaction/TransactionApiFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9b715b2

Please sign in to comment.