Test Failed
Push — master ( 97fe96...184e33 )
by Roberto
02:54
created
src/Factories/EvtTabLotacao.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 
18 18
 use NFePHP\Common\Certificate;
19 19
 use NFePHP\eSocial\Common\Factory;
20
-use NFePHP\eSocial\Common\FactoryId;
21 20
 use NFePHP\eSocial\Common\FactoryInterface;
22 21
 use stdClass;
23 22
 
Please login to merge, or discard this 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
         
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
             $this->dom->addChild(
172 172
                 $nova,
173 173
                 "fimValid",
174
-                ! empty($this->std->novavalidade->fimvalid)
174
+                !empty($this->std->novavalidade->fimvalid)
175 175
                     ? $this->std->novavalidade->fimvalid
176 176
                     : null,
177 177
                 false
Please login to merge, or discard this patch.
src/Factories/EvtTotConting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
         $this->dom->addChild(
124 124
             $ide,
125 125
             "email",
126
-            ! empty($this->std->email) ? $this->std->email : null,
126
+            !empty($this->std->email) ? $this->std->email : null,
127 127
             false
128 128
         );
129 129
         $this->node->appendChild($ide);
Please login to merge, or discard this patch.
src/Factories/EvtCAT.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 
18 18
 use NFePHP\Common\Certificate;
19 19
 use NFePHP\eSocial\Common\Factory;
20
-use NFePHP\eSocial\Common\FactoryId;
21 20
 use NFePHP\eSocial\Common\FactoryInterface;
22 21
 use stdClass;
23 22
 
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.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -344,6 +344,9 @@
 block discarded – undo
344 344
         $this->node->appendChild($ideVinculo);
345 345
     }
346 346
     
347
+    /**
348
+     * @return \DOMNode
349
+     */
347 350
     protected function tagCAT()
348 351
     {
349 352
         $cat = $this->dom->createElement("cat");
Please login to merge, or discard this patch.
src/Factories/EvtTabAmbiente.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/Common/Soap/SoapInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      * @param string $action
81 81
      * @param string $envelope
82 82
      * @param array $parameters
83
-      */
83
+     */
84 84
     public function send(
85 85
         $operation,
86 86
         $url,
Please login to merge, or discard this patch.
src/Common/FakePretty.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     public static function prettyPrint($response, $save = '')
14 14
     {
15 15
         $std = json_decode($response);
16
-        if (! empty($save)) {
16
+        if (!empty($save)) {
17 17
             file_put_contents(
18 18
                 "$save.xml",
19 19
                 $std->body
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $html .= $std->header;
47 47
         $html .= "<br>";
48 48
         $html .= '<h2>namespaces</h2>';
49
-        $an   = json_decode(json_encode($std->namespaces), true);
49
+        $an = json_decode(json_encode($std->namespaces), true);
50 50
         foreach ($an as $key => $nam) {
51 51
             $html .= "[$key] => $nam <br>";
52 52
         }
Please login to merge, or discard this patch.
src/Tools.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
         }
195 195
         foreach ($eventos as $evt) {
196 196
             //verifica se o evento pertence ao grupo indicado
197
-            if (! in_array($evt->alias(), $this->grupos[$grupo])) {
197
+            if (!in_array($evt->alias(), $this->grupos[$grupo])) {
198 198
                 throw new RuntimeException(
199 199
                     'O evento ' . $evt->alias() . ' não pertence a este grupo [ '
200 200
                     . $this->eventGroup[$grupo] . ' ].'
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -664,6 +664,9 @@
 block discarded – undo
664 664
         }
665 665
     }
666 666
     
667
+    /**
668
+     * @param string $request
669
+     */
667 670
     protected function sign($request)
668 671
     {
669 672
         $sign = Signer::sign(
Please login to merge, or discard this patch.
src/Factories/EvtDeslig.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 
18 18
 use NFePHP\Common\Certificate;
19 19
 use NFePHP\eSocial\Common\Factory;
20
-use NFePHP\eSocial\Common\FactoryId;
21 20
 use NFePHP\eSocial\Common\FactoryInterface;
22 21
 use stdClass;
23 22
 
Please login to merge, or discard this patch.
src/Factories/EvtAltContratual.php 1 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.