Code Duplication    Length = 9-9 lines in 2 locations

src/Networks/Daisycon.php 2 locations

@@ 82-90 (lines=9) @@
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_dates = null;
85
                }
86
                else {
87
                    $date = new \DateTime($merchant['start_date']);
88
                    $Merchant->launch_dates = $date;
89
                }
90
            }
91
            if (!empty($merchant['end_date'])) {
92
                if ($merchant['end_date'] == '0000-00-00') {
93
                    $Merchant->termination_date = null;
@@ 91-99 (lines=9) @@
88
                    $Merchant->launch_dates = $date;
89
                }
90
            }
91
            if (!empty($merchant['end_date'])) {
92
                if ($merchant['end_date'] == '0000-00-00') {
93
                    $Merchant->termination_date = null;
94
                }
95
                else {
96
                    $date = new \DateTime($merchant['end_date']);
97
                    $Merchant->termination_date = $date;
98
                }
99
            }
100
            $arrResult[] = $Merchant;
101
        }
102
        return $arrResult;