Code Duplication    Length = 5-5 lines in 2 locations

code/forms/RepeatOrderForm.php 2 locations

@@ 219-223 (lines=5) @@
216
                }
217
            }
218
            $params = [];
219
            if (isset($data['Start']) && strtotime($data['Start']) > strtotime(Date("Y-m-d"))) {
220
                $params['Start'] = $data['Start'];
221
            } else {
222
                $params["Start"] = Date("Y-m-d");
223
            }
224
            if (isset($data['End'])  && strtotime($data['End']) > strtotime($params["Start"])) {
225
                $params['End'] = $data['End'];
226
            } else {
@@ 224-228 (lines=5) @@
221
            } else {
222
                $params["Start"] = Date("Y-m-d");
223
            }
224
            if (isset($data['End'])  && strtotime($data['End']) > strtotime($params["Start"])) {
225
                $params['End'] = $data['End'];
226
            } else {
227
                $params["End"] = Date("Y-m-d", strtotime("+1 year"));
228
            }
229
            if (isset($data['Period'])) {
230
                $params['Period'] = $data['Period'];
231
            } else {