Code Duplication    Length = 8-8 lines in 2 locations

src/Message.php 2 locations

@@ 1084-1091 (lines=8) @@
1081
        if (!empty($this->signedMixedPart)) {
1082
            $parts[] = $this->signedMixedPart;
1083
        }
1084
        if ($this->contentPart !== null) {
1085
            if ($this->contentPart->isMultiPart()) {
1086
                $parts[] = $this->contentPart;
1087
                $parts = array_merge($parts, $this->contentPart->getAllParts());
1088
            } else {
1089
                $parts[] = $this->contentPart;
1090
            }
1091
        }
1092
        if (!empty($this->attachmentParts)) {
1093
            $parts = array_merge($parts, $this->attachmentParts);
1094
        }
@@ 1141-1148 (lines=8) @@
1138
        if (!empty($this->signedMixedPart)) {
1139
            $parts[] = $this->signedMixedPart;
1140
        }
1141
        if ($this->contentPart !== null) {
1142
            if ($this->contentPart->isMultiPart()) {
1143
                $parts[] = $this->contentPart;
1144
                $parts = array_merge($parts, $this->contentPart->getAllParts());
1145
            } else {
1146
                $parts[] = $this->contentPart;
1147
            }
1148
        }
1149
        if (!empty($this->attachmentParts)) {
1150
            $parts = array_merge($parts, $this->attachmentParts);
1151
        }