PHP Closure .. Make It Nice and Concise

So… With PHP Closure, I can do this. Nice and concise.

function the_widgets_init()
{
    // register_sidebar([
    //     // 'name' => __('Primary Sidebar', 'the'),
    //     // 'id' => 'sidebar-1',
    //     // 'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    //     // 'after_widget' => '</aside>',
    //     // 'before_title' => '<h1 class="widget-title">',
    //     // 'after_title' => '</h1>'
    // ]);

    $_widget = function ($widget_name, $widget_id) {
        return [
            'name' => __($widget_name, 'the'),
            'id' => $widget_id,
            'before_widget' => '<div id="%1$s" class="panel panel-default widget %2$s"><div class="panel-body">',
            'after_widget' => '</div></div>',
            'before_title' => '<h3 class="widget-title">',
            'after_title' => '</h3>'
        ];
    };

    register_sidebar($_widget('Information Block', 'info-block'));
    register_sidebar($_widget('Guarantee', 'guarantee'));
}