Code Duplication    Length = 8-8 lines in 2 locations

src/Message.php 2 locations

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