@@ -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 | /** |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | if ($this->validateAlpha($lastName)) { |
42 | - $this->lastName = $lastName; |
|
42 | + $this->lastName = $lastName; |
|
43 | 43 | } |
44 | 44 | } |
45 | 45 | |
@@ -68,6 +68,6 @@ discard block |
||
68 | 68 | */ |
69 | 69 | private function validateAlpha($value): bool |
70 | 70 | { |
71 | - return (bool)preg_match('/^([a-z])+$/i', $value); |
|
71 | + return (bool) preg_match('/^([a-z])+$/i', $value); |
|
72 | 72 | } |
73 | 73 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | private function validateAddress($value): bool |
107 | 107 | { |
108 | - return (bool)preg_match("/^([a-z0-9\'\.\-\s\,])+$/i", $value); |
|
108 | + return (bool) preg_match("/^([a-z0-9\'\.\-\s\,])+$/i", $value); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
@@ -143,6 +143,6 @@ discard block |
||
143 | 143 | */ |
144 | 144 | private function validateAlphaNum($value): bool |
145 | 145 | { |
146 | - return (bool)preg_match('/^([a-z0-9])+$/i', $value); |
|
146 | + return (bool) preg_match('/^([a-z0-9])+$/i', $value); |
|
147 | 147 | } |
148 | 148 | } |
@@ -38,10 +38,10 @@ |
||
38 | 38 | ) |
39 | 39 | { |
40 | 40 | $this->payload = [ |
41 | - 'email' => (string)$email, |
|
41 | + 'email' => (string) $email, |
|
42 | 42 | 'firstName' => $customer->getFirstName(), |
43 | 43 | 'lastName' => $customer->getLastName(), |
44 | - 'dateOfBirth' => (string)$dateOfBirth, |
|
44 | + 'dateOfBirth' => (string) $dateOfBirth, |
|
45 | 45 | 'postCode' => $address->getPostCode(), |
46 | 46 | 'country' => $address->getCountry(), |
47 | 47 | 'houseNumber' => $address->getHouseNumber(), |