@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | $baseUrl = $parsedBaseUrl['scheme']. |
| 51 | 51 | '://'.rawurlencode($this->username).':'.rawurlencode($this->password).'@'.$parsedBaseUrl['host']; |
| 52 | 52 | |
| 53 | - $this->baseUrl = $baseUrl; |
|
| 53 | + $this->baseUrl = $baseUrl; |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | /** |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | public function doRequest($method, $uri, array $options = null) |
| 259 | 259 | { |
| 260 | 260 | $url = $this->baseUrl.$uri; |
| 261 | - $options = $options ? : []; |
|
| 261 | + $options = $options ?: []; |
|
| 262 | 262 | $defaultOptions = []; |
| 263 | 263 | $options = array_merge($defaultOptions, $options); |
| 264 | 264 | $client = $this->getClient(); |
@@ -330,7 +330,7 @@ |
||
| 330 | 330 | /** |
| 331 | 331 | * @return array |
| 332 | 332 | */ |
| 333 | - public function getTransactionInfo() : ?array |
|
| 333 | + public function getTransactionInfo() : ? array |
|
| 334 | 334 | { |
| 335 | 335 | return $this->transactionInfo; |
| 336 | 336 | } |
@@ -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 | } |