@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | $body = $request->getParsedBody(); |
20 | 20 | $body = is_array($body) ? $body : []; |
21 | - if(isset($body['xml'])) { |
|
21 | + if (isset($body['xml'])) { |
|
22 | 22 | $callback = new XmlCallback($request); |
23 | 23 | } else { |
24 | 24 | $callback = new FormCallback($request); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | public function hydrateCurrencies(\SimpleXMLElement $xml) |
41 | 41 | { |
42 | - if(!isset($xml->Currencies) || !isset($xml->Currencies->Currency) || empty($xml->Currencies->Currency)) { |
|
42 | + if (!isset($xml->Currencies) || !isset($xml->Currencies->Currency) || empty($xml->Currencies->Currency)) { |
|
43 | 43 | return; |
44 | 44 | } |
45 | 45 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | public function hydrateXml(\SimpleXMLElement $xml) |
19 | 19 | { |
20 | - if(!isset($xml->CountryOfOrigin)) { |
|
20 | + if (!isset($xml->CountryOfOrigin)) { |
|
21 | 21 | return; |
22 | 22 | } |
23 | 23 |
@@ -72,7 +72,7 @@ |
||
72 | 72 | |
73 | 73 | public function hydrateXml(\SimpleXMLElement $xml) |
74 | 74 | { |
75 | - if(!isset($xml->PaymentNatureService)) { |
|
75 | + if (!isset($xml->PaymentNatureService)) { |
|
76 | 76 | return; |
77 | 77 | } |
78 | 78 |
@@ -52,7 +52,7 @@ |
||
52 | 52 | |
53 | 53 | public function hydrateXml(\SimpleXMLElement $xml) |
54 | 54 | { |
55 | - if(!isset($xml->CustomerInfo)) { |
|
55 | + if (!isset($xml->CustomerInfo)) { |
|
56 | 56 | return; |
57 | 57 | } |
58 | 58 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | public function hydrateXml(\SimpleXMLElement $xml) |
19 | 19 | { |
20 | - if(!isset($xml->CreditCardExpiry)) { |
|
20 | + if (!isset($xml->CreditCardExpiry)) { |
|
21 | 21 | return; |
22 | 22 | } |
23 | 23 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public static function simplePayload(array $payload) : array |
22 | 22 | { |
23 | - $payload = array_filter($payload, function ($val) { |
|
23 | + $payload = array_filter($payload, function($val) { |
|
24 | 24 | if ($val instanceof PayloadInterface) { |
25 | 25 | $val = $val->getPayload(); |
26 | 26 | } |