Passed
Push — master ( c1d1cf...f48ccd )
by Francimar
03:58
created
api/NFe/Common/CurlSoap.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -109,6 +109,9 @@
 block discarded – undo
109 109
         return $this->response->getElementsByTagName('Body')->item(0);
110 110
     }
111 111
 
112
+    /**
113
+     * @param \DOMDocument $body
114
+     */
112 115
     public function send($url, $body, $header = '', $action = null)
113 116
     {
114 117
         $this->setOpt(CURLOPT_SSLCERT, $this->getCertificate());
Please login to merge, or discard this patch.
api/NFe/Entity/Lacre.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@
 block discarded – undo
90 90
         return $element;
91 91
     }
92 92
 
93
+    /**
94
+     * @param string $name
95
+     */
93 96
     public function loadNode($element, $name = null)
94 97
     {
95 98
         $name = is_null($name)?'lacres':$name;
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.
api/util/Curl/MultiCurl.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      * @param  $query_parameters
47 47
      * @param  $data
48 48
      *
49
-     * @return object
49
+     * @return Curl
50 50
      */
51 51
     public function addDelete($url, $query_parameters = array(), $data = array())
52 52
     {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * @param  $url
71 71
      * @param  $mixed_filename
72 72
      *
73
-     * @return object
73
+     * @return Curl
74 74
      */
75 75
     public function addDownload($url, $mixed_filename)
76 76
     {
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      * @param  $url
105 105
      * @param  $data
106 106
      *
107
-     * @return object
107
+     * @return Curl
108 108
      */
109 109
     public function addGet($url, $data = array())
110 110
     {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param  $url
128 128
      * @param  $data
129 129
      *
130
-     * @return object
130
+     * @return Curl
131 131
      */
132 132
     public function addHead($url, $data = array())
133 133
     {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * @param  $url
151 151
      * @param  $data
152 152
      *
153
-     * @return object
153
+     * @return Curl
154 154
      */
155 155
     public function addOptions($url, $data = array())
156 156
     {
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      * @param  $url
174 174
      * @param  $data
175 175
      *
176
-     * @return object
176
+     * @return Curl
177 177
      */
178 178
     public function addPatch($url, $data = array())
179 179
     {
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      *     If true, will cause 303 redirections to be followed using GET requests (default: false).
201 201
      *     Note: Redirections are only followed if the CURLOPT_FOLLOWLOCATION option is set to true.
202 202
      *
203
-     * @return object
203
+     * @return Curl
204 204
      */
205 205
     public function addPost($url, $data = array(), $follow_303_with_post = false)
206 206
     {
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
      * @param  $url
240 240
      * @param  $data
241 241
      *
242
-     * @return object
242
+     * @return Curl
243 243
      */
244 244
     public function addPut($url, $data = array())
245 245
     {
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      * @param  $url
267 267
      * @param  $data
268 268
      *
269
-     * @return object
269
+     * @return Curl
270 270
      */
271 271
     public function addSearch($url, $data = array())
272 272
     {
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
      * @access public
295 295
      * @param  $curl
296 296
      *
297
-     * @return object
297
+     * @return Curl
298 298
      */
299 299
     public function addCurl(Curl $curl)
300 300
     {
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
      * @access public
442 442
      * @param  $string
443 443
      *
444
-     * @return bool
444
+     * @return boolean|null
445 445
      */
446 446
     public function setCookieString($string)
447 447
     {
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
      *
478 478
      * @access public
479 479
      * @param  $key
480
-     * @param  $value
480
+     * @param  string $value
481 481
      */
482 482
     public function setHeader($key, $value)
483 483
     {
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
      * Queue Handle
734 734
      *
735 735
      * @access private
736
-     * @param  $curl
736
+     * @param  Curl $curl
737 737
      */
738 738
     private function queueHandle($curl)
739 739
     {
Please login to merge, or discard this patch.
api/util/XMLSecEnc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
      * @param bool           $replace Whether the encrypted node should be replaced in the original tree. Default is true.
122 122
      * @throws Exception
123 123
      *
124
-     * @return DOMElement  The <xenc:EncryptedData>-element.
124
+     * @return DOMNode|null  The <xenc:EncryptedData>-element.
125 125
      */
126 126
     public function encryptNode($objKey, $replace = true)
127 127
     {
Please login to merge, or discard this patch.
api/util/XmlseclibsAdapter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -105,6 +105,9 @@
 block discarded – undo
105 105
         $this->transforms[] = $transformType;
106 106
     }
107 107
 
108
+    /**
109
+     * @param string $tag
110
+     */
108 111
     public function sign(DOMDocument $data, $tag = null)
109 112
     {
110 113
         if (null === $this->privateKey) {
Please login to merge, or discard this patch.
api/util/XMLSecurityDSig.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
     }
346 346
 
347 347
     /**
348
-     * @param $refNode
348
+     * @param DOMNode $refNode
349 349
      * @param string $data
350 350
      * @return bool
351 351
      */
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
     }
363 363
 
364 364
     /**
365
-     * @param $refNode
365
+     * @param DOMNode $refNode
366 366
      * @param DOMNode $objData
367 367
      * @param bool $includeCommentNodes
368 368
      * @return string
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
     /**
785 785
      * @param XMLSecurityKey $objKey
786 786
      * @param string $data
787
-     * @return mixed|string
787
+     * @return string|null
788 788
      */
789 789
     public function signData($objKey, $data)
790 790
     {
Please login to merge, or discard this patch.
api/util/XMLSecurityKey.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
      * Encrypts the given data (string) using the regarding php-extension, depending on the library assigned to algorithm in the contructor.
492 492
      *
493 493
      * @param string $data
494
-     * @return mixed|string
494
+     * @return string|null
495 495
      */
496 496
     public function encryptData($data)
497 497
     {
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
      * Decrypts the given data (string) using the regarding php-extension, depending on the library assigned to algorithm in the contructor.
508 508
      *
509 509
      * @param string $data
510
-     * @return mixed|string
510
+     * @return string|null
511 511
      */
512 512
     public function decryptData($data)
513 513
     {
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
      * Signs the data (string) using the extension assigned to the type in the constructor.
524 524
      *
525 525
      * @param string $data
526
-     * @return mixed|string
526
+     * @return string|null
527 527
      */
528 528
     public function signData($data)
529 529
     {
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
     }
632 632
 
633 633
     /**
634
-     * @param mixed $parent
634
+     * @param null|\DOMNode $parent
635 635
      */
636 636
     public function serializeKey($parent)
637 637
     {
Please login to merge, or discard this patch.
api/NFe/Log/Logger.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -108,6 +108,9 @@
 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)) {
Please login to merge, or discard this patch.