Passed
Push — master ( 94620a...5a3272 )
by
unknown
01:27 queued 13s
created
src/Common/Webservices.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function __toString()
86 86
     {
87
-        return (string)$this->json;
87
+        return (string) $this->json;
88 88
     }
89 89
 
90 90
     /**
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $resp = simplexml_load_string($xml, null, LIBXML_NOCDATA);
97 97
         $aWS = [];
98 98
         foreach ($resp->children() as $element) {
99
-            $sigla = (string)$element->sigla;
99
+            $sigla = (string) $element->sigla;
100 100
             $aWS[$sigla] = [];
101 101
             if (isset($element->homologacao)) {
102 102
                 $aWS[$sigla] += $this->extract($element->homologacao, 'homologacao');
@@ -119,11 +119,11 @@  discard block
 block discarded – undo
119 119
     {
120 120
         $amb[$environment] = [];
121 121
         foreach ($node->children() as $children) {
122
-            $name = (string)$children->getName();
123
-            $method = (string)$children['method'];
124
-            $operation = (string)$children['operation'];
125
-            $version = (string)$children['version'];
126
-            $url = (string)$children[0];
122
+            $name = (string) $children->getName();
123
+            $method = (string) $children['method'];
124
+            $operation = (string) $children['operation'];
125
+            $version = (string) $children['version'];
126
+            $url = (string) $children[0];
127 127
             $operations = [
128 128
                 'method' => $method,
129 129
                 'operation' => $operation,
Please login to merge, or discard this patch.
src/Tools.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -438,8 +438,7 @@
 block discarded – undo
438 438
         $request = "<distDFeInt xmlns=\"$this->urlPortal\" versao=\"$this->urlVersion\">"
439 439
             . "<tpAmb>" . $this->tpAmb . "</tpAmb>"
440 440
             . ((strlen($this->config->cnpj) == 14) ?
441
-                "<CNPJ>" . $this->config->cnpj . "</CNPJ>" :
442
-                "<CPF>" . $this->config->cnpj . "</CPF>"
441
+                "<CNPJ>" . $this->config->cnpj . "</CNPJ>" : "<CPF>" . $this->config->cnpj . "</CPF>"
443 442
             )
444 443
             . $tagNSU . "</distDFeInt>";
445 444
         //valida o xml da requisição
Please login to merge, or discard this patch.
src/Make.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -247,8 +247,8 @@
 block discarded – undo
247 247
      */
248 248
     protected $tpAmb;    
249 249
     /**
250
-    * @type string
251
-    */
250
+     * @type string
251
+     */
252 252
     protected $csrt;
253 253
 
254 254
     /**
Please login to merge, or discard this patch.