Code Duplication    Length = 3-3 lines in 2 locations

src/View/Helper/FormHelper.php 1 location

@@ 2536-2538 (lines=3) @@
2533
            }
2534
2535
            // Move empty options into each type array.
2536
            if (isset($options['empty'][$type])) {
2537
                $options[$type]['empty'] = $options['empty'][$type];
2538
            }
2539
            if (isset($options['required']) && is_array($options[$type])) {
2540
                $options[$type]['required'] = $options['required'];
2541
            }

src/View/Widget/DateTimeWidget.php 1 location

@@ 146-148 (lines=3) @@
143
            $data[$select]['name'] = $data['name'] . '[' . $select . ']';
144
            $data[$select]['val'] = $selected[$select];
145
146
            if (!isset($data[$select]['empty'])) {
147
                $data[$select]['empty'] = $data['empty'];
148
            }
149
            if (!isset($data[$select]['disabled'])) {
150
                $data[$select]['disabled'] = $data['disabled'];
151
            }