Code Duplication    Length = 3-3 lines in 2 locations

src/View/Widget/DateTimeWidget.php 1 location

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

src/View/Helper/FormHelper.php 1 location

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