@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | */ |
9 | 9 | function getSkillSupportsCountries(): array |
10 | 10 | { |
11 | - return include __DIR__ . '/../resources/iso-3166-1-alpha-3-countries-skill-supports.php'; |
|
11 | + return include __DIR__.'/../resources/iso-3166-1-alpha-3-countries-skill-supports.php'; |
|
12 | 12 | } |
13 | 13 | } |
14 | 14 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | */ |
19 | 19 | function getSkillSupportsLanguages(): array |
20 | 20 | { |
21 | - return include __DIR__ . '/../resources/iso-6391-languages-skrill-supports.php'; |
|
21 | + return include __DIR__.'/../resources/iso-6391-languages-skrill-supports.php'; |
|
22 | 22 | } |
23 | 23 | } |
24 | 24 | |
@@ -28,6 +28,6 @@ discard block |
||
28 | 28 | */ |
29 | 29 | function convertISO(): array |
30 | 30 | { |
31 | - return include __DIR__ . '/../resources/convert-iso-alpha-2-to-alpha-3.php'; |
|
31 | + return include __DIR__.'/../resources/convert-iso-alpha-2-to-alpha-3.php'; |
|
32 | 32 | } |
33 | 33 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | return new Signature(strtoupper(md5(implode([ |
52 | 52 | $this->merchantId->getValue(), |
53 | 53 | $transactionId, |
54 | - strtoupper(md5((string)$this->secretWord)), |
|
54 | + strtoupper(md5((string) $this->secretWord)), |
|
55 | 55 | $this->moneyFormatter->format($amount), |
56 | 56 | $amount->getCurrency(), |
57 | 57 | $status, |
@@ -50,7 +50,7 @@ |
||
50 | 50 | return new Signature(strtoupper(hash('sha256', implode([ |
51 | 51 | $this->merchantId->getValue(), |
52 | 52 | $transactionId, |
53 | - strtoupper(hash('sha256', (string)$this->secretWord)), |
|
53 | + strtoupper(hash('sha256', (string) $this->secretWord)), |
|
54 | 54 | $this->moneyFormatter->format($amount), |
55 | 55 | $amount->getCurrency(), |
56 | 56 | $status, |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function __construct($value) |
26 | 26 | { |
27 | - $value = trim((string)$value); |
|
27 | + $value = trim((string) $value); |
|
28 | 28 | |
29 | 29 | if (empty($value)) { |
30 | 30 | throw InvalidTransactionIDException::emptyTransactionID(); |
@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | public function __construct(Email $recipientEmail, Money $amount, Description $description) |
28 | 28 | { |
29 | 29 | $this->payload = [ |
30 | - 'bnf_email' => (string)$recipientEmail, |
|
31 | - 'currency' => (string)$amount->getCurrency(), |
|
30 | + 'bnf_email' => (string) $recipientEmail, |
|
31 | + 'currency' => (string) $amount->getCurrency(), |
|
32 | 32 | 'amount' => $this->formatToFloat($amount), |
33 | 33 | 'subject' => $description->getSubject(), |
34 | 34 | 'note' => $description->getText(), |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function setReferenceTransaction(TransactionID $transactionId): self |
46 | 46 | { |
47 | - $this->payload['frn_trn_id'] = (string)$transactionId; |
|
47 | + $this->payload['frn_trn_id'] = (string) $transactionId; |
|
48 | 48 | |
49 | 49 | return $this; |
50 | 50 | } |
@@ -29,8 +29,8 @@ discard block |
||
29 | 29 | public function __construct(TransactionID $transactionId, Money $amount) |
30 | 30 | { |
31 | 31 | $this->payload = [ |
32 | - 'transaction_id' => (string)$transactionId, |
|
33 | - 'currency' => (string)$amount->getCurrency(), |
|
32 | + 'transaction_id' => (string) $transactionId, |
|
33 | + 'currency' => (string) $amount->getCurrency(), |
|
34 | 34 | 'amount' => $this->formatToFloat($amount), |
35 | 35 | ]; |
36 | 36 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function setLang(Language $lang): self |
44 | 44 | { |
45 | - $this->payload['language'] = (string)$lang; |
|
45 | + $this->payload['language'] = (string) $lang; |
|
46 | 46 | |
47 | 47 | return $this; |
48 | 48 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function setPayFromEmail(Email $email): self |
56 | 56 | { |
57 | - $this->payload['pay_from_email'] = (string)$email; |
|
57 | + $this->payload['pay_from_email'] = (string) $email; |
|
58 | 58 | |
59 | 59 | return $this; |
60 | 60 | } |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function setReturnUrl(Url $url): self |
90 | 90 | { |
91 | - $this->payload['return_url'] = (string)$url; |
|
91 | + $this->payload['return_url'] = (string) $url; |
|
92 | 92 | |
93 | 93 | return $this; |
94 | 94 | } |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | */ |
101 | 101 | public function setCancelUrl(Url $url): self |
102 | 102 | { |
103 | - $this->payload['cancel_url'] = (string)$url; |
|
103 | + $this->payload['cancel_url'] = (string) $url; |
|
104 | 104 | |
105 | 105 | return $this; |
106 | 106 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function setStatusUrl(Url $url): self |
114 | 114 | { |
115 | - $this->payload['status_url'] = (string)$url; |
|
115 | + $this->payload['status_url'] = (string) $url; |
|
116 | 116 | |
117 | 117 | return $this; |
118 | 118 | } |
@@ -126,8 +126,8 @@ discard block |
||
126 | 126 | public function enableRecurringBilling(RecurringBillingNote $note, Money $money): self |
127 | 127 | { |
128 | 128 | $this->payload['ondemand_max_amount'] = $this->formatToFloat($money); |
129 | - $this->payload['ondemand_max_currency'] = (string)$money->getCurrency(); |
|
130 | - $this->payload['ondemand_note'] = (string)$note; |
|
129 | + $this->payload['ondemand_max_currency'] = (string) $money->getCurrency(); |
|
130 | + $this->payload['ondemand_note'] = (string) $note; |
|
131 | 131 | |
132 | 132 | return $this; |
133 | 133 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | public function __construct(Money $amount, Description $description) |
26 | 26 | { |
27 | 27 | $this->payload = [ |
28 | - 'currency' => (string)$amount->getCurrency(), |
|
28 | + 'currency' => (string) $amount->getCurrency(), |
|
29 | 29 | 'amount' => $this->formatToFloat($amount), |
30 | 30 | 'subject' => $description->getSubject(), |
31 | 31 | 'note' => $description->getText(), |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function setReferenceTransaction(TransactionID $transactionId): self |
43 | 43 | { |
44 | - $this->payload['frn_trn_id'] = (string)$transactionId; |
|
44 | + $this->payload['frn_trn_id'] = (string) $transactionId; |
|
45 | 45 | |
46 | 46 | return $this; |
47 | 47 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function setOriginalTransactionId(TransactionID $transactionId): self |
56 | 56 | { |
57 | - $this->payload['transaction_id'] = (string)$transactionId; |
|
57 | + $this->payload['transaction_id'] = (string) $transactionId; |
|
58 | 58 | |
59 | 59 | return $this; |
60 | 60 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function setSkrillOriginalTransactionId(TransactionID $transactionId): self |
72 | 72 | { |
73 | - $this->payload['mb_transaction_id'] = (string)$transactionId; |
|
73 | + $this->payload['mb_transaction_id'] = (string) $transactionId; |
|
74 | 74 | |
75 | 75 | return $this; |
76 | 76 | } |
@@ -20,6 +20,6 @@ |
||
20 | 20 | { |
21 | 21 | $formatter = new DecimalMoneyFormatter(new ISOCurrencies()); |
22 | 22 | |
23 | - return (float)$formatter->format($money); |
|
23 | + return (float) $formatter->format($money); |
|
24 | 24 | } |
25 | 25 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | public function __construct(TransactionID $transactionId, Money $amount = null) |
28 | 28 | { |
29 | 29 | $this->payload = [ |
30 | - 'transaction_id' => (string)$transactionId, |
|
30 | + 'transaction_id' => (string) $transactionId, |
|
31 | 31 | ]; |
32 | 32 | |
33 | 33 | if (null != $amount) { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function setStatusUrl(Url $url): self |
44 | 44 | { |
45 | - $this->payload['refund_status_url'] = (string)$url; |
|
45 | + $this->payload['refund_status_url'] = (string) $url; |
|
46 | 46 | |
47 | 47 | return $this; |
48 | 48 | } |