Completed
Push — master ( 51d20a...9462c8 )
by Caio
04:10
created
src/Calculators/Calculator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
      * seguinte forma:
9 9
      *  SE RESULTADO = 0  OU RESULTADO > 9 ENTAO DV = 1
10 10
      *
11
-     * @param $numero
11
+     * @param string $numero
12 12
      * @return int
13 13
      */
14 14
     static function calculaModulo11SemDV0($numero)
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $multiplicador = $peso_superior;
155 155
         for ($i = $tamanho_numero_array - 1; $i >= 0; $i--)
156 156
         {
157
-            $res_multiplicacao = $numero_array[ $i ] * $multiplicador;
157
+            $res_multiplicacao = $numero_array[$i] * $multiplicador;
158 158
 
159 159
             if ($res_multiplicacao >= 10)
160 160
             {
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
                 $digito_unidade    = $resultado_array[1];
164 164
                 $res_multiplicacao = (int)$digito_dezena + (int)$digito_unidade;
165 165
             }
166
-            $resultado_multiplicacao_array[ $i ] = $res_multiplicacao;
166
+            $resultado_multiplicacao_array[$i] = $res_multiplicacao;
167 167
 
168 168
             if ($multiplicador <= $peso_inferior)
169 169
             {
@@ -195,8 +195,8 @@  discard block
 block discarded – undo
195 195
         $multiplicador = $peso_inferior;
196 196
         for ($i = $tamanho_numero_array - 1; $i >= 0; $i--)
197 197
         {
198
-            $res_multiplicacao                   = $numero_array[ $i ] * $multiplicador;
199
-            $resultado_multiplicacao_array[ $i ] = $res_multiplicacao;
198
+            $res_multiplicacao                   = $numero_array[$i] * $multiplicador;
199
+            $resultado_multiplicacao_array[$i] = $res_multiplicacao;
200 200
             if ($multiplicador >= $peso_superior)
201 201
             {
202 202
                 $multiplicador = $peso_inferior;
Please login to merge, or discard this patch.
src/Generators/Base/BarcodeGenerator.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1045,7 +1045,7 @@  discard block
 block discarded – undo
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.
@@ -2931,7 +2931,7 @@  discard block
 block discarded – undo
2931 2931
      * Convert large integer number to hexadecimal representation.
2932 2932
      * (requires PHP bcmath extension)
2933 2933
      *
2934
-     * @param $number (string) number to convert specified as a string
2934
+     * @param string $number (string) number to convert specified as a string
2935 2935
      * @return string hexadecimal representation
2936 2936
      */
2937 2937
     public function dec_to_hex($number)
@@ -2961,7 +2961,7 @@  discard block
 block discarded – undo
2961 2961
      * Convert large hexadecimal number to decimal representation (string).
2962 2962
      * (requires PHP bcmath extension)
2963 2963
      *
2964
-     * @param $hex (string) hexadecimal number to convert specified as a string
2964
+     * @param string $hex (string) hexadecimal number to convert specified as a string
2965 2965
      * @return string hexadecimal representation
2966 2966
      */
2967 2967
     public function hex_to_dec($hex)
@@ -3027,7 +3027,7 @@  discard block
 block discarded – undo
3027 3027
     /**
3028 3028
      * Reverse unsigned short value
3029 3029
      *
3030
-     * @param $num (int) value to reversr
3030
+     * @param integer $num (int) value to reversr
3031 3031
      * @return int reversed value
3032 3032
      * @protected
3033 3033
      */
@@ -3047,8 +3047,8 @@  discard block
 block discarded – undo
3047 3047
     /**
3048 3048
      * generate Nof13 tables used for Intelligent Mail Barcode
3049 3049
      *
3050
-     * @param $n    (int) is the type of table: 2 for 2of13 table, 5 for 5of13table
3051
-     * @param $size (int) size of table (78 for n=2 and 1287 for n=5)
3050
+     * @param integer $n    (int) is the type of table: 2 for 2of13 table, 5 for 5of13table
3051
+     * @param integer $size (int) size of table (78 for n=2 and 1287 for n=5)
3052 3052
      * @return array requested table
3053 3053
      * @protected
3054 3054
      */
Please login to merge, or discard this patch.
src/Models/Boletos/Base/Boleto.php 2 patches
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace CbCaio\Boletos\Models\Boletos\Base;
3 3
 
4
-use  CbCaio\Boletos\Generators\Barcode;
5
-use  CbCaio\Boletos\Models\Bancos\Contracts\BancoInterface;
6
-use  CbCaio\Boletos\Models\Beneficiario\Contracts\BeneficiarioInterface;
7
-use  CbCaio\Boletos\Models\BoletoInfo\Contracts\BoletoInfoInterface;
8
-use  CbCaio\Boletos\Models\Boletos\Contracts\BoletoInterface;
9
-use  CbCaio\Boletos\Models\Pagador\Contracts\PagadorInterface;
4
+use CbCaio\Boletos\Generators\Barcode;
5
+use CbCaio\Boletos\Models\Bancos\Contracts\BancoInterface;
6
+use CbCaio\Boletos\Models\Beneficiario\Contracts\BeneficiarioInterface;
7
+use CbCaio\Boletos\Models\BoletoInfo\Contracts\BoletoInfoInterface;
8
+use CbCaio\Boletos\Models\Boletos\Contracts\BoletoInterface;
9
+use CbCaio\Boletos\Models\Pagador\Contracts\PagadorInterface;
10 10
 
11 11
 abstract class Boleto implements BoletoInterface
12 12
 {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@
 block discarded – undo
188 188
                         break;
189 189
                     case ":vencimento":
190 190
                         $string = preg_replace("/$attribute" . '\b/',
191
-                                               $this->info->getDataVencimentoCalculada(), $string);
191
+                                                $this->info->getDataVencimentoCalculada(), $string);
192 192
                         break;
193 193
                 }
194 194
             }
Please login to merge, or discard this patch.
src/Models/BoletoInfo/BoletoInfo.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         if (isset($this->attributes['data_vencimento']))
91 91
         {
92 92
             return Carbon::createFromFormat($this->date_format, $this->attributes['data_vencimento'])
93
-                         ->setTime(0, 0, 0);
93
+                            ->setTime(0, 0, 0);
94 94
         } else
95 95
         {
96 96
             return NULL;
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         if (isset($this->attributes['data_documento']))
106 106
         {
107 107
             return Carbon::createFromFormat($this->date_format, $this->attributes['data_documento'])
108
-                         ->setTime(0, 0, 0);
108
+                            ->setTime(0, 0, 0);
109 109
         } else
110 110
         {
111 111
             return NULL;
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         if (isset($this->attributes['data_processamento']))
122 122
         {
123 123
             return Carbon::createFromFormat($this->date_format, $this->attributes['data_processamento'])
124
-                         ->setTime(0, 0, 0);
124
+                            ->setTime(0, 0, 0);
125 125
         } else
126 126
         {
127 127
             return NULL;
Please login to merge, or discard this patch.
src/Models/Boletos/BoletoCEF.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -232,8 +232,8 @@
 block discarded – undo
232 232
         $multiplicador = $peso_inferior;
233 233
         for ($i = $tamanho_numero_array - 1; $i >= 0; $i--)
234 234
         {
235
-            $res_multiplicacao                   = $numero_array[ $i ] * $multiplicador;
236
-            $resultado_multiplicacao_array[ $i ] = $res_multiplicacao;
235
+            $res_multiplicacao                   = $numero_array[$i] * $multiplicador;
236
+            $resultado_multiplicacao_array[$i] = $res_multiplicacao;
237 237
             if ($multiplicador >= $peso_superior)
238 238
             {
239 239
                 $multiplicador = $peso_inferior;
Please login to merge, or discard this patch.