Passed
Branch master (a30936)
by Roberto
06:02
created
src/Connectors/Cups.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
  */
15 15
 
16 16
 use Posprint\Connectors\ConnectorInterface;
17
-use Exception;
18 17
 
19 18
 class Cups implements ConnectorInterface
20 19
 {
Please login to merge, or discard this patch.
src/Connectors/File.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
  * @link       http://github.com/nfephp-org/posprint for the canonical source repository
16 16
  */
17 17
 
18
-use Posprint\Connectors\ConnectorInterface;
19 18
 use Exception;
19
+use Posprint\Connectors\ConnectorInterface;
20 20
 
21 21
 class File implements ConnectorInterface
22 22
 {
Please login to merge, or discard this patch.
src/Connectors/Lpr.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -181,6 +181,7 @@
 block discarded – undo
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)
Please login to merge, or discard this 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 Exception;
17
+use Posprint\Connectors\ConnectorInterface;
18 18
 
19 19
 class Lpr implements ConnectorInterface
20 20
 {
Please login to merge, or discard this patch.
src/Connectors/Network.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 Exception;
17
+use Posprint\Connectors\ConnectorInterface;
18 18
 
19 19
 class Network implements ConnectorInterface
20 20
 {
Please login to merge, or discard this patch.
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/Connectors/Share.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Graphics/Graphics.php 2 patches
Doc Comments   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -292,10 +292,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Printers/Daruma.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
  * @link       http://github.com/nfephp-org/posprint for the canonical source repository
25 25
  */
26 26
 
27
-use Posprint\Printers\DefaultPrinter;
27
+use Posprint\Printers\DefaultPrinter;
28 28
 use Posprint\Printers\PrinterInterface;
29 29
 
30 30
 class Daruma extends DefaultPrinter implements PrinterInterface
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   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,10 +23,9 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.