Passed
Push — master ( 24955d...c95513 )
by Zaahid
06:27 queued 13s
created
src/Message/PartChildrenContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             $this->children,
103 103
             $index,
104 104
             0,
105
-            [ $part ]
105
+            [$part]
106 106
         );
107 107
     }
108 108
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     {
138 138
         if (!$value instanceof IMessagePart) {
139 139
             throw new InvalidArgumentException(
140
-                get_class($value) . ' is not a ZBateson\MailMimeParser\Message\IMessagePart'
140
+                get_class($value).' is not a ZBateson\MailMimeParser\Message\IMessagePart'
141 141
             );
142 142
         }
143 143
         $index = ($offset === null) ? count($this->children) : $offset;
Please login to merge, or discard this patch.
src/Header/Consumer/DateConsumer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,6 @@
 block discarded – undo
42 42
         foreach ($parts as $part) {
43 43
             $strValue .= $part->getValue();
44 44
         }
45
-        return [ $this->partFactory->newDatePart($strValue) ];
45
+        return [$this->partFactory->newDatePart($strValue)];
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
src/Header/Consumer/CommentConsumer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     protected function getTokenSeparators()
42 42
     {
43
-        return [ '\(', '\)' ];
43
+        return ['\(', '\)'];
44 44
     }
45 45
     
46 46
     /**
@@ -109,13 +109,13 @@  discard block
 block discarded – undo
109 109
         foreach ($parts as $part) {
110 110
             // order is important here - CommentPart extends LiteralPart
111 111
             if ($part instanceof CommentPart) {
112
-                $comment .= '(' . $part->getComment() . ')';
112
+                $comment .= '('.$part->getComment().')';
113 113
             } elseif ($part instanceof LiteralPart) {
114
-                $comment .= '"' . $part->getValue() . '"';
114
+                $comment .= '"'.$part->getValue().'"';
115 115
             } else {
116 116
                 $comment .= $part->getValue();
117 117
             }
118 118
         }
119
-        return [ $this->partFactory->newCommentPart($comment) ];
119
+        return [$this->partFactory->newCommentPart($comment)];
120 120
     }
121 121
 }
Please login to merge, or discard this patch.
src/Header/Consumer/IdConsumer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function getTokenSeparators()
24 24
     {
25
-        return [ '\s+', '<', '>' ];
25
+        return ['\s+', '<', '>'];
26 26
     }
27 27
     
28 28
     /**
Please login to merge, or discard this patch.
src/Header/Consumer/AbstractConsumer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     {
164 164
         $sChars = implode('|', $this->getAllTokenSeparators());
165 165
         $mimePartPattern = MimeLiteralPart::MIME_PART_PATTERN;
166
-        return '~(' . $mimePartPattern . '|\\\\.|' . $sChars . ')~';
166
+        return '~('.$mimePartPattern.'|\\\\.|'.$sChars.')~';
167 167
     }
168 168
 
169 169
     /**
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
                 return $consumer->parseTokensIntoParts($tokens);
250 250
             }
251 251
         }
252
-        return [ $this->getPartForToken($token, false) ];
252
+        return [$this->getPartForToken($token, false)];
253 253
     }
254 254
 
255 255
     /**
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
     {
267 267
         $token = $tokens->current();
268 268
         if (strlen($token) === 2 && $token[0] === '\\') {
269
-            return [ $this->getPartForToken(substr($token, 1), true) ];
269
+            return [$this->getPartForToken(substr($token, 1), true)];
270 270
         }
271 271
         return $this->getConsumerTokenParts($tokens);
272 272
     }
Please login to merge, or discard this patch.
src/Header/Consumer/AddressGroupConsumer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function getTokenSeparators()
36 36
     {
37
-        return [ ':', ';' ];
37
+        return [':', ';'];
38 38
     }
39 39
     
40 40
     /**
@@ -79,6 +79,6 @@  discard block
 block discarded – undo
79 79
             $emails[] = $part;
80 80
         }
81 81
         $group = $this->partFactory->newAddressGroupPart($emails);
82
-        return [ $group ];
82
+        return [$group];
83 83
     }
84 84
 }
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
@@ -69,9 +69,9 @@
 block discarded – undo
69 69
             return $this->part->getRawHeaderIterator();
70 70
         } elseif ($this->part->getParent() !== null && $this->part->getParent()->isMime()) {
71 71
             return new ArrayIterator([
72
-                [ HeaderConsts::CONTENT_TYPE, $this->part->getContentType() ],
73
-                [ HeaderConsts::CONTENT_DISPOSITION, $this->part->getContentDisposition() ],
74
-                [ HeaderConsts::CONTENT_TRANSFER_ENCODING, $this->part->getContentTransferEncoding() ]
72
+                [HeaderConsts::CONTENT_TYPE, $this->part->getContentType()],
73
+                [HeaderConsts::CONTENT_DISPOSITION, $this->part->getContentDisposition()],
74
+                [HeaderConsts::CONTENT_TRANSFER_ENCODING, $this->part->getContentTransferEncoding()]
75 75
             ]);
76 76
         }
77 77
         return new ArrayIterator();
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
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
     {
136 136
         $stream = Utils::streamFor(
137 137
             $resource,
138
-            [ 'metadata' => [ 'mmp-detached-stream' => ($attached !== true) ] ]
138
+            ['metadata' => ['mmp-detached-stream' => ($attached !== true)]]
139 139
         );
140 140
         if (!$stream->isSeekable()) {
141 141
             $stream = new CachingStream($stream);
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
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         $boundary = $part->getHeaderParameter(HeaderConsts::CONTENT_TYPE, 'boundary');
159 159
         if ($boundary === null) {
160 160
             return array_map(
161
-                function ($child) {
161
+                function($child) {
162 162
                     return $child->getStream();
163 163
                 },
164 164
                 $part->getChildParts()
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         $content = Psr7\Utils::streamFor();
189 189
         $this->writePartContentTo($content);
190 190
         $content->rewind();
191
-        $streams = [ $this->streamFactory->newHeaderStream($this->part), $content ];
191
+        $streams = [$this->streamFactory->newHeaderStream($this->part), $content];
192 192
 
193 193
         if ($this->part instanceof IMimePart && $this->part->getChildCount() > 0) {
194 194
             $streams = array_merge($streams, $this->getBoundaryAndChildStreams($this->part));
Please login to merge, or discard this patch.