@@ -14,7 +14,6 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | 16 | use Posprint\Connectors\ConnectorInterface; |
| 17 | -use Exception; |
|
| 18 | 17 | |
| 19 | 18 | class Cups implements ConnectorInterface |
| 20 | 19 | { |
@@ -181,6 +181,7 @@ |
||
| 181 | 181 | |
| 182 | 182 | /** |
| 183 | 183 | * Makes de cfA (control string) |
| 184 | + * @param integer $jobid |
|
| 184 | 185 | * @return string cfA control String |
| 185 | 186 | */ |
| 186 | 187 | private function makeCfA($jobid) |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | * @link http://github.com/nfephp-org/posprint for the canonical source repository |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -use Posprint\Connectors\ConnectorInterface; |
|
| 17 | 16 | use PhpSerial; |
| 17 | +use Posprint\Connectors\ConnectorInterface; |
|
| 18 | 18 | |
| 19 | 19 | class Serial implements ConnectorInterface |
| 20 | 20 | { |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | * @link http://github.com/nfephp-org/posprint for the canonical source repository |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -use Posprint\Connectors\ConnectorInterface; |
|
| 17 | 16 | use PhpSerial; |
| 17 | +use Posprint\Connectors\ConnectorInterface; |
|
| 18 | 18 | |
| 19 | 19 | class Serial implements ConnectorInterface |
| 20 | 20 | { |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | |
| 201 | 201 | /** |
| 202 | 202 | * |
| 203 | - * @param type $data |
|
| 203 | + * @param string $data |
|
| 204 | 204 | * @throws Exception |
| 205 | 205 | */ |
| 206 | 206 | protected function finalizeMac($data) { |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | } |
| 257 | 257 | |
| 258 | 258 | /** |
| 259 | - * @return string Current platform. Separated out for testing purposes. |
|
| 259 | + * @return integer Current platform. Separated out for testing purposes. |
|
| 260 | 260 | */ |
| 261 | 261 | protected function getCurrentPlatform() { |
| 262 | 262 | if (PHP_OS == "WINNT") { |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | * @param string $outputStr variable to fill with standard output. |
| 285 | 285 | * @param string $errorStr variable to fill with standard error. |
| 286 | 286 | * @param string $inputStr text to pass to the command's standard input (optional). |
| 287 | - * @return number |
|
| 287 | + * @return integer |
|
| 288 | 288 | */ |
| 289 | 289 | protected function runCommand($command, &$outputStr, &$errorStr, $inputStr = null) { |
| 290 | 290 | $descriptors = array( |
@@ -292,10 +292,8 @@ discard block |
||
| 292 | 292 | * imageQRCode |
| 293 | 293 | * Creates a GD QRCode image |
| 294 | 294 | * |
| 295 | - * @param int $size |
|
| 296 | 295 | * @param int $padding |
| 297 | 296 | * @param string $errCorretion LOW, MEDIUM, QUARTILE, HIGH |
| 298 | - * @param string $imageType PNG, GIF, JPEG, WBMP |
|
| 299 | 297 | * @param string $dataText QRCode data |
| 300 | 298 | */ |
| 301 | 299 | public function imageQRCode( |
@@ -463,7 +461,7 @@ discard block |
||
| 463 | 461 | * |
| 464 | 462 | * @param resource $img |
| 465 | 463 | * @param int $x |
| 466 | - * @param intr $y |
|
| 464 | + * @param integer $y |
|
| 467 | 465 | * @return array |
| 468 | 466 | */ |
| 469 | 467 | private static function getPixelColor($img, $x, $y) |
@@ -474,9 +472,9 @@ discard block |
||
| 474 | 472 | /** |
| 475 | 473 | * Ajusta o numero para o multiplo mais proximo de base |
| 476 | 474 | * |
| 477 | - * @param float $num |
|
| 478 | - * @param int $num |
|
| 479 | - * @return int |
|
| 475 | + * @param integer $num |
|
| 476 | + * @param integer $num |
|
| 477 | + * @return double |
|
| 480 | 478 | */ |
| 481 | 479 | private function closestMultiple($num = 0, $base = 8) |
| 482 | 480 | { |
@@ -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 | { |
@@ -593,7 +593,6 @@ discard block |
||
| 593 | 593 | * The default is set to zero and 30/180 " |
| 594 | 594 | * any different number of zero will generate multiples of. |
| 595 | 595 | * |
| 596 | - * @param int $paragraph |
|
| 597 | 596 | */ |
| 598 | 597 | public function setParagraph($value = 0) |
| 599 | 598 | { //n * 1/180-inch vertical motion |
@@ -618,7 +617,7 @@ discard block |
||
| 618 | 617 | * Prints data and feeds paper n lines |
| 619 | 618 | * ESC d n Prints data and feeds paper n lines. |
| 620 | 619 | * |
| 621 | - * @param type $lines |
|
| 620 | + * @param integer $lines |
|
| 622 | 621 | */ |
| 623 | 622 | public function lineFeed($lines = 1) |
| 624 | 623 | { |
@@ -869,8 +868,8 @@ discard block |
||
| 869 | 868 | /** |
| 870 | 869 | * |
| 871 | 870 | * @param type $type |
| 872 | - * @param type $data |
|
| 873 | - * @param type $source |
|
| 871 | + * @param string $data |
|
| 872 | + * @param string $source |
|
| 874 | 873 | * @throws InvalidArgumentException |
| 875 | 874 | */ |
| 876 | 875 | protected static function validateBarcodeData($type, $data, $source) |
@@ -974,7 +973,7 @@ discard block |
||
| 974 | 973 | * Generate two characters for a number: |
| 975 | 974 | * In lower and higher parts, or more parts as needed. |
| 976 | 975 | * |
| 977 | - * @param int $int Input number |
|
| 976 | + * @param int $input Input number |
|
| 978 | 977 | * @param int $length The number of bytes to output (1 - 4). |
| 979 | 978 | */ |
| 980 | 979 | protected static function intLowHigh($input, $length) |
@@ -993,7 +992,7 @@ discard block |
||
| 993 | 992 | * Convert widths and heights to characters. |
| 994 | 993 | * Used before sending graphics to set the size. |
| 995 | 994 | * |
| 996 | - * @param array $inputs |
|
| 995 | + * @param integer[] $inputs |
|
| 997 | 996 | * @param bool $long True to use 4 bytes, false to use 2 |
| 998 | 997 | * |
| 999 | 998 | * @return string |
@@ -23,10 +23,9 @@ |
||
| 23 | 23 | * @link http://github.com/nfephp-org/posprint for the canonical source repository |
| 24 | 24 | */ |
| 25 | 25 | |
| 26 | -use Posprint\Connectors\ConnectorInterface; |
|
| 27 | 26 | use Posprint\Connectors\Buffer; |
| 27 | +use Posprint\Connectors\ConnectorInterface; |
|
| 28 | 28 | use Posprint\Graphics\Graphics; |
| 29 | -use Exception; |
|
| 30 | 29 | |
| 31 | 30 | abstract class DefaultPrinter implements PrinterInterface |
| 32 | 31 | { |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * @link http://github.com/nfephp-org/posprint for the canonical source repository |
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | -use Posprint\Printers\DefaultPrinter; |
|
| 23 | +use Posprint\Printers\DefaultPrinter; |
|
| 24 | 24 | use Posprint\Printers\PrinterInterface; |
| 25 | 25 | |
| 26 | 26 | class Elgin extends DefaultPrinter implements PrinterInterface |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | * @link http://github.com/nfephp-org/posprint for the canonical source repository |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -use Posprint\Connectors\ConnectorInterface; |
|
| 17 | 16 | use PhpSerial; |
| 17 | +use Posprint\Connectors\ConnectorInterface; |
|
| 18 | 18 | |
| 19 | 19 | class Serial implements ConnectorInterface |
| 20 | 20 | { |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | * @link http://github.com/nfephp-org/posprint for the canonical source repository |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -use Posprint\Connectors\ConnectorInterface; |
|
| 17 | 16 | use PhpSerial; |
| 17 | +use Posprint\Connectors\ConnectorInterface; |
|
| 18 | 18 | |
| 19 | 19 | class Serial implements ConnectorInterface |
| 20 | 20 | { |