@@ -84,7 +84,7 @@ |
||
84 | 84 | |
85 | 85 | public function getValidUntil() |
86 | 86 | { |
87 | - return isset($this->data['DATA_EXPI']) ? substr($this->data['DATA_EXPI'], 0, 4) . '-' . substr($this->data['DATA_EXPI'], 4, 2) . '-' . substr($this->data['DATA_EXPI'], 6) : ''; |
|
87 | + return isset($this->data['DATA_EXPI']) ? substr($this->data['DATA_EXPI'], 0, 4).'-'.substr($this->data['DATA_EXPI'], 4, 2).'-'.substr($this->data['DATA_EXPI'], 6) : ''; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | public function getSalesSlip($delimeter = "\n", $begin = '', $end = '') |
39 | 39 | { |
40 | - return $begin . str_replace('@', $delimeter, urldecode(substr($this->getMessage(), 1))) . $end; |
|
40 | + return $begin.str_replace('@', $delimeter, urldecode(substr($this->getMessage(), 1))).$end; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | public function getTransactionReference() |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | { |
66 | 66 | $result = []; |
67 | 67 | preg_match('/\+VALOR:\+*?(?<int>[\d\.]*?),(?<dec>\d*?)@/', $this->getMessage(), $result); |
68 | - return isset($result['int']) ? floatval(str_replace('.', '', $result['int']) . '.' . $result['dec']) : null; |
|
68 | + return isset($result['int']) ? floatval(str_replace('.', '', $result['int']).'.'.$result['dec']) : null; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | public function getEndpoint($method) |
16 | 16 | { |
17 | - return $this->getTestMode() ? $this->endpointTest . $method . "Tst" : $this->endpoint . $method; |
|
17 | + return $this->getTestMode() ? $this->endpointTest.$method."Tst" : $this->endpoint.$method; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | public function getApiKey() |