Completed
Pull Request — master (#22)
by Roberto
26:46 queued 11:50
created
src/Base/BaseMail.php 1 patch
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
  * @link       http://github.com/nfephp-org/nfephp for the canonical source repository
14 14
  */
15 15
 
16
+use NFePHP\Common\Exception;
17
+use NFePHP\Common\Files;
16 18
 use Zend\Mail\Message;
19
+use Zend\Mail\Transport\Smtp as SmtpTransport;
20
+use Zend\Mail\Transport\SmtpOptions;
17 21
 use Zend\Mime\Message as MimeMessage;
18
-use Zend\Mime\Part as MimePart;
19 22
 use Zend\Mime\Mime;
20
-use Zend\Mail\Transport\SmtpOptions;
21
-use Zend\Mail\Transport\Smtp as SmtpTransport;
22
-use NFePHP\Common\Exception;
23
-use NFePHP\Common\Files;
23
+use Zend\Mime\Part as MimePart;
24 24
 
25 25
 if (!defined('NFEPHP_ROOT')) {
26 26
     define('NFEPHP_ROOT', dirname(dirname(dirname(__FILE__))));
Please login to merge, or discard this patch.
src/Certificate/Asn.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      *
29 29
      * Obtêm o numero de CNPJ da chave publica do Certificado (A1)
30 30
      *
31
-     * @param string $certpem conteúdo do certificado
31
+     * @param string $certPem conteúdo do certificado
32 32
      * @return string CNPJ
33 33
      */
34 34
     public static function getCNPJCert($certPem)
Please login to merge, or discard this patch.
src/Certificate/Base.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      * pem2Der
21 21
      * Transforma o certificado do formato PEM para o formato DER
22 22
      *
23
-     * @param string $pem_data
23
+     * @param string $pemData
24 24
      * @return string
25 25
      */
26 26
     protected static function pem2Der($pemData)
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param array $abIn
79 79
      * @param integer $qIn
80 80
      * @param boolean $flag
81
-     * @return integer
81
+     * @return integer[]
82 82
      */
83 83
     protected static function xBase128($abIn, $qIn, $flag)
84 84
     {
Please login to merge, or discard this patch.
src/Certificate/Pkcs12.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -408,9 +408,9 @@  discard block
 block discarded – undo
408 408
     /**
409 409
      * zSignXML
410 410
      * Método que provê a assinatura do xml conforme padrão SEFAZ
411
-     * @param DOMDocument $xmldoc
412
-     * @param DOMElement $root
413
-     * @param DOMElement $node
411
+     * @param Dom $xmldoc
412
+     * @param \DOMElement $root
413
+     * @param \DOMNode $node
414 414
      * @param resource $objSSLPriKey
415 415
      * @return string xml assinado
416 416
      * @internal param DOMDocument $xmlDoc
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
     
571 571
     /**
572 572
      * zSignCheck
573
-     * @param DOMDocument $dom
573
+     * @param Dom $dom
574 574
      * @return boolean
575 575
      * @throws Exception\RuntimeException
576 576
      */
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
     
611 611
     /**
612 612
      * zDigCheck
613
-     * @param DOMDocument $dom
613
+     * @param Dom $dom
614 614
      * @param string $tagid
615 615
      * @return boolean
616 616
      * @throws Exception\RuntimeException
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
  */
15 15
 
16 16
 use NFePHP\Common\Certificate\Asn;
17
-use NFePHP\Common\Exception;
18 17
 use NFePHP\Common\Dom\Dom;
18
+use NFePHP\Common\Exception;
19 19
 
20 20
 class Pkcs12
21 21
 {
Please login to merge, or discard this patch.
src/DateTime/DateTime.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,6 @@
 block discarded – undo
68 68
      * convertSefazTimeToTimestamp
69 69
      * Converte a imformação de data e tempo contida na NFe
70 70
      *
71
-     * @param string $DH Informação de data e tempo extraida da NFe
72 71
      * @return timestamp UNIX Para uso com a funçao date do php
73 72
      */
74 73
     public static function convertSefazTimeToTimestamp($dataHora = '')
Please login to merge, or discard this patch.
src/Dom/Dom.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
  */
14 14
 
15 15
 use \DOMDocument;
16
-use NFePHP\Common\Files\FilesFolders;
17 16
 use NFePHP\Common\Exception;
17
+use NFePHP\Common\Files\FilesFolders;
18 18
 
19 19
 class Dom extends DOMDocument
20 20
 {
Please login to merge, or discard this patch.
src/Files/FilesFolders.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,6 @@
 block discarded – undo
136 136
     /**
137 137
      * listDir
138 138
      * Obtem todo o conteúdo de um diretorio, e que atendam ao critério indicado.
139
-     * @param string $dir Diretorio a ser pesquisado
140 139
      * @param string $fileMatch Critério de seleção pode ser usados coringas como *-nfe.xml
141 140
      * @param boolean $retpath se true retorna o path completo dos arquivos se false so retorna o nome dos arquivos
142 141
      * @return array com os nome dos arquivos que atendem ao critério estabelecido ou false
Please login to merge, or discard this patch.
src/Files/FilesZip.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      * unGZip
66 66
      * Descompacta dados compactados GZIP via PHP
67 67
      * @param string $data Dados compactados com gzip em uma string
68
-     * @return mixed
68
+     * @return false|string
69 69
      */
70 70
     public static function unGZip($data = '')
71 71
     {
Please login to merge, or discard this patch.
src/Identify/Identify.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,8 @@
 block discarded – undo
85 85
     
86 86
     /**
87 87
      * zSearchNode
88
-     * @param DOMDocument $dom
88
+     * @param Dom $dom
89
+     * @param string $key
89 90
      * @return string
90 91
      */
91 92
     protected static function zSearchNode($dom, &$key)
Please login to merge, or discard this patch.