Test Failed
Push — master ( 0f22aa...14cb45 )
by Roberto
02:44 queued 01:39
created
src/Factories/EvtTSVInicio.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 EvtTSVInicio Event S-2300 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/EvtTSVTermino.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 EvtTSVTermino Event S-2399 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/EvtIrrfBenef.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 EvtIrrfBenef Event S-5002 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/EvtTSVAltContr.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 EvtTSVAltContr Event S-2306 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/Common/Factory.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,9 +107,9 @@
 block discarded – undo
107 107
      * @var Certificate | null
108 108
      */
109 109
     protected $certificate;
110
-     /**
111
-     * @var string
112
-     */
110
+        /**
111
+         * @var string
112
+         */
113 113
     protected $method_name;
114 114
     
115 115
     /**
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         //set properties from config
129 129
         $stdConf = json_decode($config);
130 130
         $this->date = new DateTime();
131
-        if (! empty($date)) {
131
+        if (!empty($date)) {
132 132
             $this->date = new DateTime($date);
133 133
         }
134 134
         $this->tpAmb = $stdConf->tpAmb;
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $this->nmRazao = $stdConf->empregador->nmRazao;
140 140
         $this->layoutStr = $this->strLayoutVer($this->layout);
141 141
         $this->certificate = $certificate;
142
-        if (empty($std) || ! is_object($std)) {
142
+        if (empty($std) || !is_object($std)) {
143 143
             throw new \InvalidArgumentException(
144 144
                 'Você deve passar os parâmetros num stdClass.'
145 145
             );
@@ -191,15 +191,15 @@  discard block
 block discarded – undo
191 191
         //v02_05_00
192 192
         if (substr($layout, 0, 1) == 'S') {
193 193
             $str  = 'v_S_';
194
-            $fils = explode('.', substr($layout, 2, strlen($layout)-1));
194
+            $fils = explode('.', substr($layout, 2, strlen($layout) - 1));
195 195
             foreach ($fils as $fil) {
196
-                $str .= str_pad($fil, 2, '0', STR_PAD_LEFT).'_';
196
+                $str .= str_pad($fil, 2, '0', STR_PAD_LEFT) . '_';
197 197
             }
198 198
         } else {
199 199
             $fils = explode('.', $layout);
200 200
             $str  = 'v';
201 201
             foreach ($fils as $fil) {
202
-                $str .= str_pad($fil, 2, '0', STR_PAD_LEFT).'_';
202
+                $str .= str_pad($fil, 2, '0', STR_PAD_LEFT) . '_';
203 203
             }
204 204
         }
205 205
         return substr($str, 0, -1);
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      */
233 233
     protected function validInputData($data)
234 234
     {
235
-        if (! is_file($this->jsonschema)) {
235
+        if (!is_file($this->jsonschema)) {
236 236
             return true;
237 237
         }
238 238
         $errors = JsonValidation::validate($data, $this->jsonschema, $this->definitions);
@@ -241,9 +241,9 @@  discard block
 block discarded – undo
241 241
         }
242 242
         $msg = '';
243 243
         foreach ($errors as $key => $error) {
244
-            $msg .= sprintf("[%s] %s\n", $error['property'], $error['message']). ";";
244
+            $msg .= sprintf("[%s] %s\n", $error['property'], $error['message']) . ";";
245 245
         }
246
-        $msg = substr($msg, 0, strlen($msg)-2);
246
+        $msg = substr($msg, 0, strlen($msg) - 2);
247 247
         throw new \Exception($msg);
248 248
     }
249 249
 
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
      */
392 392
     public function standardizeProperties(stdClass $data)
393 393
     {
394
-        if (! is_file($this->jsonschema)) {
394
+        if (!is_file($this->jsonschema)) {
395 395
             return $data;
396 396
         }
397 397
         $jsonSchemaObj = json_decode(file_get_contents($this->jsonschema));
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
     {
407 407
         $xml = $this->dom->saveXML($this->eSocial);
408 408
         $xml = Strings::clearXmlString($xml);
409
-        if (! empty($this->certificate)) {
409
+        if (!empty($this->certificate)) {
410 410
             $xml = Signer::sign(
411 411
                 $this->certificate,
412 412
                 $xml,
Please login to merge, or discard this patch.
src/Factories/Traits/TraitS5001.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $this->dom->addChild(
72 72
             $ideEvento,
73 73
             "nrRecArqBase",
74
-            ! empty($this->std->nrrecarqbase) ? $this->std->nrrecarqbase : null,
74
+            !empty($this->std->nrrecarqbase) ? $this->std->nrrecarqbase : null,
75 75
             false
76 76
         );
77 77
         $this->dom->addChild(
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                 $this->dom->addChild(
167 167
                     $infoCategIncid,
168 168
                     "matricula",
169
-                    ! empty($infocat->matricula) ? $infocat->matricula : null,
169
+                    !empty($infocat->matricula) ? $infocat->matricula : null,
170 170
                     false
171 171
                 );
172 172
                 $this->dom->addChild(
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                 $this->dom->addChild(
179 179
                     $infoCategIncid,
180 180
                     "indSimples",
181
-                    ! empty($infocat->indsimples) ? $infocat->indsimples : null,
181
+                    !empty($infocat->indsimples) ? $infocat->indsimples : null,
182 182
                     false
183 183
                 );
184 184
                 foreach ($infocat->infobasecs as $infobase) {
Please login to merge, or discard this patch.
src/Factories/Traits/TraitS2250.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 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(
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         );
120 120
         $this->node->appendChild($ideVinculo);
121 121
         $infoAvPrevio = $this->dom->createElement("infoAvPrevio");
122
-        if (! empty($this->std->infoavprevio->detavprevio)) {
122
+        if (!empty($this->std->infoavprevio->detavprevio)) {
123 123
             $detAvPrevio = $this->dom->createElement("detAvPrevio");
124 124
             $this->dom->addChild(
125 125
                 $detAvPrevio,
@@ -142,13 +142,13 @@  discard block
 block discarded – undo
142 142
             $this->dom->addChild(
143 143
                 $detAvPrevio,
144 144
                 "observacao",
145
-                ! empty($this->std->infoavprevio->detavprevio->observacao) ?
145
+                !empty($this->std->infoavprevio->detavprevio->observacao) ?
146 146
                     $this->std->infoavprevio->detavprevio->observacao : null,
147 147
                 false
148 148
             );
149 149
             $infoAvPrevio->appendChild($detAvPrevio);
150 150
         }
151
-        if (! empty($this->std->infoavprevio->cancavprevio)) {
151
+        if (!empty($this->std->infoavprevio->cancavprevio)) {
152 152
             $cancAvPrevio = $this->dom->createElement("cancAvPrevio");
153 153
             $this->dom->addChild(
154 154
                 $cancAvPrevio,
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             $this->dom->addChild(
160 160
                 $cancAvPrevio,
161 161
                 "observacao",
162
-                ! empty($this->std->infoavprevio->cancavprevio->observacao) ?
162
+                !empty($this->std->infoavprevio->cancavprevio->observacao) ?
163 163
                     $this->std->infoavprevio->cancavprevio->observacao : null,
164 164
                 false
165 165
             );
Please login to merge, or discard this patch.
src/Factories/Traits/TraitS5012.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         $this->dom->addChild(
82 82
             $infoIrrf,
83 83
             "nrRecArqBase",
84
-            ! empty($this->std->infoirrf->nrrecarqbase) ? $this->std->infoirrf->nrrecarqbase : '',
84
+            !empty($this->std->infoirrf->nrrecarqbase) ? $this->std->infoirrf->nrrecarqbase : '',
85 85
             false
86 86
         );
87 87
         $this->dom->addChild(
Please login to merge, or discard this patch.
src/Factories/Traits/TraitS2298.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $this->dom->addChild(
78 78
             $ideEvento,
79 79
             "nrRecibo",
80
-            ! empty($this->std->nrrecibo) ? $this->std->nrrecibo : null,
80
+            !empty($this->std->nrrecibo) ? $this->std->nrrecibo : null,
81 81
             false
82 82
         );
83 83
         $this->dom->addChild(
@@ -131,13 +131,13 @@  discard block
 block discarded – undo
131 131
         $this->dom->addChild(
132 132
             $infoReintegr,
133 133
             "nrProcJud",
134
-            ! empty($this->std->nrprocjud) ? $this->std->nrprocjud : null,
134
+            !empty($this->std->nrprocjud) ? $this->std->nrprocjud : null,
135 135
             false
136 136
         );
137 137
         $this->dom->addChild(
138 138
             $infoReintegr,
139 139
             "nrLeiAnistia",
140
-            ! empty($this->std->nrleianistia) ? $this->std->nrleianistia : null,
140
+            !empty($this->std->nrleianistia) ? $this->std->nrleianistia : null,
141 141
             false
142 142
         );
143 143
         $this->dom->addChild(
Please login to merge, or discard this patch.