Completed
Push — master ( 3d6456...22dadb )
by Roberto
06:51 queued 03:34
created
src/Mail.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
                 $this->fields->numero = $dom->getElementsByTagName('ide')->item(0)
176 176
                      ->getElementsByTagName('nNF')->item(0)->nodeValue;
177 177
                 $this->fields->valor = $dom->getElementsByTagName('vNF')->item(0)->nodeValue;
178
-                $this->subject = "NFe n. ".$this->fields->numero." - ".$this->config->fantasy;
178
+                $this->subject = "NFe n. " . $this->fields->numero . " - " . $this->config->fantasy;
179 179
                 break;
180 180
             case 'cteProc':
181 181
             case 'CTe':
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
                 $this->fields->numero = $dom->getElementsByTagName('ide')->item(0)
188 188
                     ->getElementsByTagName('nCT')->item(0)->nodeValue;
189 189
                 $this->fields->valor = $dom->getElementsByTagName('vRec')->item(0)->nodeValue;
190
-                $this->subject = "CTe n. ".$this->fields->numero." - ".$this->config->fantasy;
190
+                $this->subject = "CTe n. " . $this->fields->numero . " - " . $this->config->fantasy;
191 191
                 break;
192 192
             case 'procEventoNFe':
193 193
             case 'procEventoCTe':
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
                 if (empty($this->fields->chave)) {
200 200
                     $this->fields->chave = $dom->getElementsByTagName('chCTe')->item(0)->nodeValue;
201 201
                 }
202
-                $this->subject = "Carta de Correção ". $this->config->fantasy;
202
+                $this->subject = "Carta de Correção " . $this->config->fantasy;
203 203
                 break;
204 204
             default:
205 205
                 $type = '';
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         //may have one address in <dest><email>
209 209
         $email = !empty($dom->getElementsByTagName('email')->item(0)->nodeValue) ?
210 210
             $dom->getElementsByTagName('email')->item(0)->nodeValue : '';
211
-        if (! empty($email)) {
211
+        if (!empty($email)) {
212 212
             $this->addresses[] = $email;
213 213
         }
214 214
         //may have others in <obsCont xCampo="email"><xTexto>[email protected]</xTexto>
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
         //depending on the document a different template should be loaded
342 342
         //and having data patterns appropriately substituted
343 343
         $template = $this->templates[$this->type];
344
-        if (! empty($this->template)) {
344
+        if (!empty($this->template)) {
345 345
             $template = $this->template;
346 346
         }
347 347
         return $this->renderTemplate(
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
             $this->xml,
366 366
             $this->type . '.xml'
367 367
         );
368
-        if (! empty($this->pdf)) {
368
+        if (!empty($this->pdf)) {
369 369
             $this->mail->addStringAttachment(
370 370
                 $this->xml,
371 371
                 $this->type . '.pdf'
Please login to merge, or discard this patch.