@@ -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 | { |
@@ -24,11 +24,11 @@ |
||
24 | 24 | * @link http://github.com/nfephp-org/posprint for the canonical source repository |
25 | 25 | */ |
26 | 26 | |
27 | -use Posprint\Connectors\ConnectorInterface; |
|
27 | +use InvalidArgumentException; |
|
28 | 28 | use Posprint\Connectors\Buffer; |
29 | +use Posprint\Connectors\ConnectorInterface; |
|
29 | 30 | use Posprint\Graphics\Graphics; |
30 | 31 | use RuntimeException; |
31 | -use InvalidArgumentException; |
|
32 | 32 | |
33 | 33 | abstract class DefaultPrinter implements PrinterInterface |
34 | 34 | { |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | /** |
522 | 522 | * Set italic mode on or off |
523 | 523 | * |
524 | - * @return bool |
|
524 | + * @return boolean|null |
|
525 | 525 | */ |
526 | 526 | public function setItalic() |
527 | 527 | { |
@@ -658,7 +658,6 @@ discard block |
||
658 | 658 | * n 1/180-inch vertical motion |
659 | 659 | * normal paragraph 30/180" => 4.23 mm |
660 | 660 | * |
661 | - * @param int $paragraph |
|
662 | 661 | */ |
663 | 662 | public function setParagraph($value = 0) |
664 | 663 | { |
@@ -833,7 +832,7 @@ discard block |
||
833 | 832 | * @param integer $pheight |
834 | 833 | * @param integer $pwidth |
835 | 834 | * @param integer $colunms |
836 | - * @return boolean |
|
835 | + * @return boolean|null |
|
837 | 836 | */ |
838 | 837 | public function barcodePDF417($data, $ecc = 5, $pheight = 2, $pwidth = 2, $colunms = 3) |
839 | 838 | { |
@@ -1038,7 +1037,7 @@ discard block |
||
1038 | 1037 | * Generate two characters for a number: |
1039 | 1038 | * In lower and higher parts, or more parts as needed. |
1040 | 1039 | * |
1041 | - * @param int $int Input number |
|
1040 | + * @param int $input Input number |
|
1042 | 1041 | * @param int $length The number of bytes to output (1 - 4). |
1043 | 1042 | */ |
1044 | 1043 | protected static function intLowHigh($input, $length) |
@@ -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 | { |
@@ -449,7 +449,7 @@ |
||
449 | 449 | * @param integer $pheight |
450 | 450 | * @param integer $pwidth |
451 | 451 | * @param integer $colunms |
452 | - * @return boolean |
|
452 | + * @return boolean|null |
|
453 | 453 | */ |
454 | 454 | public function barcodePDF417($data, $ecc = 5, $pheight = 2, $pwidth = 2, $colunms = 3) |
455 | 455 | { |
@@ -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 | { |