Passed
Push — 1.0.0 ( d49389...cbb558 )
by Zaahid
03:21
created
src/Message/Helper/MultipartHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function getUniqueBoundary($mimeType)
56 56
     {
57 57
         $type = ltrim(strtoupper(preg_replace('/^(multipart\/(.{3}).*|.*)$/i', '$2-', $mimeType)), '-');
58
-        return uniqid('----=MMP-' . $type . '.', true);
58
+        return uniqid('----=MMP-'.$type.'.', true);
59 59
     }
60 60
 
61 61
     /**
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $part->setRawHeader(
71 71
             'Content-Type',
72 72
             "$mimeType;\r\n\tboundary=\""
73
-                . $this->getUniqueBoundary($mimeType) . '"'
73
+                . $this->getUniqueBoundary($mimeType).'"'
74 74
         );
75 75
     }
76 76
 
Please login to merge, or discard this patch.
src/Stream/HeaderStream.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
             return $this->part->getRawHeaders();
35 35
         } elseif ($this->part->getParent() !== null && $this->part->getParent()->isMime()) {
36 36
             return [
37
-                [ 'Content-Type', $this->part->getContentType() ],
38
-                [ 'Content-Disposition', $this->part->getContentDisposition() ],
39
-                [ 'Content-Transfer-Encoding', $this->part->getContentTransferEncoding() ]
37
+                ['Content-Type', $this->part->getContentType()],
38
+                ['Content-Disposition', $this->part->getContentDisposition()],
39
+                ['Content-Transfer-Encoding', $this->part->getContentTransferEncoding()]
40 40
             ];
41 41
         }
42 42
         return [];
Please login to merge, or discard this patch.
src/Stream/MessagePartStream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
         $content = Psr7\stream_for();
140 140
         $this->writePartContentTo($this->part, $content);
141 141
         $content->rewind();
142
-        $streams = [ new HeaderStream($this->part), $content ];
142
+        $streams = [new HeaderStream($this->part), $content];
143 143
 
144 144
         if ($this->part instanceof ParentHeaderPart) {
145 145
             $streams = array_merge($streams, $this->getBoundaryAndChildStreams($this->part));
Please login to merge, or discard this patch.
src/Message.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         );
163 163
         return array_values(array_filter(
164 164
             $parts,
165
-            function ($part) {
165
+            function($part) {
166 166
                 return !(
167 167
                     $part->isTextPart()
168 168
                     && $part->getContentDisposition() === 'inline'
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
     public function addAttachmentPart($stringOrHandle, $mimeType, $filename = null, $disposition = 'attachment')
396 396
     {
397 397
         if ($filename === null) {
398
-            $filename = 'file' . uniqid();
398
+            $filename = 'file'.uniqid();
399 399
         }
400 400
         $part = $this->messageHelperService
401 401
             ->getMultipartHelper()
Please login to merge, or discard this patch.