Completed
Pull Request — master (#58)
by
unknown
06:46
created
src/Base.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             case 'procEventoCTe':
165 165
                 $type = 'CCe';
166 166
                 $this->fields->chave = $dom->getElementsByTagName('chNFe')->item(0)->nodeValue;
167
-                $this->fields->id = $this->fields->chave.'-procCCe-'.strtolower(substr($name, -3));
167
+                $this->fields->id = $this->fields->chave . '-procCCe-' . strtolower(substr($name, -3));
168 168
                 $this->fields->data = $dom->getElementsByTagName('dhEvento')->item(0)->nodeValue;
169 169
                 $this->fields->correcao = $dom->getElementsByTagName('xCorrecao')->item(0)->nodeValue;
170 170
                 $this->fields->conduso = $dom->getElementsByTagName('xCondUso')->item(0)->nodeValue;
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             if (strpos($email, ';')) {
189 189
                 $emails = explode(';', $email);
190 190
 
191
-                $emails = array_map(function ($item) {
191
+                $emails = array_map(function($item) {
192 192
                     return trim($item);
193 193
                 }, $emails);
194 194
 
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
         if (!empty($this->pdf)) {
327 327
             $this->mail->addStringAttachment(
328 328
                 $this->pdf,
329
-                $this->fields->id. '.pdf',
329
+                $this->fields->id . '.pdf',
330 330
                 'base64',
331 331
                 'application/pdf'
332 332
             );
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@
 block discarded – undo
256 256
         //xml may be a NFe or a CTe or a CCe nothing else
257 257
         if ($type != 'NFe' && $type != 'CTe' && $type != 'CCe') {
258 258
             $msg = "Você deve passar apenas uma NFe ou um CTe ou um CCe. "
259
-              . "Esse documento não foi reconhecido.";
259
+                . "Esse documento não foi reconhecido.";
260 260
             throw new \InvalidArgumentException($msg);
261 261
         }
262 262
         $this->type = $type;
Please login to merge, or discard this patch.
src/Mail.php 7 patches
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -206,6 +206,4 @@
 block discarded – undo
206 206
         $mail->loadDocuments($xml, $pdf);
207 207
         $mail->loadTemplate($htmltemplate);
208 208
         $mail->send($addresses, false);
209
-        return $mail;
210
-    }
211
-}
209
+        return $mail
212 210
\ No newline at end of file
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -206,6 +206,4 @@
 block discarded – undo
206 206
         $mail->loadDocuments($xml, $pdf);
207 207
         $mail->loadTemplate($htmltemplate);
208 208
         $mail->send($addresses, false);
209
-        return $mail;
210
-    }
211
-}
209
+        return $mail
212 210
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -206,6 +206,4 @@
 block discarded – undo
206 206
         $mail->loadDocuments($xml, $pdf);
207 207
         $mail->loadTemplate($htmltemplate);
208 208
         $mail->send($addresses, false);
209
-        return $mail;
210
-    }
211
-}
209
+        return $mail
212 210
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -206,6 +206,4 @@
 block discarded – undo
206 206
         $mail->loadDocuments($xml, $pdf);
207 207
         $mail->loadTemplate($htmltemplate);
208 208
         $mail->send($addresses, false);
209
-        return $mail;
210
-    }
211
-}
209
+        return $mail
212 210
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         if (!empty($config->timelimit)) {
83 83
             $this->mail->Timelimit = $config->timelimit;
84 84
         }
85
-<<<<<<< HEAD
85
+<< << <<< HEAD
86 86
         if (isset($config->smtpoptions) && is_array($config->smtpoptions)) {
87 87
 =======
88 88
         if (is_array($config->smtpoptions)) {
@@ -206,6 +206,4 @@  discard block
 block discarded – undo
206 206
         $mail->loadDocuments($xml, $pdf);
207 207
         $mail->loadTemplate($htmltemplate);
208 208
         $mail->send($addresses, false);
209
-        return $mail;
210
-    }
211
-}
209
+        return $mail
212 210
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -206,6 +206,4 @@
 block discarded – undo
206 206
         $mail->loadDocuments($xml, $pdf);
207 207
         $mail->loadTemplate($htmltemplate);
208 208
         $mail->send($addresses, false);
209
-        return $mail;
210
-    }
211
-}
209
+        return $mail
212 210
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -206,6 +206,4 @@
 block discarded – undo
206 206
         $mail->loadDocuments($xml, $pdf);
207 207
         $mail->loadTemplate($htmltemplate);
208 208
         $mail->send($addresses, false);
209
-        return $mail;
210
-    }
211
-}
209
+        return $mail
212 210
\ No newline at end of file
Please login to merge, or discard this patch.