Code Duplication    Length = 5-5 lines in 2 locations

code/forms/RepeatOrderForm.php 2 locations

@@ 182-186 (lines=5) @@
179
                }
180
            }
181
            $params = [];
182
            if (isset($data['Start']) && strtotime($data['Start']) > strtotime(Date("Y-m-d"))) {
183
                $params['Start'] = $data['Start'];
184
            } else {
185
                $params["Start"] = Date("Y-m-d");
186
            }
187
            if (isset($data['End'])  && strtotime($data['End']) > strtotime($params["Start"])) {
188
                $params['End'] = $data['End'];
189
            } else {
@@ 187-191 (lines=5) @@
184
            } else {
185
                $params["Start"] = Date("Y-m-d");
186
            }
187
            if (isset($data['End'])  && strtotime($data['End']) > strtotime($params["Start"])) {
188
                $params['End'] = $data['End'];
189
            } else {
190
                $params["End"] = Date("Y-m-d", strtotime("+1 year"));
191
            }
192
            if (isset($data['Period'])) {
193
                $params['Period'] = $data['Period'];
194
            } else {