Skip to content

Commit

Permalink
PHP: join -> implode
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Nov 8, 2020
1 parent d36f36e commit efb218e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/GopayHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ public static function createPaymentForm(
$lang
)
{
$paymentChannelsString = (!empty($paymentChannels)) ? join($paymentChannels, ",") : "";
$paymentChannelsString = (!empty($paymentChannels)) ? implode(",", $paymentChannels) : "";

$encryptedSignature = GopayHelper::encrypt(
GopayHelper::hash(
Expand Down Expand Up @@ -785,7 +785,7 @@ public static function createPaymentHref(
$lang
)
{
$paymentChannelsString = (!empty($paymentChannels)) ? join($paymentChannels, ",") : "";
$paymentChannelsString = (!empty($paymentChannels)) ? implode(",", $paymentChannels) : "";

$encryptedSignature = GopayHelper::encrypt(
GopayHelper::hash(
Expand Down
2 changes: 1 addition & 1 deletion src/GopaySoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public static function createBasePayment(
try {
ini_set("soap.wsdl_cache_enabled", "0");
$go_client = GopayConfig::createSoapClient();
$paymentChannelsString = (!empty($paymentChannels)) ? join($paymentChannels, ",") : "";
$paymentChannelsString = (!empty($paymentChannels)) ? implode(",", $paymentChannels) : "";

/*
* Sestaveni pozadavku pro zalozeni platby
Expand Down

0 comments on commit efb218e

Please sign in to comment.