| @@ -64,9 +64,8 @@ discard block | ||
| 64 | 64 | * @param string $sPathLogo Caminho para o arquivo do logo | 
| 65 | 65 | * @param string $sDestino Estabelece a direção do envio do documento PDF I-browser D-browser com download S- | 
| 66 | 66 | * @param string $sDirPDF Caminho para o diretorio de armazenamento dos arquivos PDF | 
| 67 | - * @param string $fonteDACTE Nome da fonte alternativa do DActe | |
| 68 | 67 | * @param array $aEnd array com o endereço do emitente | 
| 69 | - * @param number $mododebug 1-SIM e 0-Não (0 default) | |
| 68 | + * @param integer $mododebug 1-SIM e 0-Não (0 default) | |
| 70 | 69 | */ | 
| 71 | 70 | public function __construct( | 
| 72 | 71 | $docXML = '', | 
| @@ -142,7 +141,7 @@ discard block | ||
| 142 | 141 | * @param type $orientacao | 
| 143 | 142 | * @param type $papel | 
| 144 | 143 | * @param type $logoAlign | 
| 145 | - * @return type | |
| 144 | + * @return string | |
| 146 | 145 | */ | 
| 147 | 146 | public function monta($orientacao = '', $papel = 'A4', $logoAlign = 'C', $classPDF = false) | 
| 148 | 147 |      { | 
| @@ -244,10 +243,10 @@ discard block | ||
| 244 | 243 | |
| 245 | 244 | /** | 
| 246 | 245 | * header | 
| 247 | - * @param type $x | |
| 248 | - * @param type $y | |
| 249 | - * @param type $pag | |
| 250 | - * @return type | |
| 246 | + * @param integer $x | |
| 247 | + * @param integer $y | |
| 248 | + * @param integer $pag | |
| 249 | + * @return double | |
| 251 | 250 | */ | 
| 252 | 251 | private function headerCCe($x, $y, $pag) | 
| 253 | 252 |      { | 
| @@ -437,7 +436,7 @@ discard block | ||
| 437 | 436 | |
| 438 | 437 | /** | 
| 439 | 438 | * footer | 
| 440 | - * @param type $x | |
| 439 | + * @param integer $x | |
| 441 | 440 | * @param type $y | 
| 442 | 441 | */ | 
| 443 | 442 | private function footerCCe($x, $y) | 
| @@ -15,10 +15,9 @@ | ||
| 15 | 15 | * @author Roberto L. Machado <linux.rlm at gmail dot com> | 
| 16 | 16 | */ | 
| 17 | 17 | |
| 18 | -use Exception; | |
| 18 | +use NFePHP\DA\Legacy\Common; | |
| 19 | 19 | use NFePHP\DA\Legacy\Dom; | 
| 20 | 20 | use NFePHP\DA\Legacy\Pdf; | 
| 21 | -use NFePHP\DA\Legacy\Common; | |
| 22 | 21 | |
| 23 | 22 | class Dacanc extends Common | 
| 24 | 23 |  { | 
| @@ -71,7 +71,6 @@ discard block | ||
| 71 | 71 | * @param string $sPathLogo Caminho para o arquivo do logo | 
| 72 | 72 | * @param string $sDestino Estabelece a direção do envio do documento PDF I-browser D-browser com download S- | 
| 73 | 73 | * @param string $sDirPDF Caminho para o diretorio de armazenamento dos arquivos PDF | 
| 74 | - * @param string $fonteDACTE Nome da fonte alternativa do DACTE | |
| 75 | 74 | * @param array $aEnd array com o endereço do emitente | 
| 76 | 75 | * @param integer $mododebug 1-SIM e 0-Não (0 default) | 
| 77 | 76 | */ | 
| @@ -163,7 +162,6 @@ discard block | ||
| 163 | 162 | * @param string $orientacao | 
| 164 | 163 | * @param string $papel | 
| 165 | 164 | * @param string $logoAlign | 
| 166 | - * @param string $situacao_externa | |
| 167 | 165 | * @param string $classPDF | 
| 168 | 166 | * @return string | 
| 169 | 167 | */ | 
| @@ -290,7 +288,7 @@ discard block | ||
| 290 | 288 | * @param integer $x | 
| 291 | 289 | * @param integer $y | 
| 292 | 290 | * @param integer $pag | 
| 293 | - * @return integer | |
| 291 | + * @return double | |
| 294 | 292 | */ | 
| 295 | 293 | private function zCabecalho( | 
| 296 | 294 | $x, | 
| @@ -15,10 +15,8 @@ | ||
| 15 | 15 | * @author Roberto L. Machado <linux.rlm at gmail dot com> | 
| 16 | 16 | */ | 
| 17 | 17 | |
| 18 | -use Exception; | |
| 19 | -use NFePHP\DA\Legacy\Dom; | |
| 20 | -use NFePHP\DA\Legacy\Pdf; | |
| 21 | 18 | use NFePHP\DA\Legacy\Common; | 
| 19 | +use NFePHP\DA\Legacy\Pdf; | |
| 22 | 20 | |
| 23 | 21 | class Daevento extends Common | 
| 24 | 22 |  { | 
| @@ -7,6 +7,9 @@ discard block | ||
| 7 | 7 | * Author: Olivier PLATHEY * | 
| 8 | 8 | *******************************************************************************/ | 
| 9 | 9 | |
| 10 | +/** | |
| 11 | + * @param string $enc | |
| 12 | + */ | |
| 10 | 13 | function readMap($enc) | 
| 11 | 14 |  { | 
| 12 | 15 | //Read a map file | 
| @@ -159,6 +162,9 @@ discard block | ||
| 159 | 162 | return $fm; | 
| 160 | 163 | } | 
| 161 | 164 | |
| 165 | +/** | |
| 166 | + * @param boolean $symbolic | |
| 167 | + */ | |
| 162 | 168 | function makeFontDescriptor($fm, $symbolic) | 
| 163 | 169 |  { | 
| 164 | 170 | //Ascent | 
| @@ -263,6 +269,11 @@ discard block | ||
| 263 | 269 | return rtrim($s); | 
| 264 | 270 | } | 
| 265 | 271 | |
| 272 | +/** | |
| 273 | + * @param string $file | |
| 274 | + * @param string $s | |
| 275 | + * @param string $mode | |
| 276 | + */ | |
| 266 | 277 | function saveToFile($file, $s, $mode) | 
| 267 | 278 |  { | 
| 268 | 279 | $f = fopen($file, 'w'.$mode); | 
| @@ -164,6 +164,9 @@ discard block | ||
| 164 | 164 | /** | 
| 165 | 165 | * Code128 | 
| 166 | 166 | * Imprime barcode 128 | 
| 167 | + * @param double $x | |
| 168 | + * @param double $y | |
| 169 | + * @param integer $h | |
| 167 | 170 | */ | 
| 168 | 171 | public function code128($x, $y, $code, $w, $h) | 
| 169 | 172 |      { | 
| @@ -240,8 +243,8 @@ discard block | ||
| 240 | 243 | * rotate | 
| 241 | 244 | * Rotaciona para impressão paisagem (landscape) | 
| 242 | 245 | * @param number $angle | 
| 243 | - * @param number $x | |
| 244 | - * @param number $y | |
| 246 | + * @param integer $x | |
| 247 | + * @param integer $y | |
| 245 | 248 | */ | 
| 246 | 249 | public function rotate($angle, $x = -1, $y = -1) | 
| 247 | 250 |      { | 
| @@ -340,12 +343,12 @@ discard block | ||
| 340 | 343 | /** | 
| 341 | 344 | * arc | 
| 342 | 345 | * Desenha o arco para arredondar o canto do retangulo | 
| 343 | - * @param number $x1 | |
| 344 | - * @param number $y1 | |
| 345 | - * @param number $x2 | |
| 346 | - * @param number $y2 | |
| 347 | - * @param number $x3 | |
| 348 | - * @param number $y3 | |
| 346 | + * @param double $x1 | |
| 347 | + * @param double $y1 | |
| 348 | + * @param double $x2 | |
| 349 | + * @param double $y2 | |
| 350 | + * @param double $x3 | |
| 351 | + * @param double $y3 | |
| 349 | 352 | */ | 
| 350 | 353 | private function arc($x1, $y1, $x2, $y2, $x3, $y3) | 
| 351 | 354 |      { | 
| @@ -370,8 +373,8 @@ discard block | ||
| 370 | 373 | * @param number $y1 | 
| 371 | 374 | * @param number $x2 | 
| 372 | 375 | * @param number $y2 | 
| 373 | - * @param number $width | |
| 374 | - * @param number $nb | |
| 376 | + * @param integer $width | |
| 377 | + * @param integer $nb | |
| 375 | 378 | */ | 
| 376 | 379 | public function dashedRect($x1, $y1, $x2, $y2, $width = 1, $nb = 15) | 
| 377 | 380 |      { | 
| @@ -440,11 +443,11 @@ discard block | ||
| 440 | 443 | * @param number $w | 
| 441 | 444 | * @param number $h | 
| 442 | 445 | * @param string $txt | 
| 443 | - * @param string $border | |
| 446 | + * @param integer $border | |
| 444 | 447 | * @param string $align | 
| 445 | 448 | * @param boolean $fill | 
| 446 | - * @param number $maxline | |
| 447 | - * @param number $prn | |
| 449 | + * @param integer $maxline | |
| 450 | + * @param integer $prn | |
| 448 | 451 | * @return int | 
| 449 | 452 | */ | 
| 450 | 453 | private function drawRows($w, $h, $txt, $border = 0, $align = 'J', $fill = false, $maxline = 0, $prn = 0) | 
| @@ -626,10 +629,10 @@ discard block | ||
| 626 | 629 | * CellFit | 
| 627 | 630 | * Celula com escala horizontal caso o texto seja muito largo | 
| 628 | 631 | * @param number $w | 
| 629 | - * @param number $h | |
| 632 | + * @param integer $h | |
| 630 | 633 | * @param string $txt | 
| 631 | - * @param number $border | |
| 632 | - * @param number $ln | |
| 634 | + * @param integer $border | |
| 635 | + * @param integer $ln | |
| 633 | 636 | * @param string $align | 
| 634 | 637 | * @param boolean $fill | 
| 635 | 638 | * @param string $link | 
| @@ -681,10 +684,10 @@ discard block | ||
| 681 | 684 | * CellFitScale | 
| 682 | 685 | * Celula com escalamento horizontal somente se necessário | 
| 683 | 686 | * @param number $w | 
| 684 | - * @param number $h | |
| 687 | + * @param integer $h | |
| 685 | 688 | * @param string $txt | 
| 686 | - * @param number $border | |
| 687 | - * @param number $ln | |
| 689 | + * @param integer $border | |
| 690 | + * @param integer $ln | |
| 688 | 691 | * @param string $align | 
| 689 | 692 | * @param boolean $fill | 
| 690 | 693 | * @param string $link | 
| @@ -698,10 +701,10 @@ discard block | ||
| 698 | 701 | * CellFitScaleForce | 
| 699 | 702 | * Celula com escalamento forçado | 
| 700 | 703 | * @param number $w | 
| 701 | - * @param number $h | |
| 704 | + * @param integer $h | |
| 702 | 705 | * @param string $txt | 
| 703 | - * @param number $border | |
| 704 | - * @param number $ln | |
| 706 | + * @param integer $border | |
| 707 | + * @param integer $ln | |
| 705 | 708 | * @param string $align | 
| 706 | 709 | * @param boolean $fill | 
| 707 | 710 | * @param string $link | 
| @@ -723,10 +726,10 @@ discard block | ||
| 723 | 726 | * CellFitSpace | 
| 724 | 727 | * Celula com espaçamento de caracteres somente se necessário | 
| 725 | 728 | * @param number $w | 
| 726 | - * @param number $h | |
| 729 | + * @param integer $h | |
| 727 | 730 | * @param string $txt | 
| 728 | - * @param number $border | |
| 729 | - * @param number $ln | |
| 731 | + * @param integer $border | |
| 732 | + * @param integer $ln | |
| 730 | 733 | * @param string $align | 
| 731 | 734 | * @param boolean $fill | 
| 732 | 735 | * @param string $link | 
| @@ -740,10 +743,10 @@ discard block | ||
| 740 | 743 | * CellFitSpaceForce | 
| 741 | 744 | * Celula com espaçamento de caracteres forçado | 
| 742 | 745 | * @param number $w | 
| 743 | - * @param number $h | |
| 746 | + * @param integer $h | |
| 744 | 747 | * @param string $txt | 
| 745 | - * @param number $border | |
| 746 | - * @param number $ln | |
| 748 | + * @param integer $border | |
| 749 | + * @param integer $ln | |
| 747 | 750 | * @param string $align | 
| 748 | 751 | * @param boolean $fill | 
| 749 | 752 | * @param string $link | 
| @@ -71,7 +71,7 @@ discard block | ||
| 71 | 71 | * @param string $sPathLogo Caminho para o arquivo do logo | 
| 72 | 72 | * @param string $sDestino Estabelece a direção do envio do documento PDF I-browser D-browser com download S- | 
| 73 | 73 | * @param string $sDirPDF Caminho para o diretorio de armazenamento dos arquivos PDF | 
| 74 | - * @param string $fonteDAMDFE Nome da fonte alternativa do DAnfe | |
| 74 | + * @param string $fontePDF Nome da fonte alternativa do DAnfe | |
| 75 | 75 | * @param integer $mododebug 0-Não 1-Sim e 2-nada (2 default) | 
| 76 | 76 | */ | 
| 77 | 77 | public function __construct( | 
| @@ -264,7 +264,7 @@ discard block | ||
| 264 | 264 | * @param float $x | 
| 265 | 265 | * @param float $y | 
| 266 | 266 | * @param integer $pag | 
| 267 | - * @return string | |
| 267 | + * @return double | |
| 268 | 268 | */ | 
| 269 | 269 | private function headerMDFePaisagem($x, $y, $pag) | 
| 270 | 270 |      { | 
| @@ -429,7 +429,7 @@ discard block | ||
| 429 | 429 | * @param float $x | 
| 430 | 430 | * @param float $y | 
| 431 | 431 | * @param integer $pag | 
| 432 | - * @return string | |
| 432 | + * @return double | |
| 433 | 433 | */ | 
| 434 | 434 | private function headerMDFeRetrato($x, $y, $pag) | 
| 435 | 435 |      { | 
| @@ -592,7 +592,7 @@ discard block | ||
| 592 | 592 | * | 
| 593 | 593 | * @param float $x | 
| 594 | 594 | * @param float $y | 
| 595 | - * @return void | |
| 595 | + * @return double | |
| 596 | 596 | */ | 
| 597 | 597 | private function bodyMDFe($x, $y) | 
| 598 | 598 |      { | 
| @@ -55,9 +55,9 @@ discard block | ||
| 55 | 55 | * | 
| 56 | 56 | * @param string $docXML | 
| 57 | 57 | * @param string $sPathLogo | 
| 58 | - * @param string $mododebug | |
| 58 | + * @param integer $mododebug | |
| 59 | 59 | * @param string $idToken | 
| 60 | - * @param string $Token | |
| 60 | + * @param string $emitToken | |
| 61 | 61 | */ | 
| 62 | 62 | public function __construct( | 
| 63 | 63 | $docXML = '', | 
| @@ -718,6 +718,9 @@ discard block | ||
| 718 | 718 | return $hex; | 
| 719 | 719 | }//fim str2Hex | 
| 720 | 720 | |
| 721 | + /** | |
| 722 | + * @param string $tBand | |
| 723 | + */ | |
| 721 | 724 | protected static function getCardName($tBand) | 
| 722 | 725 |      { | 
| 723 | 726 |          switch ($tBand) { | 
| @@ -739,6 +742,9 @@ discard block | ||
| 739 | 742 | return $tBandNome; | 
| 740 | 743 | } | 
| 741 | 744 | |
| 745 | + /** | |
| 746 | + * @param string $tPag | |
| 747 | + */ | |
| 742 | 748 | protected function tipoPag($tPag) | 
| 743 | 749 |      { | 
| 744 | 750 |          switch ($tPag) { | 
| @@ -14,11 +14,7 @@ | ||
| 14 | 14 | * @author Roberto Spadim <roberto at spadim dot com dot br> | 
| 15 | 15 | */ | 
| 16 | 16 | |
| 17 | -use Exception; | |
| 18 | -use NFePHP\DA\Legacy\Dom; | |
| 19 | -use NFePHP\DA\Legacy\Pdf; | |
| 20 | 17 | use NFePHP\DA\Legacy\Common; | 
| 21 | -use Endroid\QrCode\QrCode; | |
| 22 | 18 | |
| 23 | 19 | class Danfce extends Common | 
| 24 | 20 |  { | 
| @@ -74,7 +74,7 @@ | ||
| 74 | 74 | * a mesma deverá já ter sido pré definida inclusive seu | 
| 75 | 75 | * conector | 
| 76 | 76 | * | 
| 77 | - * @param PrinterInterface $this->printer | |
| 77 | + * @param PrinterInterface $printer | |
| 78 | 78 | */ | 
| 79 | 79 | public function __construct(PrinterInterface $printer) | 
| 80 | 80 |      { | 
| @@ -15,8 +15,8 @@ | ||
| 15 | 15 | * @author Roberto L. Machado <linux dot rlm at gmail dot com> | 
| 16 | 16 | */ | 
| 17 | 17 | |
| 18 | -use Posprint\Printers\PrinterInterface; | |
| 19 | 18 | use InvalidArgumentException; | 
| 19 | +use Posprint\Printers\PrinterInterface; | |
| 20 | 20 | |
| 21 | 21 | class DanfcePos | 
| 22 | 22 |  { | 
| @@ -72,9 +72,9 @@ discard block | ||
| 72 | 72 | * @param string $sPathLogo Caminho para o arquivo do logo | 
| 73 | 73 | * @param string $sDestino Destino do PDF I-browser D-download S-string F-salva | 
| 74 | 74 | * @param string $sDirPDF Caminho para o diretorio de armazenamento dos arquivos PDF | 
| 75 | - * @param string $fonteDANFE Nome da fonte alternativa | |
| 75 | + * @param string $fontePDF Nome da fonte alternativa | |
| 76 | 76 | * @param array $aEnd array com o endereço do emitente | 
| 77 | - * @param number $mododebug 0-Não 1-Sim e 2-nada (2 default) | |
| 77 | + * @param integer $mododebug 0-Não 1-Sim e 2-nada (2 default) | |
| 78 | 78 | */ | 
| 79 | 79 | public function __construct( | 
| 80 | 80 | $docXML = '', | 
| @@ -167,9 +167,8 @@ discard block | ||
| 167 | 167 | * @param string $orientacao | 
| 168 | 168 | * @param string $papel | 
| 169 | 169 | * @param string $logoAlign | 
| 170 | - * @param int $situacao_externa | |
| 171 | 170 | * @param boolean $classe_pdf | 
| 172 | - * @return number | |
| 171 | + * @return string | |
| 173 | 172 | */ | 
| 174 | 173 | public function monta($orientacao = '', $papel = 'A4', $logoAlign = 'C', $classe_pdf = false) | 
| 175 | 174 |      { | 
| @@ -264,9 +263,9 @@ discard block | ||
| 264 | 263 | |
| 265 | 264 | /** | 
| 266 | 265 | * pHeader | 
| 267 | - * @param number $x | |
| 268 | - * @param number $y | |
| 269 | - * @param number $pag | |
| 266 | + * @param integer $x | |
| 267 | + * @param integer $y | |
| 268 | + * @param integer $pag | |
| 270 | 269 | * @return number | 
| 271 | 270 | */ | 
| 272 | 271 | private function pHeader($x, $y, $pag) | 
| @@ -496,8 +495,8 @@ discard block | ||
| 496 | 495 | /** | 
| 497 | 496 | * pBody | 
| 498 | 497 | * | 
| 499 | - * @param number $x | |
| 500 | - * @param number $y | |
| 498 | + * @param integer $x | |
| 499 | + * @param double $y | |
| 501 | 500 | */ | 
| 502 | 501 | private function pBody($x, $y) | 
| 503 | 502 |      { | 
| @@ -523,7 +522,7 @@ discard block | ||
| 523 | 522 | /** | 
| 524 | 523 | * pFooter | 
| 525 | 524 | * | 
| 526 | - * @param number $x | |
| 525 | + * @param integer $x | |
| 527 | 526 | * @param number $y | 
| 528 | 527 | */ | 
| 529 | 528 | private function pFooter($x, $y) | 
| @@ -15,10 +15,9 @@ | ||
| 15 | 15 | * @author Roberto L. Machado <linux.rlm at gmail dot com> | 
| 16 | 16 | */ | 
| 17 | 17 | |
| 18 | -use Exception; | |
| 18 | +use NFePHP\DA\Legacy\Common; | |
| 19 | 19 | use NFePHP\DA\Legacy\Dom; | 
| 20 | 20 | use NFePHP\DA\Legacy\Pdf; | 
| 21 | -use NFePHP\DA\Legacy\Common; | |
| 22 | 21 | |
| 23 | 22 | class Daevento extends Common | 
| 24 | 23 |  { | 
| @@ -976,8 +976,8 @@ discard block | ||
| 976 | 976 | *cabecalhoDANFE | 
| 977 | 977 | * Monta o cabelhalho da DANFE (retrato e paisagem) | 
| 978 | 978 | * | 
| 979 | - * @param number $x Posição horizontal inicial, canto esquerdo | |
| 980 | - * @param number $y Posição vertical inicial, canto superior | |
| 979 | + * @param integer $x Posição horizontal inicial, canto esquerdo | |
| 980 | + * @param integer $y Posição vertical inicial, canto superior | |
| 981 | 981 | * @param number $pag Número da Página | 
| 982 | 982 | * @param number $totPag Total de páginas | 
| 983 | 983 | * @return number Posição vertical final | 
| @@ -1398,8 +1398,8 @@ discard block | ||
| 1398 | 1398 | * Monta o campo com os dados do destinatário na DANFE. (retrato e paisagem) | 
| 1399 | 1399 | * | 
| 1400 | 1400 | * @name destinatarioDANFE | 
| 1401 | - * @param number $x Posição horizontal canto esquerdo | |
| 1402 | - * @param number $y Posição vertical canto superior | |
| 1401 | + * @param integer $x Posição horizontal canto esquerdo | |
| 1402 | + * @param integer $y Posição vertical canto superior | |
| 1403 | 1403 | * @return number Posição vertical final | 
| 1404 | 1404 | */ | 
| 1405 | 1405 | protected function pDestinatarioDANFE($x = 0, $y = 0) | 
| @@ -1599,7 +1599,7 @@ discard block | ||
| 1599 | 1599 | * Gera a String do Texto da Fatura | 
| 1600 | 1600 | * | 
| 1601 | 1601 | * @name getTextoFatura | 
| 1602 | - * @return a String com o texto ou ""; | |
| 1602 | + * @return string String com o texto ou ""; | |
| 1603 | 1603 | */ | 
| 1604 | 1604 | protected function pGetTextoFatura() | 
| 1605 | 1605 |      { | 
| @@ -1646,8 +1646,8 @@ discard block | ||
| 1646 | 1646 | * Monta o campo de duplicatas da DANFE (retrato e paisagem) | 
| 1647 | 1647 | * | 
| 1648 | 1648 | * @name faturaDANFE | 
| 1649 | - * @param number $x Posição horizontal canto esquerdo | |
| 1650 | - * @param number $y Posição vertical canto superior | |
| 1649 | + * @param integer $x Posição horizontal canto esquerdo | |
| 1650 | + * @param double $y Posição vertical canto superior | |
| 1651 | 1651 | * @return number Posição vertical final | 
| 1652 | 1652 | */ | 
| 1653 | 1653 | protected function pFaturaDANFE($x, $y) | 
| @@ -1760,6 +1760,8 @@ discard block | ||
| 1760 | 1760 | * @param float $h Altura do campo | 
| 1761 | 1761 | * @param float $h Título do campo | 
| 1762 | 1762 | * @param float $h Valor do imposto | 
| 1763 | + * @param string $titulo | |
| 1764 | + * @param string $campoImposto | |
| 1763 | 1765 | * @return float Sugestão do $x do próximo imposto | 
| 1764 | 1766 | */ | 
| 1765 | 1767 | protected function pImpostoDanfeHelper($x, $y, $w, $h, $titulo, $campoImposto) | 
| @@ -1786,9 +1788,9 @@ discard block | ||
| 1786 | 1788 | * impostoDANFE | 
| 1787 | 1789 | * Monta o campo de impostos e totais da DANFE (retrato e paisagem) | 
| 1788 | 1790 | * | 
| 1789 | - * @param number $x Posição horizontal canto esquerdo | |
| 1790 | - * @param number $y Posição vertical canto superior | |
| 1791 | - * @return number Posição vertical final | |
| 1791 | + * @param integer $x Posição horizontal canto esquerdo | |
| 1792 | + * @param double $y Posição vertical canto superior | |
| 1793 | + * @return double Posição vertical final | |
| 1792 | 1794 | */ | 
| 1793 | 1795 | protected function pImpostoDANFE($x, $y) | 
| 1794 | 1796 |      { | 
| @@ -2164,6 +2166,10 @@ discard block | ||
| 2164 | 2166 | |
| 2165 | 2167 | |
| 2166 | 2168 | |
| 2169 | + /** | |
| 2170 | + * @param string $campo | |
| 2171 | + * @param string $formato | |
| 2172 | + */ | |
| 2167 | 2173 | protected function pDescricaoProdutoHelper($origem, $campo, $formato) | 
| 2168 | 2174 |      { | 
| 2169 | 2175 | $valor_original = $origem->getElementsByTagName($campo)->item(0); | 
| @@ -2250,7 +2256,6 @@ discard block | ||
| 2250 | 2256 | * @param float $x Posição horizontal canto esquerdo | 
| 2251 | 2257 | * @param float $y Posição vertical canto superior | 
| 2252 | 2258 | * @param float $nInicio Número do item inicial | 
| 2253 | - * @param float $max Número do item final | |
| 2254 | 2259 | * @param float $hmax Altura máxima do campo de itens em mm | 
| 2255 | 2260 | * @return float Posição vertical final | 
| 2256 | 2261 | */ | 
| @@ -2697,8 +2702,7 @@ discard block | ||
| 2697 | 2702 | * sobre a API NfePHP | 
| 2698 | 2703 | * | 
| 2699 | 2704 | * @name pRodape | 
| 2700 | - * @param float $xInic Posição horizontal canto esquerdo | |
| 2701 | - * @param float $yFinal Posição vertical final para impressão | |
| 2705 | + * @param integer $x | |
| 2702 | 2706 | * @return void | 
| 2703 | 2707 | */ | 
| 2704 | 2708 | protected function pRodape($x, $y) | 
| @@ -2721,7 +2725,7 @@ discard block | ||
| 2721 | 2725 | * Monta o canhoto da DANFE (retrato e paisagem) | 
| 2722 | 2726 | * | 
| 2723 | 2727 | * @name canhotoDANFE | 
| 2724 | - * @param number $x Posição horizontal canto esquerdo | |
| 2728 | + * @param integer $x Posição horizontal canto esquerdo | |
| 2725 | 2729 | * @param number $y Posição vertical canto superior | 
| 2726 | 2730 | * @return number Posição vertical final | 
| 2727 | 2731 | * | 
| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | namespace NFePHP\DA\NFe; | 
| 4 | 4 | |
| 5 | 5 | use InvalidArgumentException; | 
| 6 | +use NFePHP\DA\Legacy\Common; | |
| 6 | 7 | use NFePHP\DA\Legacy\Dom; | 
| 7 | 8 | use NFePHP\DA\Legacy\Pdf; | 
| 8 | -use NFePHP\DA\Legacy\Common; | |
| 9 | 9 | |
| 10 | 10 | class Danfe extends Common | 
| 11 | 11 |  { |