@@ -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 | { |
@@ -597,7 +597,6 @@ discard block |
||
| 597 | 597 | * n 1/180-inch vertical motion |
| 598 | 598 | * normal paragraph 30/180" => 4.23 mm |
| 599 | 599 | * |
| 600 | - * @param int $paragraph |
|
| 601 | 600 | */ |
| 602 | 601 | public function setParagraph($value = 0) |
| 603 | 602 | { |
@@ -619,7 +618,7 @@ discard block |
||
| 619 | 618 | * Prints data and feeds paper n lines |
| 620 | 619 | * ESC d n Prints data and feeds paper n lines. |
| 621 | 620 | * |
| 622 | - * @param type $lines |
|
| 621 | + * @param integer $lines |
|
| 623 | 622 | */ |
| 624 | 623 | public function lineFeed($lines = 1) |
| 625 | 624 | { |
@@ -877,7 +876,7 @@ discard block |
||
| 877 | 876 | * @param string $type |
| 878 | 877 | * @param int $id |
| 879 | 878 | * @param string $data |
| 880 | - * @return string |
|
| 879 | + * @return boolean |
|
| 881 | 880 | */ |
| 882 | 881 | protected static function validateBarcodeData($type, &$id, &$data) |
| 883 | 882 | { |
@@ -958,7 +957,7 @@ discard block |
||
| 958 | 957 | * Generate two characters for a number: |
| 959 | 958 | * In lower and higher parts, or more parts as needed. |
| 960 | 959 | * |
| 961 | - * @param int $int Input number |
|
| 960 | + * @param int $input Input number |
|
| 962 | 961 | * @param int $length The number of bytes to output (1 - 4). |
| 963 | 962 | */ |
| 964 | 963 | protected static function intLowHigh($input, $length) |
@@ -976,7 +975,7 @@ discard block |
||
| 976 | 975 | * Convert widths and heights to characters. |
| 977 | 976 | * Used before sending graphics to set the size. |
| 978 | 977 | * |
| 979 | - * @param array $inputs |
|
| 978 | + * @param integer[] $inputs |
|
| 980 | 979 | * @param bool $long True to use 4 bytes, false to use 2 |
| 981 | 980 | * @return string |
| 982 | 981 | */ |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | 23 | use RuntimeException; |
| 24 | -use InvalidArgumentException; |
|
| 25 | 24 | |
| 26 | 25 | class PhpSerial |
| 27 | 26 | { |
@@ -717,7 +717,7 @@ |
||
| 717 | 717 | * |
| 718 | 718 | * @param type $cmd |
| 719 | 719 | * @param type $out |
| 720 | - * @return type |
|
| 720 | + * @return integer |
|
| 721 | 721 | */ |
| 722 | 722 | protected function execCommand($cmd, &$out = null) |
| 723 | 723 | { |