@@ -8,6 +8,10 @@ discard block |
||
| 8 | 8 | * seguinte forma: |
| 9 | 9 | * SE RESULTADO = 0 OU RESULTADO > 9 ENTAO DV = 1 |
| 10 | 10 | */ |
| 11 | + |
|
| 12 | + /** |
|
| 13 | + * @param string $numero |
|
| 14 | + */ |
|
| 11 | 15 | static function calculaModulo11SemDV0($numero) |
| 12 | 16 | { |
| 13 | 17 | $soma_resultados = Calculator::getResultadoSomaModulo11($numero); |
@@ -77,6 +81,11 @@ discard block |
||
| 77 | 81 | /* |
| 78 | 82 | * Formata um n�mero inserindo o valor desejado a esquerda at� que o tamanho seja igual a quantidade informada |
| 79 | 83 | */ |
| 84 | + |
|
| 85 | + /** |
|
| 86 | + * @param integer $tamanho |
|
| 87 | + * @param integer $insere |
|
| 88 | + */ |
|
| 80 | 89 | static function formataNumero($numero, $tamanho, $insere) |
| 81 | 90 | { |
| 82 | 91 | while (strlen($numero) < $tamanho) |
@@ -105,7 +114,7 @@ discard block |
||
| 105 | 114 | } |
| 106 | 115 | |
| 107 | 116 | /** |
| 108 | - * @param mixed $percentual Valor em % ou j� divido por 100 |
|
| 117 | + * @param integer $percentual Valor em % ou j� divido por 100 |
|
| 109 | 118 | * @param integer $base |
| 110 | 119 | * @return int |
| 111 | 120 | */ |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | * CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9. |
| 232 | 232 | * General-purpose code in very wide use world-wide |
| 233 | 233 | * |
| 234 | - * @param $code (string) code to represent. |
|
| 234 | + * @param string $code (string) code to represent. |
|
| 235 | 235 | * @param $extended (boolean) if true uses the extended mode. |
| 236 | 236 | * @param $checksum (boolean) if true add a checksum to the code. |
| 237 | 237 | * @return array barcode representation. |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | * Encode a string to be used for CODE 39 Extended mode. |
| 346 | 346 | * |
| 347 | 347 | * @param string $code code to represent. |
| 348 | - * @return bool|string encoded string. |
|
| 348 | + * @return false|string encoded string. |
|
| 349 | 349 | * @protected |
| 350 | 350 | */ |
| 351 | 351 | protected function encode_code39_ext($code) |
@@ -564,7 +564,7 @@ discard block |
||
| 564 | 564 | * CODE 93 - USS-93 |
| 565 | 565 | * Compact code similar to Code 39 |
| 566 | 566 | * |
| 567 | - * @param $code (string) code to represent. |
|
| 567 | + * @param string $code (string) code to represent. |
|
| 568 | 568 | * @return array barcode representation. |
| 569 | 569 | * @protected |
| 570 | 570 | */ |
@@ -799,7 +799,7 @@ discard block |
||
| 799 | 799 | /** |
| 800 | 800 | * Calculate CODE 93 checksum (modulo 47). |
| 801 | 801 | * |
| 802 | - * @param $code (string) code to represent. |
|
| 802 | + * @param string $code (string) code to represent. |
|
| 803 | 803 | * @return string checksum code. |
| 804 | 804 | * @protected |
| 805 | 805 | */ |
@@ -929,7 +929,7 @@ discard block |
||
| 929 | 929 | * Variation of Plessey code, with similar applications |
| 930 | 930 | * Contains digits (0 to 9) and encodes the data only in the width of bars. |
| 931 | 931 | * |
| 932 | - * @param $code (string) code to represent. |
|
| 932 | + * @param string $code (string) code to represent. |
|
| 933 | 933 | * @param $checksum (boolean) if true add a checksum to the code (modulo 11) |
| 934 | 934 | * @return array barcode representation. |
| 935 | 935 | * @protected |
@@ -997,7 +997,7 @@ discard block |
||
| 997 | 997 | * Used in airline ticket marking, photofinishing |
| 998 | 998 | * Contains digits (0 to 9) and encodes the data only in the width of bars. |
| 999 | 999 | * |
| 1000 | - * @param $code (string) code to represent. |
|
| 1000 | + * @param string $code (string) code to represent. |
|
| 1001 | 1001 | * @param $checksum (boolean) if true add a checksum to the code |
| 1002 | 1002 | * @return array barcode representation. |
| 1003 | 1003 | * @protected |
@@ -1045,7 +1045,7 @@ discard block |
||
| 1045 | 1045 | /** |
| 1046 | 1046 | * Convert binary barcode sequence to TCPDF barcode array. |
| 1047 | 1047 | * |
| 1048 | - * @param $seq (string) barcode as binary sequence. |
|
| 1048 | + * @param string $seq (string) barcode as binary sequence. |
|
| 1049 | 1049 | * @param $bararray (array) barcode array. |
| 1050 | 1050 | * òparam array $bararray TCPDF barcode array to fill up |
| 1051 | 1051 | * @return array barcode representation. |
@@ -1083,7 +1083,7 @@ discard block |
||
| 1083 | 1083 | * Compact numeric code, widely used in industry, air cargo |
| 1084 | 1084 | * Contains digits (0 to 9) and encodes the data in the width of both bars and spaces. |
| 1085 | 1085 | * |
| 1086 | - * @param $code (string) code to represent. |
|
| 1086 | + * @param string $code (string) code to represent. |
|
| 1087 | 1087 | * @param $checksum (boolean) if true add a checksum to the code |
| 1088 | 1088 | * @return array barcode representation. |
| 1089 | 1089 | * @protected |
@@ -1158,7 +1158,7 @@ discard block |
||
| 1158 | 1158 | * C128 barcodes. |
| 1159 | 1159 | * Very capable code, excellent density, high reliability; in very wide use world-wide |
| 1160 | 1160 | * |
| 1161 | - * @param $code (string) code to represent. |
|
| 1161 | + * @param string $code (string) code to represent. |
|
| 1162 | 1162 | * @param $type (string) barcode type: A, B, C or empty for automatic switch (AUTO mode) |
| 1163 | 1163 | * @return array barcode representation. |
| 1164 | 1164 | * @protected |
@@ -1600,7 +1600,7 @@ discard block |
||
| 1600 | 1600 | * UPC-A: Universal product code seen on almost all retail products in the USA and Canada |
| 1601 | 1601 | * UPC-E: Short version of UPC symbol |
| 1602 | 1602 | * |
| 1603 | - * @param $code (string) code to represent. |
|
| 1603 | + * @param string $code (string) code to represent. |
|
| 1604 | 1604 | * @param $len (string) barcode type: 6 = UPC-E, 8 = EAN8, 13 = EAN13, 12 = UPC-A |
| 1605 | 1605 | * @return array barcode representation. |
| 1606 | 1606 | * @protected |
@@ -1827,7 +1827,7 @@ discard block |
||
| 1827 | 1827 | * 2-Digit Ext.: Used to indicate magazines and newspaper issue numbers |
| 1828 | 1828 | * 5-Digit Ext.: Used to mark suggested retail price of books |
| 1829 | 1829 | * |
| 1830 | - * @param $code (string) code to represent. |
|
| 1830 | + * @param string $code (string) code to represent. |
|
| 1831 | 1831 | * @param $len (string) barcode type: 2 = 2-Digit, 5 = 5-Digit |
| 1832 | 1832 | * @return array barcode representation. |
| 1833 | 1833 | * @protected |
@@ -1911,7 +1911,7 @@ discard block |
||
| 1911 | 1911 | * POSTNET and PLANET barcodes. |
| 1912 | 1912 | * Used by U.S. Postal Service for automated mail sorting |
| 1913 | 1913 | * |
| 1914 | - * @param $code (string) zip code to represent. Must be a string containing a zip code of the form DDDDD or |
|
| 1914 | + * @param string $code (string) zip code to represent. Must be a string containing a zip code of the form DDDDD or |
|
| 1915 | 1915 | * DDDDD-DDDD. |
| 1916 | 1916 | * @param $planet (boolean) if true print the PLANET barcode, otherwise print POSTNET |
| 1917 | 1917 | * @return array barcode representation. |
@@ -1994,7 +1994,7 @@ discard block |
||
| 1994 | 1994 | * RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) - KIX (Klant index - Customer index) |
| 1995 | 1995 | * RM4SCC is the name of the barcode symbology used by the Royal Mail for its Cleanmail service. |
| 1996 | 1996 | * |
| 1997 | - * @param $code (string) code to print |
|
| 1997 | + * @param string $code (string) code to print |
|
| 1998 | 1998 | * @param $kix (boolean) if true prints the KIX variation (doesn't use the start and end symbols, and the checksum) |
| 1999 | 1999 | * - in this case the house number must be sufficed with an X and placed at the end of the code. |
| 2000 | 2000 | * @return array barcode representation. |
@@ -2161,7 +2161,7 @@ discard block |
||
| 2161 | 2161 | * CODABAR barcodes. |
| 2162 | 2162 | * Older code often used in library systems, sometimes in blood banks |
| 2163 | 2163 | * |
| 2164 | - * @param $code (string) code to represent. |
|
| 2164 | + * @param string $code (string) code to represent. |
|
| 2165 | 2165 | * @return array barcode representation. |
| 2166 | 2166 | * @protected |
| 2167 | 2167 | */ |
@@ -2225,7 +2225,7 @@ discard block |
||
| 2225 | 2225 | * CODE11 barcodes. |
| 2226 | 2226 | * Used primarily for labeling telecommunications equipment |
| 2227 | 2227 | * |
| 2228 | - * @param $code (string) code to represent. |
|
| 2228 | + * @param string $code (string) code to represent. |
|
| 2229 | 2229 | * @return array barcode representation. |
| 2230 | 2230 | * @protected |
| 2231 | 2231 | */ |
@@ -2334,7 +2334,7 @@ discard block |
||
| 2334 | 2334 | * Pharmacode |
| 2335 | 2335 | * Contains digits (0 to 9) |
| 2336 | 2336 | * |
| 2337 | - * @param $code (string) code to represent. |
|
| 2337 | + * @param string $code (string) code to represent. |
|
| 2338 | 2338 | * @return array barcode representation. |
| 2339 | 2339 | * @protected |
| 2340 | 2340 | */ |
@@ -2366,7 +2366,7 @@ discard block |
||
| 2366 | 2366 | * Pharmacode two-track |
| 2367 | 2367 | * Contains digits (0 to 9) |
| 2368 | 2368 | * |
| 2369 | - * @param $code (string) code to represent. |
|
| 2369 | + * @param string $code (string) code to represent. |
|
| 2370 | 2370 | * @return array barcode representation. |
| 2371 | 2371 | * @protected |
| 2372 | 2372 | */ |
@@ -2457,7 +2457,7 @@ discard block |
||
| 2457 | 2457 | * 0, 5, 9, or 11 digits. The allowable encoding ranges shall be no ZIP Code, 00000–99999, 000000000–999999999, |
| 2458 | 2458 | * and 00000000000–99999999999.</li></ul> |
| 2459 | 2459 | * |
| 2460 | - * @param $code (string) code to print, separate the ZIP (routing code) from the rest using a minus char '-' |
|
| 2460 | + * @param string $code (string) code to print, separate the ZIP (routing code) from the rest using a minus char '-' |
|
| 2461 | 2461 | * (BarcodeID_ServiceTypeID_MailerID_SerialNumber-RoutingCode) |
| 2462 | 2462 | * @return array barcode representation. |
| 2463 | 2463 | * @protected |
@@ -2929,7 +2929,7 @@ discard block |
||
| 2929 | 2929 | * Convert large integer number to hexadecimal representation. |
| 2930 | 2930 | * (requires PHP bcmath extension) |
| 2931 | 2931 | * |
| 2932 | - * @param $number (string) number to convert specified as a string |
|
| 2932 | + * @param string $number (string) number to convert specified as a string |
|
| 2933 | 2933 | * @return string hexadecimal representation |
| 2934 | 2934 | */ |
| 2935 | 2935 | public function dec_to_hex($number) |
@@ -2959,7 +2959,7 @@ discard block |
||
| 2959 | 2959 | * Convert large hexadecimal number to decimal representation (string). |
| 2960 | 2960 | * (requires PHP bcmath extension) |
| 2961 | 2961 | * |
| 2962 | - * @param $hex (string) hexadecimal number to convert specified as a string |
|
| 2962 | + * @param string $hex (string) hexadecimal number to convert specified as a string |
|
| 2963 | 2963 | * @return string hexadecimal representation |
| 2964 | 2964 | */ |
| 2965 | 2965 | public function hex_to_dec($hex) |
@@ -3025,7 +3025,7 @@ discard block |
||
| 3025 | 3025 | /** |
| 3026 | 3026 | * Reverse unsigned short value |
| 3027 | 3027 | * |
| 3028 | - * @param $num (int) value to reversr |
|
| 3028 | + * @param integer $num (int) value to reversr |
|
| 3029 | 3029 | * @return int reversed value |
| 3030 | 3030 | * @protected |
| 3031 | 3031 | */ |
@@ -3045,8 +3045,8 @@ discard block |
||
| 3045 | 3045 | /** |
| 3046 | 3046 | * generate Nof13 tables used for Intelligent Mail Barcode |
| 3047 | 3047 | * |
| 3048 | - * @param $n (int) is the type of table: 2 for 2of13 table, 5 for 5of13table |
|
| 3049 | - * @param $size (int) size of table (78 for n=2 and 1287 for n=5) |
|
| 3048 | + * @param integer $n (int) is the type of table: 2 for 2of13 table, 5 for 5of13table |
|
| 3049 | + * @param integer $size (int) size of table (78 for n=2 and 1287 for n=5) |
|
| 3050 | 3050 | * @return array requested table |
| 3051 | 3051 | * @protected |
| 3052 | 3052 | */ |
@@ -186,7 +186,7 @@ |
||
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
| 189 | - * @param Carbon|string $data_vencimento |
|
| 189 | + * @param Carbon $data_vencimento |
|
| 190 | 190 | * @return string |
| 191 | 191 | */ |
| 192 | 192 | public function calculaFatorVencimento($data_vencimento) |