Completed
Push — master ( 3d583b...c523cc )
by Francimar
09:36
created
api/NFe/Log/Logger.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -108,6 +108,9 @@  discard block
 block discarded – undo
108 108
         chmod($filename, 0755);
109 109
     }
110 110
 
111
+    /**
112
+     * @param string $type
113
+     */
111 114
     private function write($type, $message)
112 115
     {
113 116
         if (!is_null($this->write_function)) {
@@ -115,16 +118,25 @@  discard block
 block discarded – undo
115 118
         }
116 119
     }
117 120
 
121
+    /**
122
+     * @param string $message
123
+     */
118 124
     protected function error($message)
119 125
     {
120 126
         $this->write('error', $message);
121 127
     }
122 128
 
129
+    /**
130
+     * @param string $message
131
+     */
123 132
     protected function warning($message)
124 133
     {
125 134
         $this->write('warning', $message);
126 135
     }
127 136
 
137
+    /**
138
+     * @param string $message
139
+     */
128 140
     protected function debug($message)
129 141
     {
130 142
         $this->write('debug', $message);
Please login to merge, or discard this patch.
api/NFe/Task/Envio.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@  discard block
 block discarded – undo
59 59
         $this->fromArray($envio);
60 60
     }
61 61
 
62
+    /**
63
+     * @return string
64
+     */
62 65
     public function getServico($normalize = false)
63 66
     {
64 67
         if (!$normalize) {
@@ -143,6 +146,9 @@  discard block
 block discarded – undo
143 146
         return $this;
144 147
     }
145 148
 
149
+    /**
150
+     * @return string|null
151
+     */
146 152
     public function getVersao()
147 153
     {
148 154
         $config = SEFAZ::getInstance()->getConfiguracao();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@
 block discarded – undo
29 29
 
30 30
 use NFe\Core\Nota;
31 31
 use NFe\Core\SEFAZ;
32
-use NFe\Common\Node;
33 32
 use NFe\Common\CurlSoap;
34 33
 
35 34
 class Envio
Please login to merge, or discard this patch.
api/NFe/Task/Evento.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -81,6 +81,7 @@  discard block
 block discarded – undo
81 81
     /**
82 82
      * Código do órgão de recepção do Evento. Utilizar a Tabela do IBGE
83 83
      * extendida, utilizar 91 para identificar o Ambiente Nacional
84
+     * @return string|null
84 85
      */
85 86
     public function getOrgao($normalize = false)
86 87
     {
@@ -175,6 +176,7 @@  discard block
 block discarded – undo
175 176
      * eventos será 1, nos casos em que possa existir mais de um evento, como é
176 177
      * o caso da carta de correção, o autor do evento deve numerar de forma
177 178
      * seqüencial.
179
+     * @return string|null
178 180
      */
179 181
     public function getSequencia($normalize = false)
180 182
     {
@@ -192,6 +194,7 @@  discard block
 block discarded – undo
192 194
 
193 195
     /**
194 196
      * Descrição do Evento
197
+     * @return string|null
195 198
      */
196 199
     public function getDescricao($normalize = false)
197 200
     {
@@ -211,6 +214,7 @@  discard block
 block discarded – undo
211 214
      * Número do Protocolo de Status da NF-e. 1 posição (1 – Secretaria de
212 215
      * Fazenda Estadual 2 – Receita Federal); 2 posições ano; 10 seqüencial no
213 216
      * ano.
217
+     * @return string|null
214 218
      */
215 219
     public function getNumero($normalize = false)
216 220
     {
@@ -228,6 +232,7 @@  discard block
 block discarded – undo
228 232
 
229 233
     /**
230 234
      * Justificativa do cancelamento
235
+     * @return string|null
231 236
      */
232 237
     public function getJustificativa($normalize = false)
233 238
     {
@@ -422,6 +427,9 @@  discard block
 block discarded – undo
422 427
         return $id;
423 428
     }
424 429
 
430
+    /**
431
+     * @param string $name
432
+     */
425 433
     public function getNode($name = null)
426 434
     {
427 435
         $this->setID($this->gerarID());
@@ -512,6 +520,9 @@  discard block
 block discarded – undo
512 520
         return $element;
513 521
     }
514 522
 
523
+    /**
524
+     * @param string $name
525
+     */
515 526
     public function loadNode($element, $name = null)
516 527
     {
517 528
         $name = is_null($name)?'infEvento':$name;
@@ -661,6 +672,7 @@  discard block
 block discarded – undo
661 672
 
662 673
     /**
663 674
      * Assina o XML com a assinatura eletrônica do tipo A1
675
+     * @param \DOMDocument $dom
664 676
      */
665 677
     public function assinar($dom = null)
666 678
     {
Please login to merge, or discard this patch.
api/NFe/Task/Inutilizacao.php 1 patch
Doc Comments   +22 added lines patch added patch discarded remove patch
@@ -92,6 +92,9 @@  discard block
 block discarded – undo
92 92
         return $this;
93 93
     }
94 94
 
95
+    /**
96
+     * @return string|null
97
+     */
95 98
     public function getCNPJ($normalize = false)
96 99
     {
97 100
         if (!$normalize) {
@@ -120,6 +123,9 @@  discard block
 block discarded – undo
120 123
         return $this;
121 124
     }
122 125
 
126
+    /**
127
+     * @return string|null
128
+     */
123 129
     public function getSerie($normalize = false)
124 130
     {
125 131
         if (!$normalize) {
@@ -134,6 +140,9 @@  discard block
 block discarded – undo
134 140
         return $this;
135 141
     }
136 142
 
143
+    /**
144
+     * @return string|null
145
+     */
137 146
     public function getInicio($normalize = false)
138 147
     {
139 148
         if (!$normalize) {
@@ -148,6 +157,9 @@  discard block
 block discarded – undo
148 157
         return $this;
149 158
     }
150 159
 
160
+    /**
161
+     * @return string|null
162
+     */
151 163
     public function getFinal($normalize = false)
152 164
     {
153 165
         if (!$normalize) {
@@ -162,6 +174,9 @@  discard block
 block discarded – undo
162 174
         return $this;
163 175
     }
164 176
 
177
+    /**
178
+     * @return string|null
179
+     */
165 180
     public function getJustificativa($normalize = false)
166 181
     {
167 182
         if (!$normalize) {
@@ -176,6 +191,9 @@  discard block
 block discarded – undo
176 191
         return $this;
177 192
     }
178 193
 
194
+    /**
195
+     * @return string|null
196
+     */
179 197
     public function getNumero($normalize = false)
180 198
     {
181 199
         if (!$normalize) {
@@ -284,6 +302,9 @@  discard block
 block discarded – undo
284 302
         return $id;
285 303
     }
286 304
 
305
+    /**
306
+     * @param string $name
307
+     */
287 308
     public function getNode($name = null)
288 309
     {
289 310
         $this->setID($this->gerarID());
@@ -423,6 +444,7 @@  discard block
 block discarded – undo
423 444
 
424 445
     /**
425 446
      * Assina o XML com a assinatura eletrônica do tipo A1
447
+     * @param \DOMDocument $dom
426 448
      */
427 449
     public function assinar($dom = null)
428 450
     {
Please login to merge, or discard this patch.
api/NFe/Task/Protocolo.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -49,6 +49,7 @@  discard block
 block discarded – undo
49 49
      * Chaves de acesso da NF-e, compostas por: UF do emitente, AAMM da emissão
50 50
      * da NFe, CNPJ do emitente, modelo, série e número da NF-e e código
51 51
      * numérico+DV.
52
+     * @return string|null
52 53
      */
53 54
     public function getChave($normalize = false)
54 55
     {
@@ -67,6 +68,7 @@  discard block
 block discarded – undo
67 68
     /**
68 69
      * Digest Value da NF-e processada. Utilizado para conferir a integridade
69 70
      * da NF-e original.
71
+     * @return string|null
70 72
      */
71 73
     public function getValidacao($normalize = false)
72 74
     {
@@ -86,6 +88,7 @@  discard block
 block discarded – undo
86 88
      * Número do Protocolo de Status da NF-e. 1 posição (1 – Secretaria de
87 89
      * Fazenda Estadual 2 – Receita Federal); 2 - códiga da UF - 2 posições
88 90
      * ano; 10 seqüencial no ano.
91
+     * @return string|null
89 92
      */
90 93
     public function getNumero($normalize = false)
91 94
     {
@@ -136,6 +139,9 @@  discard block
 block discarded – undo
136 139
         return $this;
137 140
     }
138 141
 
142
+    /**
143
+     * @param string $name
144
+     */
139 145
     public function loadNode($element, $name = null)
140 146
     {
141 147
         $name = is_null($name)?'infProt':$name;
Please login to merge, or discard this patch.
api/NFe/Task/Recibo.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -48,6 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     /**
50 50
      * Número do Recibo
51
+     * @return string|null
51 52
      */
52 53
     public function getNumero($normalize = false)
53 54
     {
@@ -269,6 +270,7 @@  discard block
 block discarded – undo
269 270
 
270 271
     /**
271 272
      * Valida o documento após assinar
273
+     * @param \DOMDocument $dom
272 274
      */
273 275
     public function validar($dom)
274 276
     {
Please login to merge, or discard this patch.
api/NFe/Task/Situacao.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -45,6 +45,7 @@  discard block
 block discarded – undo
45 45
      * Chaves de acesso da NF-e, compostas por: UF do emitente, AAMM da emissão
46 46
      * da NFe, CNPJ do emitente, modelo, série e número da NF-e e código
47 47
      * numérico+DV.
48
+     * @return string|null
48 49
      */
49 50
     public function getChave($normalize = false)
50 51
     {
@@ -171,6 +172,7 @@  discard block
 block discarded – undo
171 172
 
172 173
     /**
173 174
      * Valida o documento após assinar
175
+     * @param \DOMDocument $dom
174 176
      */
175 177
     public function validar($dom)
176 178
     {
Please login to merge, or discard this patch.
api/NFe/Task/Status.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -84,6 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
     /**
86 86
      * Versão do Aplicativo que processou a NF-e
87
+     * @return string|null
87 88
      */
88 89
     public function getVersao($normalize = false)
89 90
     {
@@ -118,6 +119,7 @@  discard block
 block discarded – undo
118 119
 
119 120
     /**
120 121
      * Descrição literal do status do serviço solicitado.
122
+     * @return string|null
121 123
      */
122 124
     public function getMotivo($normalize = false)
123 125
     {
Please login to merge, or discard this patch.
api/util/Curl/Curl.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      * Progress
223 223
      *
224 224
      * @access public
225
-     * @param  $callback
225
+     * @param  \Closure $callback
226 226
      */
227 227
     public function progress($callback)
228 228
     {
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
      * Get Info
439 439
      *
440 440
      * @access public
441
-     * @param  $opt
441
+     * @param  integer $opt
442 442
      *
443 443
      * @return mixed
444 444
      */
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
      * Get Opt
459 459
      *
460 460
      * @access public
461
-     * @param  $option
461
+     * @param  integer $option
462 462
      *
463 463
      * @return mixed
464 464
      */
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
      * Set Connect Timeout
795 795
      *
796 796
      * @access public
797
-     * @param  $seconds
797
+     * @param  integer $seconds
798 798
      */
799 799
     public function setConnectTimeout($seconds)
800 800
     {
@@ -981,7 +981,7 @@  discard block
 block discarded – undo
981 981
      * Set XML Decoder
982 982
      *
983 983
      * @access public
984
-     * @param  $function
984
+     * @param  \Closure $function
985 985
      */
986 986
     public function setXmlDecoder($function)
987 987
     {
@@ -1087,7 +1087,7 @@  discard block
 block discarded – undo
1087 1087
      * Set User Agent
1088 1088
      *
1089 1089
      * @access public
1090
-     * @param  $user_agent
1090
+     * @param  string $user_agent
1091 1091
      */
1092 1092
     public function setUserAgent($user_agent)
1093 1093
     {
@@ -1130,7 +1130,7 @@  discard block
 block discarded – undo
1130 1130
      * Using `curl -H "Host:" ...' is equivalent to $curl->removeHeader('Host');.
1131 1131
      *
1132 1132
      * @access public
1133
-     * @param  $key
1133
+     * @param  string $key
1134 1134
      */
1135 1135
     public function removeHeader($key)
1136 1136
     {
@@ -1263,7 +1263,7 @@  discard block
 block discarded – undo
1263 1263
      * @access private
1264 1264
      * @param  $raw_headers
1265 1265
      *
1266
-     * @return array
1266
+     * @return CaseInsensitiveArray
1267 1267
      */
1268 1268
     private function parseRequestHeaders($raw_headers)
1269 1269
     {
@@ -1280,7 +1280,7 @@  discard block
 block discarded – undo
1280 1280
      * Parse Response
1281 1281
      *
1282 1282
      * @access private
1283
-     * @param  $response_headers
1283
+     * @param  CaseInsensitiveArray $response_headers
1284 1284
      * @param  $raw_response
1285 1285
      *
1286 1286
      * @return mixed
@@ -1317,9 +1317,9 @@  discard block
 block discarded – undo
1317 1317
      * Parse Response Headers
1318 1318
      *
1319 1319
      * @access private
1320
-     * @param  $raw_response_headers
1320
+     * @param  string $raw_response_headers
1321 1321
      *
1322
-     * @return array
1322
+     * @return CaseInsensitiveArray
1323 1323
      */
1324 1324
     private function parseResponseHeaders($raw_response_headers)
1325 1325
     {
Please login to merge, or discard this patch.