Test Failed
Push — 1.0.0 ( d3c3e6...4505d9 )
by Zaahid
04:05
created
src/Header/Consumer/CommentConsumer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,9 +109,9 @@
 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
             }
Please login to merge, or discard this patch.
src/Header/Consumer/SubjectConsumer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,6 +63,6 @@
 block discarded – undo
63 63
     protected function getTokenSplitPattern()
64 64
     {
65 65
         $sChars = implode('|', $this->getAllTokenSeparators());
66
-        return '~(' . $sChars . ')~';
66
+        return '~('.$sChars.')~';
67 67
     }
68 68
 }
Please login to merge, or discard this patch.
src/Message/PartFilter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     public function __construct(array $filter = [])
158 158
     {
159
-        $params = [ 'multipart', 'textpart', 'signedpart', 'headers' ];
159
+        $params = ['multipart', 'textpart', 'signedpart', 'headers'];
160 160
         foreach ($params as $param) {
161 161
             if (isset($filter[$param])) {
162 162
                 $this->__set($param, $filter[$param]);
@@ -178,8 +178,8 @@  discard block
 block discarded – undo
178 178
         if (!in_array($value, $valid)) {
179 179
             $last = array_pop($valid);
180 180
             throw new InvalidArgumentException(
181
-                '$value parameter for ' . $name . ' must be one of '
182
-                . join(', ', $valid) . ' or ' . $last . ' - "' . $value
181
+                '$value parameter for '.$name.' must be one of '
182
+                . join(', ', $valid).' or '.$last.' - "'.$value
183 183
                 . '" provided'
184 184
             );
185 185
         }
@@ -194,11 +194,11 @@  discard block
 block discarded – undo
194 194
      */
195 195
     public function setHeaders(array $headers)
196 196
     {
197
-        array_walk($headers, function ($v, $k) {
197
+        array_walk($headers, function($v, $k) {
198 198
             $this->validateArgument(
199 199
                 'headers',
200 200
                 $k,
201
-                [ static::FILTER_EXCLUDE, static::FILTER_INCLUDE ]
201
+                [static::FILTER_EXCLUDE, static::FILTER_INCLUDE]
202 202
             );
203 203
             if (!is_array($v)) {
204 204
                 throw new InvalidArgumentException(
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
             $this->validateArgument(
226 226
                 $name,
227 227
                 $value,
228
-                [ static::FILTER_OFF, static::FILTER_EXCLUDE, static::FILTER_INCLUDE ]
228
+                [static::FILTER_OFF, static::FILTER_EXCLUDE, static::FILTER_INCLUDE]
229 229
             );
230 230
             $this->$name = $value;
231 231
         } elseif ($name === 'headers') {
Please login to merge, or discard this patch.
src/Header/Consumer/AbstractConsumer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
     {
167 167
         $sChars = implode('|', $this->getAllTokenSeparators());
168 168
         $mimePartPattern = MimeLiteralPart::MIME_PART_PATTERN;
169
-        return '~(' . $mimePartPattern . '|\\\\.|' . $sChars . ')~';
169
+        return '~('.$mimePartPattern.'|\\\\.|'.$sChars.')~';
170 170
     }
171 171
     
172 172
     /**
Please login to merge, or discard this patch.
src/Message/MessageParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
                 $this->addRawHeaderToPart($header, $partBuilder);
102 102
                 $header = '';
103 103
             } else {
104
-                $line = "\r\n" . $line;
104
+                $line = "\r\n".$line;
105 105
             }
106 106
             $header .= rtrim($line, "\r\n");
107 107
         } while ($header !== '');
Please login to merge, or discard this patch.
src/Message/Part/PartBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -339,8 +339,8 @@  discard block
 block discarded – undo
339 339
         if ($this->streamPartEndPos === 0) {
340 340
             return null;
341 341
         }
342
-        return $this->streamWrapperProtocol . '://' . $messageObjectId
343
-            . '?start=' . $this->streamPartStartPos . '&end='
342
+        return $this->streamWrapperProtocol.'://'.$messageObjectId
343
+            . '?start='.$this->streamPartStartPos.'&end='
344 344
             . $this->streamPartEndPos;
345 345
     }
346 346
     
@@ -356,8 +356,8 @@  discard block
 block discarded – undo
356 356
         if ($this->streamContentEndPos === 0) {
357 357
             return null;
358 358
         }
359
-        return $this->streamWrapperProtocol . '://' . $messageObjectId
360
-            . '?start=' . $this->streamContentStartPos . '&end='
359
+        return $this->streamWrapperProtocol.'://'.$messageObjectId
360
+            . '?start='.$this->streamContentStartPos.'&end='
361 361
             . $this->streamContentEndPos;
362 362
     }
363 363
     
Please login to merge, or discard this patch.
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/Util/CharsetConverter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -278,9 +278,9 @@  discard block
 block discarded – undo
278 278
     
279 279
     // maps
280 280
     protected $mappedRequestedCharsets = [
281
-        'UTF-8' => [ true, 'UTF-8' ],
282
-        'US-ASCII' => [ true, 'US-ASCII' ],
283
-        'ISO-8859-1' => [ true, 'ISO-8859-1' ],
281
+        'UTF-8' => [true, 'UTF-8'],
282
+        'US-ASCII' => [true, 'US-ASCII'],
283
+        'ISO-8859-1' => [true, 'ISO-8859-1'],
284 284
     ];
285 285
     
286 286
     /**
@@ -307,14 +307,14 @@  discard block
 block discarded – undo
307 307
         if ($str !== '') {
308 308
             if ($fromMbSupported && !$toMbSupported) {
309 309
                 $str = mb_convert_encoding($str, 'UTF-8', $from);
310
-                return iconv('UTF-8', $to . '//TRANSLIT//IGNORE', $str);
310
+                return iconv('UTF-8', $to.'//TRANSLIT//IGNORE', $str);
311 311
             } elseif (!$fromMbSupported && $toMbSupported) {
312 312
                 $str = iconv($from, 'UTF-8//TRANSLIT//IGNORE', $str);
313 313
                 return mb_convert_encoding($str, $to, 'UTF-8');
314 314
             } elseif ($fromMbSupported && $toMbSupported) {
315 315
                 return mb_convert_encoding($str, $to, $from);
316 316
             }
317
-            return iconv($from, $to . '//TRANSLIT//IGNORE', $str);
317
+            return iconv($from, $to.'//TRANSLIT//IGNORE', $str);
318 318
         }
319 319
         return $str;
320 320
     }
Please login to merge, or discard this patch.
src/Header/Part/SplitParameterToken.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,8 +158,8 @@
 block discarded – undo
158 158
         ksort($parts);
159 159
         return array_reduce(
160 160
             $parts,
161
-            function ($carry, $item) {
162
-                return $carry . $item;
161
+            function($carry, $item) {
162
+                return $carry.$item;
163 163
             },
164 164
             ''
165 165
         );
Please login to merge, or discard this patch.