Completed
Push — master ( 147214...53e4d6 )
by Zaahid
09:05
created
src/Header/Consumer/GenericConsumer.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
         array $parts,
102 102
         array &$retParts,
103 103
         $curIndex,
104
-        HeaderPart &$spacePart,
104
+        HeaderPart & $spacePart,
105 105
         HeaderPart $lastPart
106 106
     ) {
107 107
         $count = count($parts);
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param int $curIndex
128 128
      * @param \ZBateson\MailMimeParser\Header\Part\HeaderPart $spacePart
129 129
      */
130
-    private function addSpaces(array $parts, array &$retParts, $curIndex, HeaderPart &$spacePart = null)
130
+    private function addSpaces(array $parts, array &$retParts, $curIndex, HeaderPart & $spacePart = null)
131 131
     {
132 132
         $lastPart = end($retParts);
133 133
         if ($spacePart !== null && $parts[$curIndex]->getValue() !== '' && $lastPart !== false) {
Please login to merge, or discard this patch.
src/Stream/Base64DecodeStreamFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         $raw = preg_replace('/\s+/', '', $bucket->data);
41 41
         if (!empty($this->leftover)) {
42
-            $raw = $this->leftover . $raw;
42
+            $raw = $this->leftover.$raw;
43 43
             $this->leftover = '';
44 44
         }
45 45
         $nLeftover = strlen($raw) % 3;
Please login to merge, or discard this patch.
src/Stream/Helper/CharsetConverter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -323,7 +323,7 @@
 block discarded – undo
323 323
             if ($this->fromCharsetMbSupported && $this->toCharsetMbSupported) {
324 324
                 return mb_convert_encoding($str, $this->toCharset, $this->fromCharset);
325 325
             }
326
-            return iconv($this->fromCharset, $this->toCharset . '//TRANSLIT//IGNORE', $str);
326
+            return iconv($this->fromCharset, $this->toCharset.'//TRANSLIT//IGNORE', $str);
327 327
         }
328 328
         return $str;
329 329
     }
Please login to merge, or discard this patch.
src/Stream/PartStreamRegistry.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                 $handle,
141 141
                 'mailmimeparser-encode',
142 142
                 STREAM_FILTER_READ,
143
-                [ 'charset' => $part->getHeaderParameter('Content-Type', 'charset') ]
143
+                ['charset' => $part->getHeaderParameter('Content-Type', 'charset')]
144 144
             );
145 145
         }
146 146
     }
@@ -160,8 +160,8 @@  discard block
 block discarded – undo
160 160
         if (empty($this->registeredHandles[$id])) {
161 161
             return null;
162 162
         }
163
-        $handle = fopen('mmp-mime-message://' . $id . '?start=' .
164
-            $start . '&end=' . $end, 'r');
163
+        $handle = fopen('mmp-mime-message://'.$id.'?start='.
164
+            $start.'&end='.$end, 'r');
165 165
         
166 166
         $this->attachEncodingFilterToStream($part, $handle);
167 167
         $this->attachCharsetFilterToStream($part, $handle);
Please login to merge, or discard this patch.
src/UUEncodedPart.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@
 block discarded – undo
50 50
         
51 51
         $this->setRawHeader(
52 52
             'Content-Type',
53
-            'application/octet-stream; name="' . addcslashes($filename, '"') . '"'
53
+            'application/octet-stream; name="'.addcslashes($filename, '"').'"'
54 54
         );
55 55
         $this->setRawHeader(
56 56
             'Content-Disposition',
57
-            'attachment; filename="' . addcslashes($filename, '"') . '"'
57
+            'attachment; filename="'.addcslashes($filename, '"').'"'
58 58
         );
59 59
         $this->setRawHeader('Content-Transfer-Encoding', 'x-uuencode');
60 60
     }
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
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
     protected function getTokenSplitPattern()
165 165
     {
166 166
         $sChars = implode('|', $this->getAllTokenSeparators());
167
-        return '~(\\\\.|' . $sChars . ')~';
167
+        return '~(\\\\.|'.$sChars.')~';
168 168
     }
169 169
     
170 170
     /**
Please login to merge, or discard this patch.
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/Message.php 2 patches
Doc Comments   -4 removed lines patch added patch discarded remove patch
@@ -502,7 +502,6 @@  discard block
 block discarded – undo
502 502
      * Creates and returns a new MimePart for the signature part of a
503 503
      * multipart/signed message and assigns it to $this->signedSignaturePart.
504 504
      * 
505
-     * @param string $protocol
506 505
      * @param string $body
507 506
      */
508 507
     public function createSignaturePart($body)
@@ -522,7 +521,6 @@  discard block
 block discarded – undo
522 521
      * Creates a multipart/mixed MimePart assigns it to $this->signedMixedPart
523 522
      * if the message contains attachments.
524 523
      * 
525
-     * @param array $parts
526 524
      */
527 525
     private function createMultipartMixedForSignedMessage()
528 526
     {
@@ -590,8 +588,6 @@  discard block
 block discarded – undo
590 588
      * 
591 589
      * @param string $micalg The Message Integrity Check algorithm being used
592 590
      * @param string $protocol The mime-type of the signature body
593
-     * @param string $body The signature signed according to the value of
594
-     *        $protocol
595 591
      */
596 592
     public function setAsMultipartSigned($micalg, $protocol)
597 593
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
      */
343 343
     private function getUniqueBoundary()
344 344
     {
345
-        return uniqid('----=MMP-' . $this->objectId . '.', true);
345
+        return uniqid('----=MMP-'.$this->objectId.'.', true);
346 346
     }
347 347
     
348 348
     /**
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
         $part->setRawHeader(
358 358
             'Content-Type',
359 359
             "$mimeType;\r\n\tboundary=\"" 
360
-                . $this->getUniqueBoundary() . "\""
360
+                . $this->getUniqueBoundary()."\""
361 361
         );
362 362
     }
363 363
     
@@ -830,7 +830,7 @@  discard block
 block discarded – undo
830 830
     public function addAttachmentPart($stringOrHandle, $mimeType, $filename = null, $disposition = 'attachment')
831 831
     {
832 832
         if ($filename === null) {
833
-            $filename = 'file' . uniqid();
833
+            $filename = 'file'.uniqid();
834 834
         }
835 835
         $filename = iconv('UTF-8', 'US-ASCII//translit//ignore', $filename);
836 836
         $part = $this->createPartForAttachment();
@@ -974,7 +974,7 @@  discard block
 block discarded – undo
974 974
      * @param \ZBateson\MailMimeParser\MimePart $boundaryParent
975 975
      * @param string $boundary
976 976
      */
977
-    private function writePartBoundaries($handle, MimePart $part, MimePart $parent, MimePart &$boundaryParent, $boundary)
977
+    private function writePartBoundaries($handle, MimePart $part, MimePart $parent, MimePart & $boundaryParent, $boundary)
978 978
     {
979 979
         if ($boundaryParent !== $parent && $boundaryParent !== $part) {
980 980
             if ($boundaryParent !== null && $parent->getParent() !== $boundaryParent) {
@@ -997,7 +997,7 @@  discard block
 block discarded – undo
997 997
      * @param \ZBateson\MailMimeParser\MimePart $parent
998 998
      * @param \ZBateson\MailMimeParser\MimePart $boundaryParent
999 999
      */
1000
-    private function writePartTo($handle, MimePart $part, MimePart $parent, MimePart &$boundaryParent)
1000
+    private function writePartTo($handle, MimePart $part, MimePart $parent, MimePart & $boundaryParent)
1001 1001
     {
1002 1002
         $boundary = $boundaryParent->getHeaderParameter('Content-Type', 'boundary');
1003 1003
         if (!empty($boundary)) {
Please login to merge, or discard this patch.
src/MimePart.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     /**
175 175
      * Returns true if this part's mime type is multipart/*
176 176
      * 
177
-     * @return bool
177
+     * @return integer
178 178
      */
179 179
     public function isMultiPart()
180 180
     {
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
      * Note that mime headers aren't case sensitive.
279 279
      * 
280 280
      * @param string $name
281
-     * @return \ZBateson\MailMimeParser\Header\Header
281
+     * @return Header\AbstractHeader|null
282 282
      */
283 283
     public function getHeader($name)
284 284
     {
Please login to merge, or discard this patch.