@@ -15,9 +15,9 @@ |
||
| 15 | 15 | * @link http://github.com/nfephp-org/posprint for the canonical source repository |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | +use InvalidArgumentException; |
|
| 18 | 19 | use Posprint\Connectors\ConnectorInterface; |
| 19 | 20 | use RuntimeException; |
| 20 | -use InvalidArgumentException; |
|
| 21 | 21 | |
| 22 | 22 | class File implements ConnectorInterface |
| 23 | 23 | { |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | * Read some bytes from file |
| 87 | 87 | * |
| 88 | 88 | * @param int $len |
| 89 | - * @return stirng |
|
| 89 | + * @return string |
|
| 90 | 90 | */ |
| 91 | 91 | public function read($len = null) |
| 92 | 92 | { |
@@ -562,9 +562,9 @@ |
||
| 562 | 562 | /** |
| 563 | 563 | * Ajusta o numero para o multiplo mais proximo de base |
| 564 | 564 | * |
| 565 | - * @param float $num |
|
| 566 | - * @param int $num |
|
| 567 | - * @return int |
|
| 565 | + * @param integer $num |
|
| 566 | + * @param integer $num |
|
| 567 | + * @return double |
|
| 568 | 568 | */ |
| 569 | 569 | private function closestMultiple($num = 0, $base = 8) |
| 570 | 570 | { |
@@ -13,12 +13,11 @@ |
||
| 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 Endroid\QrCode\QrCode; |
| 20 | -use RuntimeException; |
|
| 17 | +use Endroid\QrCode\Writer\PngWriter; |
|
| 21 | 18 | use InvalidArgumentException; |
| 19 | +use Posprint\Graphics\Basic; |
|
| 20 | +use RuntimeException; |
|
| 22 | 21 | |
| 23 | 22 | class Graphics extends Basic |
| 24 | 23 | { |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | /** |
| 523 | 523 | * Set italic mode on or off |
| 524 | 524 | * |
| 525 | - * @return bool |
|
| 525 | + * @return boolean|null |
|
| 526 | 526 | */ |
| 527 | 527 | public function setItalic() |
| 528 | 528 | { |
@@ -659,7 +659,6 @@ discard block |
||
| 659 | 659 | * n 1/180-inch vertical motion |
| 660 | 660 | * normal paragraph 30/180" => 4.23 mm |
| 661 | 661 | * |
| 662 | - * @param int $paragraph |
|
| 663 | 662 | */ |
| 664 | 663 | public function setParagraph($value = 0) |
| 665 | 664 | { |
@@ -834,7 +833,7 @@ discard block |
||
| 834 | 833 | * @param integer $pheight |
| 835 | 834 | * @param integer $pwidth |
| 836 | 835 | * @param integer $colunms |
| 837 | - * @return boolean |
|
| 836 | + * @return false|null |
|
| 838 | 837 | */ |
| 839 | 838 | public function barcodePDF417($data = '', $ecc = 5, $pheight = 2, $pwidth = 2, $colunms = 3) |
| 840 | 839 | { |
@@ -1042,7 +1041,7 @@ discard block |
||
| 1042 | 1041 | * Generate two characters for a number: |
| 1043 | 1042 | * In lower and higher parts, or more parts as needed. |
| 1044 | 1043 | * |
| 1045 | - * @param int $int Input number |
|
| 1044 | + * @param int $input Input number |
|
| 1046 | 1045 | * @param int $length The number of bytes to output (1 - 4). |
| 1047 | 1046 | */ |
| 1048 | 1047 | protected static function intLowHigh($input, $length) |
@@ -24,13 +24,13 @@ |
||
| 24 | 24 | * @link http://github.com/nfephp-org/posprint for the canonical source repository |
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | -use Posprint\Printers\PrinterInterface; |
|
| 28 | -use Posprint\Connectors\ConnectorInterface; |
|
| 27 | +use InvalidArgumentException; |
|
| 29 | 28 | use Posprint\Connectors\Buffer; |
| 29 | +use Posprint\Connectors\ConnectorInterface; |
|
| 30 | 30 | use Posprint\Graphics\Graphics; |
| 31 | 31 | use Posprint\Printers\Barcodes\Barcode1DAnalysis; |
| 32 | +use Posprint\Printers\PrinterInterface; |
|
| 32 | 33 | use RuntimeException; |
| 33 | -use InvalidArgumentException; |
|
| 34 | 34 | |
| 35 | 35 | abstract class DefaultPrinter implements PrinterInterface |
| 36 | 36 | { |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | * if getAuto() == false this command writes to buffer (default) |
| 412 | 412 | * |
| 413 | 413 | * @param string $data |
| 414 | - * @return boolean |
|
| 414 | + * @return string|boolean |
|
| 415 | 415 | */ |
| 416 | 416 | public function write($data) |
| 417 | 417 | { |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | /** |
| 430 | 430 | * Flushs imediatly data to serial port |
| 431 | 431 | * |
| 432 | - * @return boolean |
|
| 432 | + * @return string|boolean |
|
| 433 | 433 | */ |
| 434 | 434 | public function flush() |
| 435 | 435 | { |
@@ -14,9 +14,9 @@ |
||
| 14 | 14 | * @link http://github.com/nfephp-org/posprint for the canonical source repository |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | +use Posprint\Graphics\Graphics; |
|
| 17 | 18 | use Posprint\Printers\DefaultPrinter; |
| 18 | 19 | use Posprint\Printers\PrinterInterface; |
| 19 | -use Posprint\Graphics\Graphics; |
|
| 20 | 20 | |
| 21 | 21 | final class Daruma extends DefaultPrinter implements PrinterInterface |
| 22 | 22 | { |
@@ -449,7 +449,7 @@ |
||
| 449 | 449 | * @param integer $pheight |
| 450 | 450 | * @param integer $pwidth |
| 451 | 451 | * @param integer $colunms |
| 452 | - * @return boolean |
|
| 452 | + * @return false|null |
|
| 453 | 453 | */ |
| 454 | 454 | public function barcodePDF417($data = '', $ecc = 5, $pheight = 2, $pwidth = 2, $colunms = 3) |
| 455 | 455 | { |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | * a mesma deverá já ter sido pré definida inclusive seu |
| 69 | 69 | * conector |
| 70 | 70 | * |
| 71 | - * @param PrinterInterface $this->printer |
|
| 71 | + * @param PrinterInterface $printer |
|
| 72 | 72 | */ |
| 73 | 73 | public function __construct(PrinterInterface $printer) |
| 74 | 74 | { |
@@ -9,8 +9,8 @@ |
||
| 9 | 9 | * em caso de contingência criar duas vias consumidor 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 | { |
@@ -449,7 +449,7 @@ |
||
| 449 | 449 | * @param integer $pheight |
| 450 | 450 | * @param integer $pwidth |
| 451 | 451 | * @param integer $colunms |
| 452 | - * @return boolean |
|
| 452 | + * @return false|null |
|
| 453 | 453 | */ |
| 454 | 454 | public function barcodePDF417($data = '', $ecc = 5, $pheight = 2, $pwidth = 2, $colunms = 3) |
| 455 | 455 | { |