Code Duplication    Length = 3-3 lines in 2 locations

transports/mail/drivers/Postmark.php 1 location

@@ 97-99 (lines=3) @@
94
        foreach ($headers as $header) {
95
96
            // Omit headers which are handled elsewhere.
97
            if (in_array($fieldName = $header->getFieldName(), ['Subject', 'Content-Type', 'MIME-Version', 'Date', 'From', 'To'])) {
98
                continue;
99
            }
100
101
            if ($header instanceof \Swift_Mime_Headers_UnstructuredHeader || $header instanceof \Swift_Mime_Headers_OpenDKIMHeader) {
102

transports/mail/drivers/Sendgrid.php 1 location

@@ 99-101 (lines=3) @@
96
        foreach ($headers as $header) {
97
98
            // Omit headers which are handled elsewhere.
99
            if (in_array($fieldName = $header->getFieldName(), ['Subject', 'Content-Type', 'MIME-Version', 'Date', 'From', 'To'])) {
100
                continue;
101
            }
102
103
            if ($header instanceof \Swift_Mime_Headers_UnstructuredHeader || $header instanceof \Swift_Mime_Headers_OpenDKIMHeader) {
104
                $payload['Headers'][] = [