Completed
Push — master ( baa46f...086585 )
by Roberto
05:33 queued 02:06
created
src/Base.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
      * @param string $destinatario
126 126
      * @param string $data
127 127
      * @param string $numero
128
-     * @param string $valor
128
+     * @param integer $valor
129 129
      * @param string $chave
130 130
      * @param string $correcao
131 131
      * @param string $conduso
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -153,14 +153,14 @@
 block discarded – undo
153 153
             '{conduso}'
154 154
         );
155 155
         $replace = array(
156
-          $destinatario,
157
-          $dt->format('d/m/Y'),
158
-          $numero,
159
-          number_format($valor, 2, ',', '.'),
160
-          $this->config->fantasy,
161
-          $chave,
162
-          $correcao,
163
-          $conduso
156
+            $destinatario,
157
+            $dt->format('d/m/Y'),
158
+            $numero,
159
+            number_format($valor, 2, ',', '.'),
160
+            $this->config->fantasy,
161
+            $chave,
162
+            $correcao,
163
+            $conduso
164 164
         );
165 165
         $template = str_replace($search, $replace, $template);
166 166
         return $template;
Please login to merge, or discard this patch.
src/Mail.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
247 247
      * @param array $addresses
248 248
      * @param type $htmltemplate
249 249
      * @param PHPMailer $mailer
250
-     * @return \static
250
+     * @return Mail
251 251
      */
252 252
     public static function sendMail(
253 253
         stdClass $config,
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 
18 18
 use stdClass;
19 19
 use DOMDocument;
20
-use DateTime;
21 20
 use InvalidArgumentException;
22 21
 use RuntimeException;
23 22
 use NFePHP\Mail\Base;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
                 $this->fields->data = $dom->getElementsByTagName('ide')->item(0)
139 139
                     ->getElementsByTagName('dhEmi')->item(0)->nodeValue;
140 140
                 $this->fields->numero = $dom->getElementsByTagName('ide')->item(0)
141
-                     ->getElementsByTagName('nNF')->item(0)->nodeValue;
141
+                        ->getElementsByTagName('nNF')->item(0)->nodeValue;
142 142
                 $this->fields->valor = $dom->getElementsByTagName('vNF')->item(0)->nodeValue;
143 143
                 $this->subject = "NFe n. ".$this->fields->numero." - ".$this->config->fantasy;
144 144
                 break;
Please login to merge, or discard this patch.