Test Setup Failed
Push — master ( a7eee3...9328fa )
by Roberto
09:09 queued 15s
created
src/Common/Soap/SoapCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 {
23 23
     public static function info($code)
24 24
     {
25
-        $codes = (array) json_decode(file_get_contents(__DIR__.'/httpcodes.json'), true);
25
+        $codes = (array) json_decode(file_get_contents(__DIR__ . '/httpcodes.json'), true);
26 26
         if (array_key_exists($code, $codes)) {
27 27
             return $codes[$code];
28 28
         }
Please login to merge, or discard this patch.
src/Factories/EvtTabProcesso.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         $this->node->insertBefore($ideEvento, $ideContri);
74 74
         //tag deste evento em particular
75 75
         $info = $this->dom->createElement("infoProcesso");
76
-        $ideProcesso  = $this->dom->createElement("ideProcesso");
76
+        $ideProcesso = $this->dom->createElement("ideProcesso");
77 77
         $this->dom->addChild(
78 78
             $ideProcesso,
79 79
             "tpProc",
Please login to merge, or discard this patch.
src/Common/ProcessNumber.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $x = substr($input, 5, 6);
56 56
         $y = substr($input, 11, 4);
57 57
         $dd = substr($input, -2);
58
-        $value = $n.$x.$y;
58
+        $value = $n . $x . $y;
59 59
         $a = str_split($value);
60 60
         $soma = 0;
61 61
         $i = 16;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         if ($m2 > 9) {
79 79
             $m2 -= 10;
80 80
         }
81
-        return $m1.$m2;
81
+        return $m1 . $m2;
82 82
     }
83 83
     
84 84
     /**
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
      */
107 107
     protected static function clearString($input, $lenght)
108 108
     {
109
-        $input = str_replace(['-','/','.'], '', $input);
110
-        $input = substr($input, 0, $lenght-1);
109
+        $input = str_replace(['-', '/', '.'], '', $input);
110
+        $input = substr($input, 0, $lenght - 1);
111 111
         $input = str_pad($input, $lenght, '0', STR_PAD_RIGHT);
112 112
         if (!preg_match('/^[0-9]+$/', $input)) {
113 113
             throw new \InvalidArgumentException("O numero do processo tem estrutura incorreta.");
Please login to merge, or discard this patch.
src/Factories/Traits/RegraNomeValido.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $part = explode(' ', $name);
35 35
         if (count($part) > 14) {
36 36
             $name = '';
37
-            for ($x=0; $x<=14; $x++) {
37
+            for ($x = 0; $x <= 14; $x++) {
38 38
                 //não permite parte com maisnde 21 caracteres (regra 6)
39 39
                 if (strlen($part[$x]) > 21) {
40 40
                     $part[$x] = substr($part[$x], 0, 21);
Please login to merge, or discard this patch.
src/Common/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
             return true;
242 242
         }
243 243
         $validator = new JsonValid();
244
-        $validator->check($data, (object)['$ref' => 'file://' . $this->jsonschema]);
244
+        $validator->check($data, (object) ['$ref' => 'file://' . $this->jsonschema]);
245 245
         if (!$validator->isValid()) {
246 246
             $msg = "";
247 247
             foreach ($validator->getErrors() as $error) {
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
             $this->dom->addChild(
296 296
                 $ideContri,
297 297
                 "tpInsc",
298
-                (string)$this->tpInsc,
298
+                (string) $this->tpInsc,
299 299
                 true
300 300
             );
301 301
             $this->dom->addChild(
Please login to merge, or discard this patch.
src/Common/Soap/SoapCurl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
                 curl_setopt($oCurl, CURLOPT_KEYPASSWD, $this->temppass);
79 79
             }
80 80
             curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, true);
81
-            if (! empty($envelope)) {
81
+            if (!empty($envelope)) {
82 82
                 curl_setopt($oCurl, CURLOPT_POST, true);
83 83
                 curl_setopt($oCurl, CURLOPT_POSTFIELDS, $envelope);
84 84
                 curl_setopt($oCurl, CURLOPT_HTTPHEADER, $parameters);
Please login to merge, or discard this patch.
src/Common/Soap/SoapBase.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -324,9 +324,9 @@  discard block
 block discarded – undo
324 324
         if ($this->proxyIP != '') {
325 325
             curl_setopt($oCurl, CURLOPT_HTTPPROXYTUNNEL, 1);
326 326
             curl_setopt($oCurl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
327
-            curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP.':'.$this->proxyPort);
327
+            curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP . ':' . $this->proxyPort);
328 328
             if ($this->proxyUser != '') {
329
-                curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser.':'.$this->proxyPass);
329
+                curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser . ':' . $this->proxyPass);
330 330
                 curl_setopt($oCurl, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);
331 331
             }
332 332
         }
@@ -356,9 +356,9 @@  discard block
 block discarded – undo
356 356
             );
357 357
         }
358 358
         $this->certsdir = $this->certificate->getCnpj() . '/certs/';
359
-        $this->prifile = $this->certsdir. Strings::randomString(10).'.pem';
360
-        $this->pubfile = $this->certsdir . Strings::randomString(10).'.pem';
361
-        $this->certfile = $this->certsdir . Strings::randomString(10).'.pem';
359
+        $this->prifile = $this->certsdir . Strings::randomString(10) . '.pem';
360
+        $this->pubfile = $this->certsdir . Strings::randomString(10) . '.pem';
361
+        $this->certfile = $this->certsdir . Strings::randomString(10) . '.pem';
362 362
         $ret = true;
363 363
         $private = $this->certificate->privateKey;
364 364
         if ($this->encriptPrivateKey) {
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
         //utilize a API. Outra solução para remover arquivos "perdidos" pode ser
411 411
         //encontrada oportunamente.
412 412
         $dt = new \DateTime();
413
-        $tint = new \DateInterval("PT".$this->waitingTime."M");
413
+        $tint = new \DateInterval("PT" . $this->waitingTime . "M");
414 414
         $tint->invert = 1;
415 415
         $tsLimit = $dt->add($tint)->getTimestamp();
416 416
         foreach ($contents as $item) {
Please login to merge, or discard this patch.
src/Factories/EvtInfoContri.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             true
88 88
         );
89 89
         if ($this->std->modo == 'INC') {
90
-           // $this->std->fimvalid = null;
90
+            // $this->std->fimvalid = null;
91 91
         }
92 92
         $this->dom->addChild(
93 93
             $idePeriodo,
Please login to merge, or discard this patch.
src/Tools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1199,6 +1199,6 @@
 block discarded – undo
1199 1199
         foreach ($required as $key => $regex) {
1200 1200
             $compl .= $std->$key . '/';
1201 1201
         }
1202
-        return substr($compl, 0, strlen($compl)-1);
1202
+        return substr($compl, 0, strlen($compl) - 1);
1203 1203
     }
1204 1204
 }
Please login to merge, or discard this patch.