Passed
Push — master ( 1ba554...6d939f )
by Zaahid
03:46
created
src/Message.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     private function getUniqueBoundary($mimeType)
187 187
     {
188 188
         $type = ltrim(strtoupper(preg_replace('/^(multipart\/(.{3}).*|.*)$/i', '$2-', $mimeType)), '-');
189
-        return uniqid('----=MMP-' . $type . $this->objectId . '.', true);
189
+        return uniqid('----=MMP-'.$type.$this->objectId.'.', true);
190 190
     }
191 191
     
192 192
     /**
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         $part->setRawHeader(
202 202
             'Content-Type',
203 203
             "$mimeType;\r\n\tboundary=\"" 
204
-                . $this->getUniqueBoundary($mimeType) . '"'
204
+                . $this->getUniqueBoundary($mimeType).'"'
205 205
         );
206 206
     }
207 207
     
@@ -548,9 +548,9 @@  discard block
 block discarded – undo
548 548
     private function overwrite8bitContentEncoding()
549 549
     {
550 550
         $parts = $this->getAllParts(new PartFilter([
551
-            'headers' => [ PartFilter::FILTER_INCLUDE => [
551
+            'headers' => [PartFilter::FILTER_INCLUDE => [
552 552
                 'Content-Transfer-Encoding' => '8bit'
553
-            ] ]
553
+            ]]
554 554
         ]));
555 555
         foreach ($parts as $part) {
556 556
             $contentType = strtolower($part->getHeaderValue('Content-Type', 'text/plain'));
@@ -893,7 +893,7 @@  discard block
 block discarded – undo
893 893
         );
894 894
         return array_values(array_filter(
895 895
             $parts,
896
-            function ($part) {
896
+            function($part) {
897 897
                 return !(
898 898
                     $part->isTextPart()
899 899
                     && $part->getHeaderValue('Content-Disposition', 'inline') === 'inline'
@@ -954,7 +954,7 @@  discard block
 block discarded – undo
954 954
     public function addAttachmentPart($stringOrHandle, $mimeType, $filename = null, $disposition = 'attachment')
955 955
     {
956 956
         if ($filename === null) {
957
-            $filename = 'file' . uniqid();
957
+            $filename = 'file'.uniqid();
958 958
         }
959 959
         $filename = iconv('UTF-8', 'US-ASCII//translit//ignore', $filename);
960 960
         $part = $this->createPartForAttachment();
Please login to merge, or discard this patch.