Code Duplication    Length = 11-11 lines in 2 locations

tests/test-GeoDirectory.php 2 locations

@@ 1134-1144 (lines=11) @@
1131
        flush_rewrite_rules( true );
1132
    }
1133
1134
    function the_widget_form( $widget, $instance = array() ) {
1135
        global $wp_widget_factory;
1136
1137
        $widget_obj = $wp_widget_factory->widgets[$widget];
1138
        if ( ! ( $widget_obj instanceof WP_Widget ) ) {
1139
            return;
1140
        }
1141
1142
        $widget_obj->_set(-1);
1143
        $widget_obj->form($instance);
1144
    }
1145
1146
    function the_widget_form_update( $widget, $new_instance = array(), $old_instance = array() ) {
1147
        global $wp_widget_factory;
@@ 1146-1156 (lines=11) @@
1143
        $widget_obj->form($instance);
1144
    }
1145
1146
    function the_widget_form_update( $widget, $new_instance = array(), $old_instance = array() ) {
1147
        global $wp_widget_factory;
1148
1149
        $widget_obj = $wp_widget_factory->widgets[$widget];
1150
        if ( ! ( $widget_obj instanceof WP_Widget ) ) {
1151
            return;
1152
        }
1153
1154
        $widget_obj->_set(-1);
1155
        return $widget_obj->update($new_instance, $old_instance);
1156
    }
1157
1158
1159
    public function tearDown()