Test Failed
Push — master ( f0c7e6...bda9d2 )
by Roberto
05:52 queued 03:11
created
src/Common/Soap/SoapCurl.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -62,20 +62,20 @@  discard block
 block discarded – undo
62 62
             curl_setopt($oCurl, CURLOPT_HEADER, 1);
63 63
             curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, 0);
64 64
             curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, 0);
65
-            if (! $this->disablesec) {
65
+            if (!$this->disablesec) {
66 66
                 curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, 2);
67 67
                 if (is_file($this->casefaz)) {
68 68
                     curl_setopt($oCurl, CURLOPT_CAINFO, $this->casefaz);
69 69
                 }
70 70
             }
71 71
             curl_setopt($oCurl, CURLOPT_SSLVERSION, $this->soapprotocol);
72
-            curl_setopt($oCurl, CURLOPT_SSLCERT, $this->tempdir.$this->certfile);
73
-            curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir.$this->prifile);
74
-            if (! empty($this->temppass)) {
72
+            curl_setopt($oCurl, CURLOPT_SSLCERT, $this->tempdir . $this->certfile);
73
+            curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir . $this->prifile);
74
+            if (!empty($this->temppass)) {
75 75
                 curl_setopt($oCurl, CURLOPT_KEYPASSWD, $this->temppass);
76 76
             }
77 77
             curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, true);
78
-            if (! empty($envelope)) {
78
+            if (!empty($envelope)) {
79 79
                 curl_setopt($oCurl, CURLOPT_POST, true);
80 80
                 curl_setopt($oCurl, CURLOPT_POSTFIELDS, $envelope);
81 81
                 curl_setopt($oCurl, CURLOPT_HTTPHEADER, $parameters);
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
             $this->responseBody = trim(substr($response, $headsize));
95 95
             $this->saveDebugFiles(
96 96
                 $operation,
97
-                $this->requestHead."\n".$this->requestBody,
98
-                $this->responseHead."\n".$this->responseBody
97
+                $this->requestHead . "\n" . $this->requestBody,
98
+                $this->responseHead . "\n" . $this->responseBody
99 99
             );
100 100
         } catch (\Exception $e) {
101 101
             throw SoapException::unableToLoadCurl($e->getMessage());
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             if (intval($this->soaperror_code) == 0) {
105 105
                 $this->soaperror_code = 7;
106 106
             }
107
-            throw SoapException::soapFault($this->soaperror." [$url]", $this->soaperror_code);
107
+            throw SoapException::soapFault($this->soaperror . " [$url]", $this->soaperror_code);
108 108
         }
109 109
         if ($httpcode != 200) {
110 110
             if (intval($httpcode) == 0) {
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
         if ($this->proxyIP != '') {
124 124
             curl_setopt($oCurl, CURLOPT_HTTPPROXYTUNNEL, 1);
125 125
             curl_setopt($oCurl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
126
-            curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP.':'.$this->proxyPort);
126
+            curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP . ':' . $this->proxyPort);
127 127
             if ($this->proxyUser != '') {
128
-                curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser.':'.$this->proxyPass);
128
+                curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser . ':' . $this->proxyPass);
129 129
                 curl_setopt($oCurl, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);
130 130
             }
131 131
         }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         $dom->preserveWhiteSpace = false;
146 146
         $dom->loadXML($body);
147 147
         $faultstring = '';
148
-        $nodefault = ! empty($dom->getElementsByTagName('faultstring')->item(0))
148
+        $nodefault = !empty($dom->getElementsByTagName('faultstring')->item(0))
149 149
             ? $dom->getElementsByTagName('faultstring')->item(0)
150 150
             : '';
151 151
         if (!empty($nodefault)) {
@@ -171,9 +171,9 @@  discard block
 block discarded – undo
171 171
         curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, 0);
172 172
         curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, 0);
173 173
         curl_setopt($oCurl, CURLOPT_SSLVERSION, $this->soapprotocol);
174
-        curl_setopt($oCurl, CURLOPT_SSLCERT, $this->tempdir.$this->certfile);
175
-        curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir.$this->prifile);
176
-        if (! empty($this->temppass)) {
174
+        curl_setopt($oCurl, CURLOPT_SSLCERT, $this->tempdir . $this->certfile);
175
+        curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir . $this->prifile);
176
+        if (!empty($this->temppass)) {
177 177
             curl_setopt($oCurl, CURLOPT_KEYPASSWD, $this->temppass);
178 178
         }
179 179
         curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, true);
Please login to merge, or discard this patch.
src/Common/JsonValidation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         if (!is_file($jsonschema) || !is_file($definitions)) {
19 19
             return [];
20 20
         }
21
-        $jsonSchemaObject = json_decode((string)file_get_contents($jsonschema));
21
+        $jsonSchemaObject = json_decode((string) file_get_contents($jsonschema));
22 22
         $schemaStorage = new SchemaStorage();
23 23
         $schemaStorage->addSchema("file:{$definitions}", $jsonSchemaObject);
24 24
         $jsonValidator = new Validator(new Factory($schemaStorage));
Please login to merge, or discard this patch.
src/Factories/Traits/TraitS1202.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 
318 318
     /**
319 319
      * Add infosaudecolet to remunPerApur
320
-     * @param type $node
320
+     * @param \DOMElement $node
321 321
      * @param type $std
322 322
      * @return type
323 323
      */
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 
391 391
     /**
392 392
      * Add infoperant to dmDev
393
-     * @param type $node
393
+     * @param \DOMElement $node
394 394
      * @param type $std
395 395
      * @return type
396 396
      */
Please login to merge, or discard this patch.
src/Factories/Traits/TraitS2210.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -292,6 +292,9 @@  discard block
 block discarded – undo
292 292
         $this->node->appendChild($ideVinculo);
293 293
     }
294 294
 
295
+    /**
296
+     * @return \DOMNode
297
+     */
295 298
     protected function tagCAT()
296 299
     {
297 300
         $cat = $this->dom->createElement("cat");
@@ -373,6 +376,9 @@  discard block
 block discarded – undo
373 376
         return $cat;
374 377
     }
375 378
 
379
+    /**
380
+     * @return \DOMElement
381
+     */
376 382
     protected function tagLocalAcidente(\DOMElement &$cat)
377 383
     {
378 384
         $localAcidente = $this->dom->createElement("localAcidente");
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         $this->dom->addChild(
77 77
             $ideEvento,
78 78
             "nrRecibo",
79
-            ! empty($this->std->nrrecibo) ? $this->std->nrrecibo : null,
79
+            !empty($this->std->nrrecibo) ? $this->std->nrrecibo : null,
80 80
             false
81 81
         );
82 82
         $this->dom->addChild(
Please login to merge, or discard this patch.
src/Factories/EvtReintegr.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 /**
6 6
  * Class eSocial EvtReintegr Event S-2298 constructor
7
-
8 7
  * READ for 2.5.0 layout
9 8
  *
10 9
  * @category  library
Please login to merge, or discard this patch.
src/Factories/EvtExclusao.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 /**
6 6
  * Class eSocial EvtExclusao Event S-3000 constructor
7
-
8 7
  * Read for 2.5.0 layout
9 8
  *
10 9
  * @category  library
Please login to merge, or discard this patch.
src/Factories/EvtInsApo.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 /**
6 6
  * Class eSocial EvtInsApo Event S-2241 constructor
7
-
8 7
  * Não existe em 2.5.0 layout
9 8
  *
10 9
  * @category  library
Please login to merge, or discard this patch.
src/Factories/Traits/TraitS1060.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $this->dom->addChild(
106 106
             $ide,
107 107
             "fimValid",
108
-            ! empty($this->std->fimvalid) ? $this->std->fimvalid : null,
108
+            !empty($this->std->fimvalid) ? $this->std->fimvalid : null,
109 109
             false
110 110
         );
111 111
         $dados = null;
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             $this->dom->addChild(
160 160
                 $nova,
161 161
                 "fimValid",
162
-                ! empty($this->std->novavalidade->fimvalid)
162
+                !empty($this->std->novavalidade->fimvalid)
163 163
                     ? $this->std->novavalidade->fimvalid
164 164
                     : null,
165 165
                 false
Please login to merge, or discard this patch.
src/Factories/Traits/TraitS1280.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,6 +111,6 @@
 block discarded – undo
111 111
      */
112 112
     protected function toNodeS100()
113 113
     {
114
-         throw new \Exception("TODO !!");
114
+            throw new \Exception("TODO !!");
115 115
     }
116 116
 }
Please login to merge, or discard this patch.