Completed
Pull Request — master (#43)
by Antonio Oertel
03:28
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
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.
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
     
327 327
     /**
328 328
      * Retorna o timestamp da validade do certificado
329
-     * @return int
329
+     * @return double
330 330
      */
331 331
     public function getValidate()
332 332
     {
@@ -427,9 +427,9 @@  discard block
 block discarded – undo
427 427
     /**
428 428
      * zSignXML
429 429
      * Método que provê a assinatura do xml conforme padrão SEFAZ
430
-     * @param DOMDocument $xmldoc
431
-     * @param DOMElement $root
432
-     * @param DOMElement $node
430
+     * @param Dom $xmldoc
431
+     * @param \DOMElement $root
432
+     * @param \DOMNode $node
433 433
      * @param resource $objSSLPriKey
434 434
      * @param string $marcador
435 435
      * @param string $algorithm
@@ -598,7 +598,7 @@  discard block
 block discarded – undo
598 598
     
599 599
     /**
600 600
      * zSignCheck
601
-     * @param DOMDocument $dom
601
+     * @param Dom $dom
602 602
      * @return boolean
603 603
      * @throws Exception\RuntimeException
604 604
      */
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
     
639 639
     /**
640 640
      * zDigCheck
641
-     * @param DOMDocument $dom
641
+     * @param Dom $dom
642 642
      * @param string $tagid
643 643
      * @return boolean
644 644
      * @throws Exception\RuntimeException
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.