Completed
Pull Request — master (#10)
by Roberto
14:05
created
src/Base.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use InvalidArgumentException;
6 6
 use NFePHP\Esfinge\Soap\CurlSoap;
7
-use NFePHP\Esfinge\Files\FileFolders;
8 7
 
9 8
 class Base
10 9
 {
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -227,6 +227,7 @@  discard block
 block discarded – undo
227 227
     /**
228 228
      * Monta a primeira parte de todas mensagens
229 229
      * @param string $namespace
230
+     * @param string $tipo
230 231
      * @return string
231 232
      */
232 233
     protected function buildMsgH($tipo, $namespace)
@@ -284,9 +285,10 @@  discard block
 block discarded – undo
284 285
     /**
285 286
      * Envia a mensagem para o webservice
286 287
      *
287
-     * @param string $urlService
288
-     * @param strting $body
289 288
      * @param string $method
289
+     * @param string $uri
290
+     * @param string $namespace
291
+     * @param string $met
290 292
      * @return string
291 293
      */
292 294
     protected function envia($uri, $namespace, $data, $method, $met)
Please login to merge, or discard this patch.
src/Soap/CurlSoap.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,6 +53,9 @@  discard block
 block discarded – undo
53 53
      */
54 54
     private $proxyPASS = '';
55 55
     
56
+    /**
57
+     * @param integer $timeout
58
+     */
56 59
     public function __construct($timeout, $aproxy)
57 60
     {
58 61
         $this->soapTimeout = $timeout;
@@ -70,7 +73,7 @@  discard block
 block discarded – undo
70 73
      * @param string $port numero da porta usada pelo proxy
71 74
      * @param string $user nome do usuário do proxy
72 75
      * @param string $pass senha de acesso ao proxy
73
-     * @return boolean
76
+     * @return boolean|null
74 77
      */
75 78
     public function setProxy($ipNumber, $port, $user = '', $pass = '')
76 79
     {
@@ -96,12 +99,12 @@  discard block
 block discarded – undo
96 99
     
97 100
     /**
98 101
      * Envia mensagem ao webservice
99
-     * @param string $urlsevice
102
+     * @param string $urlservice
100 103
      * @param string $namespace
101 104
      * @param string $header
102 105
      * @param string $body
103 106
      * @param string $method
104
-     * @return boolean|string
107
+     * @return string
105 108
      */
106 109
     public function send($urlservice, $namespace, $header, $body, $method)
107 110
     {
Please login to merge, or discard this patch.
src/Tools.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace NFePHP\Esfinge;
4 4
 
5 5
 use InvalidArgumentException;
6
-use RuntimeException;
7
-use NFePHP\Esfinge\Response;
8 6
 use NFePHP\Esfinge\Base;
7
+use NFePHP\Esfinge\Response;
8
+use RuntimeException;
9 9
 
10 10
 class Tools extends Base
11 11
 {
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,7 +56,6 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * Define o período de competência das informações
58 58
      * formado AAAABB sendo BB o bimestre de 01 até 06
59
-     * @param string $valor
60 59
      */
61 60
     public function setCompetencia($aaaabb)
62 61
     {
@@ -233,7 +232,7 @@  discard block
 block discarded – undo
233 232
      * Servidor
234 233
      * @param array $data
235 234
      * @param string $method
236
-     * @return array
235
+     * @return string|null
237 236
      */
238 237
     public function servidor($data = array(), $method = 'L')
239 238
     {
@@ -250,7 +249,7 @@  discard block
 block discarded – undo
250 249
      * Situação Servidor Folha Pagamento
251 250
      * @param array $data
252 251
      * @param string $method
253
-     * @return array
252
+     * @return string|null
254 253
      */
255 254
     public function situacaoServidorFolhaPagamento($data = array(), $method = 'L')
256 255
     {
@@ -266,7 +265,7 @@  discard block
 block discarded – undo
266 265
      * Componentes Folha Pagamento
267 266
      * @param array $data
268 267
      * @param string $method
269
-     * @return array
268
+     * @return string|null
270 269
      */
271 270
     public function componentesFolhaPagamento($data = array(), $method = 'L')
272 271
     {
@@ -282,7 +281,7 @@  discard block
 block discarded – undo
282 281
      * Folha Pagamento
283 282
      * @param array $data
284 283
      * @param string $method
285
-     * @return array
284
+     * @return string|null
286 285
      */
287 286
     public function folhaPagamento($data = array(), $method = 'L')
288 287
     {
Please login to merge, or discard this patch.