Passed
Push — master ( 969f54...b0574b )
by Roberto
44s queued 11s
created
src/CTe/Daevento.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,6 +99,9 @@  discard block
 block discarded – undo
99 99
         return $this->debugmode;
100 100
     }
101 101
 
102
+    /**
103
+     * @param string $xml
104
+     */
102 105
     protected function loadDoc($xml)
103 106
     {
104 107
         $this->dom = new \DomDocument;
@@ -246,7 +249,7 @@  discard block
 block discarded – undo
246 249
      * @param integer $x
247 250
      * @param integer $y
248 251
      * @param integer $pag
249
-     * @return integer
252
+     * @return double
250 253
      */
251 254
     private function header(
252 255
         $x,
@@ -511,7 +514,7 @@  discard block
 block discarded – undo
511 514
      * @param string $nome
512 515
      * @param string $destino
513 516
      * @param string $printer
514
-     * @return type
517
+     * @return string
515 518
      */
516 519
     public function printDAEventoCTe($nome = '', $destino = 'I', $printer = '')
517 520
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@
 block discarded – undo
259 259
         $maxW = $this->wPrint;
260 260
         //####################################################################################
261 261
         //coluna esquerda identificação do emitente
262
-        $w = round($maxW * 0.41, 0);// 80;
262
+        $w = round($maxW * 0.41, 0); // 80;
263 263
         if ($this->orientacao == 'P') {
264 264
             $aFont = array('font' => $this->fontePadrao, 'size' => 6, 'style' => 'I');
265 265
         } else {
Please login to merge, or discard this patch.
src/NFe/Daevento.php 2 patches
Doc Comments   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -122,6 +122,9 @@  discard block
 block discarded – undo
122 122
         return $this->pdf->getPdf();
123 123
     }
124 124
 
125
+    /**
126
+     * @param string $xml
127
+     */
125 128
     protected function loadDoc($xml)
126 129
     {
127 130
         $this->dom = new Dom();
@@ -241,9 +244,9 @@  discard block
 block discarded – undo
241 244
 
242 245
     /**
243 246
      * header
244
-     * @param  number $x
245
-     * @param  number $y
246
-     * @param  number $pag
247
+     * @param  integer $x
248
+     * @param  integer $y
249
+     * @param  integer $pag
247 250
      * @return number
248 251
      */
249 252
     private function header($x, $y, $pag)
@@ -474,8 +477,8 @@  discard block
 block discarded – undo
474 477
     /**
475 478
      * body
476 479
      *
477
-     * @param number $x
478
-     * @param number $y
480
+     * @param integer $x
481
+     * @param double $y
479 482
      */
480 483
     private function body($x, $y)
481 484
     {
@@ -501,7 +504,7 @@  discard block
 block discarded – undo
501 504
     /**
502 505
      * footer
503 506
      *
504
-     * @param number $x
507
+     * @param integer $x
505 508
      * @param number $y
506 509
      */
507 510
     private function footer($x, $y)
Please login to merge, or discard this patch.
Spacing   +17 added lines, -19 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $this->retEvento = $this->dom->getElementsByTagName("retEvento")->item(0);
133 133
         $this->rinfEvento = $this->retEvento->getElementsByTagName("infEvento")->item(0);
134 134
         $this->tpEvento = $this->infEvento->getElementsByTagName("tpEvento")->item(0)->nodeValue;
135
-        if (!in_array($this->tpEvento, ['110110','110111'])) {
135
+        if (!in_array($this->tpEvento, ['110110', '110111'])) {
136 136
             $this->errMsg = 'Evento não implementado ' . $tpEvento . ' !!';
137 137
             $this->errStatus = true;
138 138
             return false;
@@ -152,11 +152,9 @@  discard block
 block discarded – undo
152 152
         $this->cStat = $this->rinfEvento->getElementsByTagName("cStat")->item(0)->nodeValue;
153 153
         $this->xMotivo = $this->rinfEvento->getElementsByTagName("xMotivo")->item(0)->nodeValue;
154 154
         $this->CNPJDest = !empty($this->rinfEvento->getElementsByTagName("CNPJDest")->item(0)->nodeValue) ?
155
-            $this->rinfEvento->getElementsByTagName("CNPJDest")->item(0)->nodeValue :
156
-            '';
155
+            $this->rinfEvento->getElementsByTagName("CNPJDest")->item(0)->nodeValue : '';
157 156
         $this->CPFDest = !empty($this->rinfEvento->getElementsByTagName("CPFDest")->item(0)->nodeValue) ?
158
-            $this->rinfEvento->getElementsByTagName("CPFDest")->item(0)->nodeValue :
159
-            '';
157
+            $this->rinfEvento->getElementsByTagName("CPFDest")->item(0)->nodeValue : '';
160 158
         $this->dhRegEvento = $this->rinfEvento->getElementsByTagName("dhRegEvento")->item(0)->nodeValue;
161 159
         $this->nProt = $this->rinfEvento->getElementsByTagName("nProt")->item(0)->nodeValue;
162 160
     }
@@ -255,9 +253,9 @@  discard block
 block discarded – undo
255 253
         // coluna esquerda identificação do emitente
256 254
         $w = round($maxW * 0.41, 0); // 80;
257 255
         if ($this->orientacao == 'P') {
258
-            $aFont = ['font' => $this->fontePadrao,'size' => 6,'style' => 'I'];
256
+            $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => 'I'];
259 257
         } else {
260
-            $aFont = ['font' => $this->fontePadrao,'size' => 8,'style' => 'B'];
258
+            $aFont = ['font' => $this->fontePadrao, 'size' => 8, 'style' => 'B'];
261 259
         }
262 260
         $w1 = $w;
263 261
         $h = 32;
@@ -410,7 +408,7 @@  discard block
 block discarded – undo
410 408
                 . 'abaixo referenciada, está cancelada, solicitamos que sejam '
411 409
                 . 'aplicadas essas correções ao executar seus lançamentos fiscais.';
412 410
         }
413
-        $aFont = ['font' => $this->fontePadrao,'size' => 10,'style' => ''];
411
+        $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => ''];
414 412
         $this->pdf->textBox($x + 5, $y1, $maxW - 5, 20, $texto, $aFont, 'T', 'L', 0, '', false);
415 413
         // ############################################
416 414
         $x = $oldX;
@@ -421,7 +419,7 @@  discard block
 block discarded – undo
421 419
         if ($this->CPFDest != '') {
422 420
             $texto = 'CPF do Destinatário: ' . $this->formatField($this->CPFDest, "###.###.###-##");
423 421
         }
424
-        $aFont = ['font' => $this->fontePadrao,'size' => 12,'style' => 'B'];
422
+        $aFont = ['font' => $this->fontePadrao, 'size' => 12, 'style' => 'B'];
425 423
         $this->pdf->textBox($x + 2, $y + 13, $w2, 8, $texto, $aFont, 'T', 'L', 0, '');
426 424
         $numNF = substr($this->chNFe, 25, 9);
427 425
         $serie = substr($this->chNFe, 22, 3);
@@ -437,7 +435,7 @@  discard block
 block discarded – undo
437 435
         $this->pdf->code128($x + (($w - $bW) / 2), $y + 2, $this->chNFe, $bW, $bH);
438 436
         $this->pdf->setFillColor(255, 255, 255);
439 437
         $y1 = $y + 2 + $bH;
440
-        $aFont = ['font' => $this->fontePadrao,'size' => 10,'style' => ''];
438
+        $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => ''];
441 439
         $texto = $this->formatField($this->chNFe, $this->formatoChave);
442 440
         $this->pdf->textBox($x, $y1, $w - 2, $h, $texto, $aFont, 'T', 'C', 0, '');
443 441
         $retVal = $sY + 2;
@@ -445,7 +443,7 @@  discard block
 block discarded – undo
445 443
             $x = $oldX;
446 444
             $this->pdf->textBox($x, $sY, $maxW, 15);
447 445
             $texto = $this->xCondUso;
448
-            $aFont = ['font' => $this->fontePadrao,'size' => 8,'style' => 'I'];
446
+            $aFont = ['font' => $this->fontePadrao, 'size' => 8, 'style' => 'I'];
449 447
             $this->pdf->textBox($x + 2, $sY + 2, $maxW - 2, 15, $texto, $aFont, 'T', 'L', 0, '', false);
450 448
             $retVal = $sY + 2;
451 449
         }
@@ -461,9 +459,9 @@  discard block
 block discarded – undo
461 459
             $w = $maxW - (2 * $x);
462 460
             $this->pdf->setTextColor(90, 90, 90);
463 461
             $texto = "SEM VALOR FISCAL";
464
-            $aFont = ['font' => $this->fontePadrao,'size' => 48,'style' => 'B'];
462
+            $aFont = ['font' => $this->fontePadrao, 'size' => 48, 'style' => 'B'];
465 463
             $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
466
-            $aFont = ['font' => $this->fontePadrao,'size' => 30,'style' => 'B'];
464
+            $aFont = ['font' => $this->fontePadrao, 'size' => 30, 'style' => 'B'];
467 465
             $texto = "AMBIENTE DE HOMOLOGAÇÃO";
468 466
             $this->pdf->textBox($x, $y + 14, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
469 467
             $this->pdf->setTextColor(0, 0, 0);
@@ -485,7 +483,7 @@  discard block
 block discarded – undo
485 483
         } else {
486 484
             $texto = 'JUSTIFICATIVA DO CANCELAMENTO';
487 485
         }
488
-        $aFont = ['font' => $this->fontePadrao,'size' => 10,'style' => 'B'];
486
+        $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B'];
489 487
         $this->pdf->textBox($x, $y, $maxW, 5, $texto, $aFont, 'T', 'L', 0, '', false);
490 488
         $y += 5;
491 489
         $this->pdf->textBox($x, $y, $maxW, 190);
@@ -494,7 +492,7 @@  discard block
 block discarded – undo
494 492
         } elseif ($this->tpEvento == '110111') {
495 493
             $texto = $this->xJust;
496 494
         }
497
-        $aFont = ['font' => $this->fontePadrao,'size' => 12,'style' => 'B'];
495
+        $aFont = ['font' => $this->fontePadrao, 'size' => 12, 'style' => 'B'];
498 496
         $this->pdf->textBox($x + 2, $y + 2, $maxW - 2, 150, $texto, $aFont, 'T', 'L', 0, '', false);
499 497
     }
500 498
 
@@ -519,15 +517,15 @@  discard block
 block discarded – undo
519 517
                 . "eletrônico XML e pode ser consultada através dos Portais "
520 518
                 . "das SEFAZ.";
521 519
         }
522
-        $aFont = ['font' => $this->fontePadrao,'size' => 10,'style' => 'I'];
520
+        $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'I'];
523 521
         $this->pdf->textBox($x, $y, $w, 20, $texto, $aFont, 'T', 'C', 0, '', false);
524 522
         $y = $this->hPrint - 4;
525 523
         $texto = "Impresso em  " . date('d/m/Y   H:i:s');
526 524
         $w = $this->wPrint - 4;
527
-        $aFont = ['font' => $this->fontePadrao,'size' => 6,'style' => 'I'];
525
+        $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => 'I'];
528 526
         $this->pdf->textBox($x, $y, $w, 4, $texto, $aFont, 'T', 'L', 0, '');
529
-        $texto = $this->creditos .  "  Powered by NFePHP®";
530
-        $aFont = ['font' => $this->fontePadrao,'size' => 6,'style' => 'I'];
527
+        $texto = $this->creditos . "  Powered by NFePHP®";
528
+        $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => 'I'];
531 529
         $this->pdf->textBox($x, $y, $w, 4, $texto, $aFont, 'T', 'R', 0, 'http://www.nfephp.org');
532 530
     }
533 531
 }
Please login to merge, or discard this patch.