Code Duplication    Length = 8-8 lines in 2 locations

src/Message.php 2 locations

@@ 1115-1122 (lines=8) @@
1112
        if (!empty($this->signedMixedPart)) {
1113
            $parts[] = $this->signedMixedPart;
1114
        }
1115
        if ($this->contentPart !== null) {
1116
            if ($this->contentPart->isMultiPart()) {
1117
                $parts[] = $this->contentPart;
1118
                $parts = array_merge($parts, $this->contentPart->getAllParts());
1119
            } else {
1120
                $parts[] = $this->contentPart;
1121
            }
1122
        }
1123
        if (!empty($this->attachmentParts)) {
1124
            $parts = array_merge($parts, $this->attachmentParts);
1125
        }
@@ 1172-1179 (lines=8) @@
1169
        if (!empty($this->signedMixedPart)) {
1170
            $parts[] = $this->signedMixedPart;
1171
        }
1172
        if ($this->contentPart !== null) {
1173
            if ($this->contentPart->isMultiPart()) {
1174
                $parts[] = $this->contentPart;
1175
                $parts = array_merge($parts, $this->contentPart->getAllParts());
1176
            } else {
1177
                $parts[] = $this->contentPart;
1178
            }
1179
        }
1180
        if (!empty($this->attachmentParts)) {
1181
            $parts = array_merge($parts, $this->attachmentParts);
1182
        }