public function update($new_instance, $old_instance)
    {
        $instance = [];
        $instance['title'] = ( ! empty($new_instance['title']) ) ? \strip_tags($new_instance['title']) : '';
        $instance['show_parent'] = ( ! empty($new_instance['show_parent']) ) ? true : false;
        return $instance;
    }
public function update($new_instance, $old_instance)
    {
        $instance = [];
        $instance['title'] = ( ! empty($new_instance['title']) ) ? \strip_tags($new_instance['title']) : '';
        $instance['show_parent'] = ( ! empty($new_instance['show_parent']) ) ? true : false;
        return $instance;
    }
public function update ( $ new_instance , $ old_instance ) { $ instance = [ ] ; $ instance [ 'title' ] = ( ! empty ( $ new_instance [ 'title' ] ) ) ? \ strip_tags ( $ new_instance [ 'title' ] ) : '' ; $ instance [ 'show_parent' ] = ( ! empty ( $ new_instance [ 'show_parent' ] ) ) ? true : false ; return $ instance ; }
Update the widget upon saving.

@since  1.0.0

@param  array $new_instance Submitted instance args.
@param  array $old_instance Old instance args.
@return array New instance args to save.
Update the widget upon saving .