Code Duplication    Length = 8-8 lines in 2 locations

src/Message.php 2 locations

@@ 1101-1108 (lines=8) @@
1098
        if (!empty($this->signedMixedPart)) {
1099
            $parts[] = $this->signedMixedPart;
1100
        }
1101
        if ($this->contentPart !== null) {
1102
            if ($this->contentPart->isMultiPart()) {
1103
                $parts[] = $this->contentPart;
1104
                $parts = array_merge($parts, $this->contentPart->getAllParts());
1105
            } else {
1106
                $parts[] = $this->contentPart;
1107
            }
1108
        }
1109
        if (!empty($this->attachmentParts)) {
1110
            $parts = array_merge($parts, $this->attachmentParts);
1111
        }
@@ 1158-1165 (lines=8) @@
1155
        if (!empty($this->signedMixedPart)) {
1156
            $parts[] = $this->signedMixedPart;
1157
        }
1158
        if ($this->contentPart !== null) {
1159
            if ($this->contentPart->isMultiPart()) {
1160
                $parts[] = $this->contentPart;
1161
                $parts = array_merge($parts, $this->contentPart->getAllParts());
1162
            } else {
1163
                $parts[] = $this->contentPart;
1164
            }
1165
        }
1166
        if (!empty($this->attachmentParts)) {
1167
            $parts = array_merge($parts, $this->attachmentParts);
1168
        }