Code Duplication    Length = 4-4 lines in 2 locations

src/Networks/TradeDoubler.php 2 locations

@@ 98-101 (lines=4) @@
95
            $Merchant->merchant_ID = $merchant['cid'];
96
            $Merchant->name = $merchant['name'];
97
            $Merchant->status = $merchant['status'];
98
            if (!empty($merchant['launch_date'])) {
99
                $date = new \DateTime($merchant['launch_date']);
100
                $Merchant->launch_date = $date;
101
            }
102
            if (!empty($merchant['application_date'])) {
103
                $date = new \DateTime($merchant['application_date']);
104
                $Merchant->application_date = $date;
@@ 102-105 (lines=4) @@
99
                $date = new \DateTime($merchant['launch_date']);
100
                $Merchant->launch_date = $date;
101
            }
102
            if (!empty($merchant['application_date'])) {
103
                $date = new \DateTime($merchant['application_date']);
104
                $Merchant->application_date = $date;
105
            }
106
            $arrResult[] = $Merchant;
107
        }
108