@@ -59,7 +59,7 @@ |
||
| 59 | 59 | ->childNodes->item(0); // Get Result Object; |
| 60 | 60 | $response = $dom->saveXML($response); |
| 61 | 61 | $response = preg_replace('/\<(\/?)\w+:(\w+\/?)\>/', '<$1$2>', $response); |
| 62 | - $response = simplexml_load_string($response); |
|
| 62 | + $response = simplexml_load_string($response); |
|
| 63 | 63 | $response = json_encode($response, JSON_PRETTY_PRINT); |
| 64 | 64 | return json_decode($response); |
| 65 | 65 | } |
@@ -537,7 +537,7 @@ |
||
| 537 | 537 | $matches += ['prefix' => null, 'sufix' => '']; |
| 538 | 538 | $chars = str_split($matches['number'], 1); |
| 539 | 539 | $sums = str_split("86423597", 1); |
| 540 | - $rest = array_reduce($chars, function (&$sum, $a) use (&$sums) { |
|
| 540 | + $rest = array_reduce($chars, function(&$sum, $a) use (&$sums) { |
|
| 541 | 541 | return $sum += $a * array_shift($sums); |
| 542 | 542 | }) % 11; |
| 543 | 543 | $dv = 5; |