@@ -9,8 +9,8 @@ |
||
9 | 9 | * e estabelecimento |
10 | 10 | */ |
11 | 11 | |
12 | -use Posprint\Printers\PrinterInterface; |
|
13 | 12 | use InvalidArgumentException; |
13 | +use Posprint\Printers\PrinterInterface; |
|
14 | 14 | |
15 | 15 | class DanfcePos |
16 | 16 | { |
@@ -585,9 +585,9 @@ |
||
585 | 585 | |
586 | 586 | /** |
587 | 587 | * Find closest multiple |
588 | - * @param float $num |
|
589 | - * @param int $num |
|
590 | - * @return int |
|
588 | + * @param integer $num |
|
589 | + * @param integer $num |
|
590 | + * @return double |
|
591 | 591 | */ |
592 | 592 | private function closestMultiple($num = 0, $base = 8) |
593 | 593 | { |
@@ -13,12 +13,10 @@ |
||
13 | 13 | * @link http://github.com/nfephp-org/posprint for the canonical source repository |
14 | 14 | */ |
15 | 15 | |
16 | -use Posprint\Graphics\Basic; |
|
17 | -use Endroid\QrCode\ErrorCorrectionLevel; |
|
18 | -use Endroid\QrCode\Writer\PngWriter; |
|
19 | 16 | use Com\Tecnick\Barcode\Barcode; |
20 | -use RuntimeException; |
|
21 | 17 | use InvalidArgumentException; |
18 | +use Posprint\Graphics\Basic; |
|
19 | +use RuntimeException; |
|
22 | 20 | |
23 | 21 | class Graphics extends Basic |
24 | 22 | { |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | /** |
288 | 288 | * Prints data and feeds paper n lines |
289 | 289 | * ESC d n Prints data and feeds paper n lines. |
290 | - * @param int|null $lines |
|
290 | + * @param integer $lines |
|
291 | 291 | */ |
292 | 292 | public function lineFeed($lines = 1) |
293 | 293 | { |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | * @param integer $pheight |
451 | 451 | * @param integer $pwidth |
452 | 452 | * @param integer $colunms |
453 | - * @return boolean |
|
453 | + * @return false|null |
|
454 | 454 | */ |
455 | 455 | public function barcodePDF417($data = '', $ecc = 5, $pheight = 2, $pwidth = 2, $colunms = 3) |
456 | 456 | { |
@@ -14,10 +14,10 @@ |
||
14 | 14 | * @link http://github.com/nfephp-org/posprint for the canonical source repository |
15 | 15 | */ |
16 | 16 | |
17 | +use InvalidArgumentException; |
|
18 | +use Posprint\Graphics\Graphics; |
|
17 | 19 | use Posprint\Printers\DefaultPrinter; |
18 | 20 | use Posprint\Printers\PrinterInterface; |
19 | -use Posprint\Graphics\Graphics; |
|
20 | -use InvalidArgumentException; |
|
21 | 21 | use RuntimeException; |
22 | 22 | |
23 | 23 | class Bematech extends DefaultPrinter implements PrinterInterface |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | /** |
501 | 501 | * Set italic mode on or off |
502 | 502 | * |
503 | - * @return bool |
|
503 | + * @return boolean|null |
|
504 | 504 | */ |
505 | 505 | public function setItalic() |
506 | 506 | { |
@@ -655,7 +655,7 @@ discard block |
||
655 | 655 | /** |
656 | 656 | * Prints data and feeds paper n lines |
657 | 657 | * ESC d n Prints data and feeds paper n lines. |
658 | - * @param int|null $lines |
|
658 | + * @param integer $lines |
|
659 | 659 | */ |
660 | 660 | public function lineFeed($lines = 1) |
661 | 661 | { |
@@ -805,7 +805,7 @@ discard block |
||
805 | 805 | * @param integer $pheight |
806 | 806 | * @param integer $pwidth |
807 | 807 | * @param integer $colunms |
808 | - * @return boolean |
|
808 | + * @return false|null |
|
809 | 809 | */ |
810 | 810 | public function barcodePDF417($data = '', $ecc = 5, $pheight = 2, $pwidth = 2, $colunms = 3) |
811 | 811 | { |
@@ -1032,7 +1032,7 @@ discard block |
||
1032 | 1032 | * Convert widths and heights to characters. |
1033 | 1033 | * Used before sending graphics to set the size. |
1034 | 1034 | * |
1035 | - * @param array $inputs |
|
1035 | + * @param integer[] $inputs |
|
1036 | 1036 | * @param bool $long True to use 4 bytes, false to use 2 |
1037 | 1037 | * @return string |
1038 | 1038 | */ |