Skip to content

Commit 4d4e8a1

Browse files
authored
Update EmailComposer.php
1 parent d686373 commit 4d4e8a1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/EmailComposer.php

-4
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,9 @@ public function attach($file, $options = [])
221221
$attachments = null;
222222

223223
if (! empty($file) || ! is_null($file)) {
224-
225224
$attachments = $this->hasData('attachments') ? $this->getData('attachments') : [];
226225

227226
$attachments[] = compact('file', 'options');
228-
229227
}
230228

231229
return $this->setData('attachments', $attachments);
@@ -244,11 +242,9 @@ public function attachData($data, $name, array $options = [])
244242
$attachments = null;
245243

246244
if (! empty($data) || ! is_null($data)) {
247-
248245
$attachments = $this->hasData('rawAttachments') ? $this->getData('rawAttachments') : [];
249246

250247
$attachments[] = compact('data', 'name', 'options');
251-
252248
}
253249

254250
return $this->setData('rawAttachments', $attachments);

0 commit comments

Comments
 (0)