Code Duplication    Length = 9-10 lines in 2 locations

src/Networks/Daisycon.php 2 locations

@@ 82-91 (lines=10) @@
79
            $Merchant->name = $merchant['name'];
80
            $Merchant->url = $merchant['display_url'];
81
            $Merchant->status = $merchant['status'];
82
            if (!empty($merchant['start_date'])) {
83
                if ($merchant['start_date'] == '0000-00-00') {
84
                    $Merchant->launch_date = null;
85
                }
86
                else {
87
                    $date = new \DateTime($merchant['start_date']);
88
                    //TODO check date format
89
                    //$Merchant->launch_date = $date;
90
                }
91
            }
92
            if (!empty($merchant['end_date'])) {
93
                if ($merchant['end_date'] == '0000-00-00') {
94
                    $Merchant->termination_date = null;
@@ 92-100 (lines=9) @@
89
                    //$Merchant->launch_date = $date;
90
                }
91
            }
92
            if (!empty($merchant['end_date'])) {
93
                if ($merchant['end_date'] == '0000-00-00') {
94
                    $Merchant->termination_date = null;
95
                }
96
                else {
97
                    $date = new \DateTime($merchant['end_date']);
98
                    $Merchant->termination_date = $date;
99
                }
100
            }
101
            $arrResult[] = $Merchant;
102
        }
103
        return $arrResult;