Completed
Push — master ( c5f7b8...442191 )
by Roberto
03:20
created
src/Connectors/Serial.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Printers/DefaultPrinter.php 2 patches
Doc Comments   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -593,7 +593,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
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.
src/Extras/PhpSerial.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -319,7 +319,6 @@  discard block
 block discarded – undo
319 319
      * Set automatic send massage to serial
320 320
      * 
321 321
      * @param bool $auto
322
-     * @param float $time
323 322
      */
324 323
     public function setAuto($auto, $waittime)
325 324
     {
@@ -716,7 +715,7 @@  discard block
 block discarded – undo
716 715
      * 
717 716
      * @param type $cmd
718 717
      * @param type $out
719
-     * @return type
718
+     * @return integer
720 719
      */
721 720
     protected function execCommand($cmd, &$out = null)
722 721
     {
Please login to merge, or discard this patch.
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.