@@ -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 | { |
@@ -601,7 +601,6 @@ discard block |
||
| 601 | 601 | * n 1/180-inch vertical motion |
| 602 | 602 | * normal paragraph 30/180" => 4.23 mm |
| 603 | 603 | * |
| 604 | - * @param int $paragraph |
|
| 605 | 604 | */ |
| 606 | 605 | public function setParagraph($value = 0) |
| 607 | 606 | { |
@@ -623,7 +622,7 @@ discard block |
||
| 623 | 622 | * Prints data and feeds paper n lines |
| 624 | 623 | * ESC d n Prints data and feeds paper n lines. |
| 625 | 624 | * |
| 626 | - * @param type $lines |
|
| 625 | + * @param integer $lines |
|
| 627 | 626 | */ |
| 628 | 627 | public function lineFeed($lines = 1) |
| 629 | 628 | { |
@@ -883,7 +882,7 @@ discard block |
||
| 883 | 882 | * @param string $type |
| 884 | 883 | * @param int $id |
| 885 | 884 | * @param string $data |
| 886 | - * @return string |
|
| 885 | + * @return boolean |
|
| 887 | 886 | */ |
| 888 | 887 | protected static function validateBarcodeData($type, &$id, &$data) |
| 889 | 888 | { |
@@ -964,7 +963,7 @@ discard block |
||
| 964 | 963 | * Generate two characters for a number: |
| 965 | 964 | * In lower and higher parts, or more parts as needed. |
| 966 | 965 | * |
| 967 | - * @param int $int Input number |
|
| 966 | + * @param int $input Input number |
|
| 968 | 967 | * @param int $length The number of bytes to output (1 - 4). |
| 969 | 968 | */ |
| 970 | 969 | 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 | { |