Test Setup Failed
Pull Request — master (#48)
by Roberto
03:47
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.
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.
src/Mail.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         if (strlen($value) > 500
119 119
             && (substr($value, 0, 1) == '<' || substr($value, 0, 5) == "%PDF-")
120 120
         ){
121
-           return false;
121
+            return false;
122 122
         }
123 123
         //caso contrario pode ser um path muito longo !!
124 124
         $value = strval(str_replace("\0", "", $value));
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
         //de um xml ou de um PDF então verificar
118 118
         if (strlen($value) > 500
119 119
             && (substr($value, 0, 1) == '<' || substr($value, 0, 5) == "%PDF-")
120
-        ){
120
+        ) {
121 121
            return false;
122 122
         }
123 123
         //caso contrario pode ser um path muito longo !!
Please login to merge, or discard this patch.