Test Failed
Push — 2.0 ( 4d4d2f )
by Zaahid
04:35
created
src/Message/Helper/MultipartHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     public function getUniqueBoundary($mimeType)
47 47
     {
48 48
         $type = ltrim(strtoupper(preg_replace('/^(multipart\/(.{3}).*|.*)$/i', '$2-', $mimeType)), '-');
49
-        return uniqid('----=MMP-' . $type . '-', true);
49
+        return uniqid('----=MMP-'.$type.'-', true);
50 50
     }
51 51
 
52 52
     /**
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $part->setRawHeader(
62 62
             'Content-Type',
63 63
             "$mimeType;\r\n\tboundary=\""
64
-                . $this->getUniqueBoundary($mimeType) . '"'
64
+                . $this->getUniqueBoundary($mimeType).'"'
65 65
         );
66 66
         $part->notify();
67 67
     }
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
     public function createAndAddPartForAttachment(IMessage $message, $resource, $mimeType, $disposition, $filename = null, $encoding = 'base64')
331 331
     {
332 332
         if ($filename === null) {
333
-            $filename = 'file' . uniqid();
333
+            $filename = 'file'.uniqid();
334 334
         }
335 335
 
336 336
         $safe = iconv('UTF-8', 'US-ASCII//translit//ignore', $filename);
Please login to merge, or discard this patch.
src/Message/PartHeaderContainer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $s = $this->headerFactory->getNormalizedHeaderName($name);
90 90
         if (isset($this->headerMap[$s])) {
91 91
             $self = $this;
92
-            $filtered = array_filter($this->headerMap[$s], function ($h) use ($name, $self) {
92
+            $filtered = array_filter($this->headerMap[$s], function($h) use ($name, $self) {
93 93
                 return (strcasecmp($self->headers[$h][0], $name) === 0);
94 94
             });
95 95
             return (!empty($filtered)) ? $filtered : $this->headerMap[$s];
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $a = $this->getAllWithOriginalHeaderNameIfSet($name);
129 129
         if (!empty($a)) {
130 130
             $self = $this;
131
-            return array_map(function ($index) use ($self) {
131
+            return array_map(function($index) use ($self) {
132 132
                 return $self->getByIndex($index);
133 133
             }, $a);
134 134
         }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     public function add($name, $value)
208 208
     {
209 209
         $s = $this->headerFactory->getNormalizedHeaderName($name);
210
-        $this->headers[$this->nextIndex] = [ $name, $value ];
210
+        $this->headers[$this->nextIndex] = [$name, $value];
211 211
         $this->headerObjects[$this->nextIndex] = null;
212 212
         if (!isset($this->headerMap[$s])) {
213 213
             $this->headerMap[$s] = [];
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
             return;
236 236
         }
237 237
         $i = $this->headerMap[$s][$offset];
238
-        $this->headers[$i] = [ $name, $value ];
238
+        $this->headers[$i] = [$name, $value];
239 239
         $this->headerObjects[$i] = null;
240 240
     }
241 241
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      */
248 248
     public function getHeaderObjects()
249 249
     {
250
-        return array_filter(array_map([ $this, 'getByIndex' ], array_keys($this->headers)));
250
+        return array_filter(array_map([$this, 'getByIndex'], array_keys($this->headers)));
251 251
     }
252 252
 
253 253
     /**
Please login to merge, or discard this patch.
src/Message/PartChildrenContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $this->children,
102 102
             $index,
103 103
             0,
104
-            [ $part ]
104
+            [$part]
105 105
         );
106 106
     }
107 107
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     {
137 137
         if (!$value instanceof IMessagePart) {
138 138
             throw new InvalidArgumentException(
139
-                get_class($value) . ' is not a \ZBateson\MailMimeParser\Message\IMessagePart'
139
+                get_class($value).' is not a \ZBateson\MailMimeParser\Message\IMessagePart'
140 140
             );
141 141
         }
142 142
         $index = ($offset === null) ? count($this->children) : $offset;
Please login to merge, or discard this patch.
src/MailMimeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
     {
137 137
         $stream = Psr7\stream_for(
138 138
             $handleOrString,
139
-            [ 'metadata' => [ 'mmp-detached-stream' => $detached ] ]
139
+            ['metadata' => ['mmp-detached-stream' => $detached]]
140 140
         );
141 141
         if (!$stream->isSeekable()) {
142 142
             $stream = new CachingStream($stream);
Please login to merge, or discard this patch.