@@ -542,7 +542,7 @@ |
||
| 542 | 542 | $sum += $char * $sums[$i]; |
| 543 | 543 | } |
| 544 | 544 | $rest = $sum % 11; |
| 545 | - $dv = $rest == 0 ? '5' : ( $rest == 1 ? 0 : 11 - $rest ); |
|
| 545 | + $dv = $rest == 0 ? '5' : ($rest == 1 ? 0 : 11 - $rest); |
|
| 546 | 546 | return vsprintf('%s%s%s%s', [$matches['prefix'], $matches['number'], $dv, $matches['sufix']]); |
| 547 | 547 | } |
| 548 | 548 | |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | public function send($url, array $action = [], $request = '', $namespaces = [], $auth = []) |
| 11 | 11 | { |
| 12 | 12 | $this->request = $this->xmlToStd($this->envelop($request, $namespaces)); |
| 13 | - $params = [ |
|
| 13 | + $params = [ |
|
| 14 | 14 | 'encoding' => 'UTF-8', |
| 15 | 15 | 'verifypeer' => false, |
| 16 | 16 | 'verifyhost' => false, |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | ->childNodes->item(0); // Get Result Object; |
| 67 | 67 | $response = $dom->saveXML($response); |
| 68 | 68 | $response = preg_replace('/\<(\/?)\w+:(\w+\/?)\>/', '<$1$2>', $response); |
| 69 | - $response = simplexml_load_string($response); |
|
| 69 | + $response = simplexml_load_string($response); |
|
| 70 | 70 | $response = json_encode($response, JSON_PRETTY_PRINT); |
| 71 | 71 | return json_decode($response); |
| 72 | 72 | } |