Completed
Push — master ( 6c3f8e...242f8f )
by Eduardo
02:56
created
src/Entities/PostalObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -542,7 +542,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Soap/SoapNative.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.