Passed
Push — master ( 41f68b...a16981 )
by Zaahid
03:47
created
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
 
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
     public function createAndAddPartForAttachment(Message $message, $resource, $mimeType, $disposition, $filename = null)
343 343
     {
344 344
         if ($filename === null) {
345
-            $filename = 'file' . uniqid();
345
+            $filename = 'file'.uniqid();
346 346
         }
347 347
 
348 348
         $safe = iconv('UTF-8', 'US-ASCII//translit//ignore', $filename);
Please login to merge, or discard this patch.
src/Header/HeaderContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     public function add($name, $value)
126 126
     {
127 127
         $s = $this->getNormalizedHeaderName($name);
128
-        $this->headers[$this->nextIndex] = [ $name, $value ];
128
+        $this->headers[$this->nextIndex] = [$name, $value];
129 129
         $this->headerObjects[$this->nextIndex] = null;
130 130
         if (!isset($this->headerMap[$s])) {
131 131
             $this->headerMap[$s] = [];
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             return;
143 143
         }
144 144
         $i = $this->headerMap[$s][$offset];
145
-        $this->headers[$i] = [ $name, $value ];
145
+        $this->headers[$i] = [$name, $value];
146 146
         $this->headerObjects[$i] = null;
147 147
     }
148 148
 
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
@@ -54,9 +54,9 @@
 block discarded – undo
54 54
             return $this->part->getRawHeaderIterator();
55 55
         } elseif ($this->part->getParent() !== null && $this->part->getParent()->isMime()) {
56 56
             return new ArrayIterator([
57
-                [ 'Content-Type', $this->part->getContentType() ],
58
-                [ 'Content-Disposition', $this->part->getContentDisposition() ],
59
-                [ 'Content-Transfer-Encoding', $this->part->getContentTransferEncoding() ]
57
+                ['Content-Type', $this->part->getContentType()],
58
+                ['Content-Disposition', $this->part->getContentDisposition()],
59
+                ['Content-Transfer-Encoding', $this->part->getContentTransferEncoding()]
60 60
             ]);
61 61
         }
62 62
         return new ArrayIterator();
Please login to merge, or discard this patch.
src/Message/Helper/GenericHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         } else {
89 89
             $this->copyHeader($from, $to, 'Content-Transfer-Encoding');
90 90
         }
91
-        $rem = array_diff(self::$contentHeaders, [ 'Content-Type', 'Content-Transfer-Encoding']);
91
+        $rem = array_diff(self::$contentHeaders, ['Content-Type', 'Content-Transfer-Encoding']);
92 92
         foreach ($rem as $header) {
93 93
             $this->copyHeader($from, $to, $header);
94 94
         }
Please login to merge, or discard this patch.
src/Container.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     {
147 147
         return $this->getInstance(
148 148
             'partFilterFactory',
149
-            __NAMESPACE__ . '\Message\PartFilterFactory'
149
+            __NAMESPACE__.'\Message\PartFilterFactory'
150 150
         );
151 151
     }
152 152
     
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     {
195 195
         return $this->getInstance(
196 196
             'streamFactory',
197
-            __NAMESPACE__ . '\Stream\StreamFactory'
197
+            __NAMESPACE__.'\Stream\StreamFactory'
198 198
         );
199 199
     }
200 200
     
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
         }
208 208
         return $this->getInstance(
209 209
             'partStreamFilterManagerFactory',
210
-            __NAMESPACE__ . '\Message\Part\PartStreamFilterManagerFactory'
210
+            __NAMESPACE__.'\Message\Part\PartStreamFilterManagerFactory'
211 211
         );
212 212
     }
213 213
     
Please login to merge, or discard this patch.