Code Duplication    Length = 5-5 lines in 2 locations

src/Mailgun/Model/Domain/CreateResponse.php 1 location

@@ 65-69 (lines=5) @@
62
            }
63
        }
64
65
        if (isset($data['sending_dns_records'])) {
66
            foreach ($data['sending_dns_records'] as $item) {
67
                $tx[] = DnsRecord::create($item);
68
            }
69
        }
70
71
        return new self($domain, $rx, $tx, $message);
72
    }

src/Mailgun/Model/Domain/ShowResponse.php 1 location

@@ 55-59 (lines=5) @@
52
            }
53
        }
54
55
        if (isset($data['sending_dns_records'])) {
56
            foreach ($data['sending_dns_records'] as $item) {
57
                $tx[] = DnsRecord::create($item);
58
            }
59
        }
60
61
        return new self($domain, $rx, $tx);
62
    }