Passed
Push — master ( 37aad3...325143 )
by Zaahid
03:26
created
src/Message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@
 block discarded – undo
181 181
         );
182 182
         return array_values(array_filter(
183 183
             $parts,
184
-            function ($part) {
184
+            function($part) {
185 185
                 return !(
186 186
                     $part->isTextPart()
187 187
                     && $part->getContentDisposition() === 'inline'
Please login to merge, or discard this patch.
src/Message/Helper/MultipartHelper.php 1 patch
Spacing   +3 added lines, -3 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
 
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
     public function createAndAddPartForAttachment(Message $message, $resource, $mimeType, $filename, $disposition)
341 341
     {
342 342
         if ($filename === null) {
343
-            $filename = 'file' . uniqid();
343
+            $filename = 'file'.uniqid();
344 344
         }
345 345
 
346 346
         $safe = iconv('UTF-8', 'US-ASCII//translit//ignore', $filename);
Please login to merge, or discard this patch.
src/Message/Helper/PrivacyHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,9 +110,9 @@
 block discarded – undo
110 110
     public function overwrite8bitContentEncoding(Message $message)
111 111
     {
112 112
         $parts = $message->getAllParts(new PartFilter([
113
-            'headers' => [ PartFilter::FILTER_INCLUDE => [
113
+            'headers' => [PartFilter::FILTER_INCLUDE => [
114 114
                 'Content-Transfer-Encoding' => '8bit'
115
-            ] ]
115
+            ]]
116 116
         ]));
117 117
         foreach ($parts as $part) {
118 118
             $contentType = strtolower($part->getContentType());
Please login to merge, or discard this patch.
src/Stream/MessagePartStream.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         $boundary = $part->getHeaderParameter('Content-Type', 'boundary');
136 136
         if ($boundary === null) {
137 137
             return array_map(
138
-                function ($child) {
138
+                function($child) {
139 139
                     return $child->getStream();
140 140
                 },
141 141
                 $part->getChildParts()
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $content = Psr7\stream_for();
166 166
         $this->writePartContentTo($content);
167 167
         $content->rewind();
168
-        $streams = [ $this->streamFactory->newHeaderStream($this->part), $content ];
168
+        $streams = [$this->streamFactory->newHeaderStream($this->part), $content];
169 169
 
170 170
         /**
171 171
          * @var ParentHeaderPart
Please login to merge, or discard this patch.