@@ -32,10 +32,10 @@ |
||
| 32 | 32 | MerchantID $merchantId, CustomerId $customerId = null) |
| 33 | 33 | { |
| 34 | 34 | $this->payload = [ |
| 35 | - 'email' => (string)$email, |
|
| 35 | + 'email' => (string) $email, |
|
| 36 | 36 | 'firstName' => $customer->getFirstName(), |
| 37 | 37 | 'lastName' => $customer->getLastName(), |
| 38 | - 'dateOfBirth' => (string)$dateOfBirth, |
|
| 38 | + 'dateOfBirth' => (string) $dateOfBirth, |
|
| 39 | 39 | 'postCode' => $address->getPostCode(), |
| 40 | 40 | 'country' => $address->getCountry(), |
| 41 | 41 | 'houseNumber' => $address->getHouseNumber(), |
@@ -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 | } |
@@ -27,9 +27,9 @@ discard block |
||
| 27 | 27 | public function __construct(RecurringPaymentID $paymentId, TransactionID $transactionId, Money $amount) |
| 28 | 28 | { |
| 29 | 29 | $this->payload = [ |
| 30 | - 'frn_trn_id' => (string)$transactionId, |
|
| 31 | - 'rec_payment_id' => (string)$paymentId, |
|
| 32 | - 'currency' => (string)$amount->getCurrency(), |
|
| 30 | + 'frn_trn_id' => (string) $transactionId, |
|
| 31 | + 'rec_payment_id' => (string) $paymentId, |
|
| 32 | + 'currency' => (string) $amount->getCurrency(), |
|
| 33 | 33 | 'amount' => $this->formatToFloat($amount), |
| 34 | 34 | ]; |
| 35 | 35 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | public function setStatusUrl(Url $url): self |
| 43 | 43 | { |
| 44 | - $this->payload['ondemand_status_url'] = (string)$url; |
|
| 44 | + $this->payload['ondemand_status_url'] = (string) $url; |
|
| 45 | 45 | |
| 46 | 46 | return $this; |
| 47 | 47 | } |
@@ -43,10 +43,10 @@ |
||
| 43 | 43 | $xml = new SimpleXMLElement($response->getBody()->getContents()); |
| 44 | 44 | |
| 45 | 45 | if ($xml->xpath('error/error_msg')) { |
| 46 | - throw SkrillResponseException::fromSkillError(((string)$xml->error->error_msg)); |
|
| 46 | + throw SkrillResponseException::fromSkillError(((string) $xml->error->error_msg)); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - return self::createFromString((string)$xml->sid); |
|
| 49 | + return self::createFromString((string) $xml->sid); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |