@@ -13,10 +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 | 16 | use Endroid\QrCode\QrCode; |
18 | -use RuntimeException; |
|
19 | 17 | use InvalidArgumentException; |
18 | +use Posprint\Graphics\Basic; |
|
19 | +use RuntimeException; |
|
20 | 20 | |
21 | 21 | class Graphics extends Basic |
22 | 22 | { |
@@ -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 | { |
@@ -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; |
|
17 | 18 | use Posprint\Connectors\ConnectorInterface; |
18 | 19 | use Posprint\Connectors\File; |
19 | 20 | use RuntimeException; |
20 | -use InvalidArgumentException; |
|
21 | 21 | |
22 | 22 | class Network extends 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 | { |
@@ -434,7 +434,7 @@ |
||
434 | 434 | * @param integer $pheight |
435 | 435 | * @param integer $pwidth |
436 | 436 | * @param integer $colunms |
437 | - * @return boolean |
|
437 | + * @return false|null |
|
438 | 438 | */ |
439 | 439 | public function barcodePDF417($data, $ecc = 5, $pheight = 2, $pwidth = 2, $colunms = 3) |
440 | 440 | { |
@@ -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 | { |
@@ -434,7 +434,7 @@ |
||
434 | 434 | * @param integer $pheight |
435 | 435 | * @param integer $pwidth |
436 | 436 | * @param integer $colunms |
437 | - * @return boolean |
|
437 | + * @return false|null |
|
438 | 438 | */ |
439 | 439 | public function barcodePDF417($data, $ecc = 5, $pheight = 2, $pwidth = 2, $colunms = 3) |
440 | 440 | { |
@@ -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 | { |