Completed
Pull Request — master (#38)
by Roberto
03:14
created
src/Printers/DefaultPrinter.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -581,7 +581,6 @@  discard block
 block discarded – undo
581 581
      * n  1/180-inch vertical motion
582 582
      * normal paragraph 30/180" => 4.23 mm
583 583
      * 
584
-     * @param int $paragraph
585 584
      */
586 585
     public function setParagraph($value = 0)
587 586
     {  
@@ -603,7 +602,7 @@  discard block
 block discarded – undo
603 602
      * Prints data and feeds paper n lines
604 603
      * ESC d n Prints data and feeds paper n lines.
605 604
      *
606
-     * @param type $lines
605
+     * @param integer $lines
607 606
      */
608 607
     public function lineFeed($lines = 1)
609 608
     {
@@ -861,7 +860,7 @@  discard block
 block discarded – undo
861 860
      * @param string $type
862 861
      * @param int    $id
863 862
      * @param string $data
864
-     * @return string 
863
+     * @return boolean 
865 864
      */
866 865
     protected static function validateBarcodeData($type, &$id, &$data)
867 866
     {
@@ -938,7 +937,7 @@  discard block
 block discarded – undo
938 937
      * Generate two characters for a number: 
939 938
      * In lower and higher parts, or more parts as needed.
940 939
      *
941
-     * @param int $int    Input number
940
+     * @param int $input    Input number
942 941
      * @param int $length The number of bytes to output (1 - 4).
943 942
      */
944 943
     protected static function intLowHigh($input, $length)
@@ -956,7 +955,7 @@  discard block
 block discarded – undo
956 955
      * Convert widths and heights to characters.
957 956
      * Used before sending graphics to set the size.
958 957
      *
959
-     * @param array $inputs
958
+     * @param integer[] $inputs
960 959
      * @param bool  $long   True to use 4 bytes, false to use 2
961 960
      * @return string
962 961
      */
Please login to merge, or discard this patch.
src/Extras/PhpSerial.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
  */
22 22
 
23 23
 use RuntimeException;
24
-use InvalidArgumentException;
25 24
 
26 25
 class PhpSerial
27 26
 {
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -717,7 +717,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.