Code Duplication    Length = 5-5 lines in 2 locations

code/forms/RepeatOrderForm.php 2 locations

@@ 235-239 (lines=5) @@
232
                }
233
            }
234
            $params = [];
235
            if (isset($data['Start']) && strtotime($data['Start']) > strtotime(Date("Y-m-d"))) {
236
                $params['Start'] = $data['Start'];
237
            } else {
238
                $params["Start"] = Date("Y-m-d");
239
            }
240
            if (isset($data['End'])  && strtotime($data['End']) > strtotime($params["Start"])) {
241
                $params['End'] = $data['End'];
242
            } else {
@@ 240-244 (lines=5) @@
237
            } else {
238
                $params["Start"] = Date("Y-m-d");
239
            }
240
            if (isset($data['End'])  && strtotime($data['End']) > strtotime($params["Start"])) {
241
                $params['End'] = $data['End'];
242
            } else {
243
                $params["End"] = Date("Y-m-d", strtotime("+1 year"));
244
            }
245
            if (isset($data['Period'])) {
246
                $params['Period'] = $data['Period'];
247
            } else {