<commit_before><?php namespace WebEd\Base\Http\Controllers;

use Illuminate\Routing\Controller;

class BaseFrontController extends BaseController
{
    /**
     * @var mixed|Controller|BaseController
     */
    protected $themeController;

    /**
     * @var string
     */
    protected $currentThemeName = 'webed-theme';

    /**
     * @param $type
     * @param $relatedId
     * @return null|string|mixed
     */
    protected function getMenu($type, $relatedId)
    {
        $menuHtml = webed_menu_render(get_setting('top_menu', 'top-menu'), [
            'class' => 'nav navbar-nav navbar-right',
            'container_class' => 'collapse navbar-collapse',
            'has_sub_class' => 'dropdown',
            'menu_active' => [
                'type' => $type,
                'related_id' => $relatedId,
            ]
        ]);
        view()->share([
            'cmsMenuHtml' => $menuHtml
        ]);
        return $menuHtml;
    }

    /**<commit_msg>Refactor<commit_after><?php namespace WebEd\Base\Http\Controllers;

use Illuminate\Routing\Controller;

class BaseFrontController extends BaseController
{
    /**
     * @var mixed|Controller|BaseController
     */
    protected $themeController;

    /**
     * @var string
     */
    protected $currentThemeName = 'webed-theme';

    /**
     * @param $type
     * @param $relatedId
     * @return null|string|mixed
     */
    protected function getMenu($type, $relatedId)
    {
        $menuHtml = webed_render_menu(get_setting('top_menu', 'top-menu'), [
            'class' => 'nav navbar-nav navbar-right',
            'container_class' => 'collapse navbar-collapse',
            'has_sub_class' => 'dropdown',
            'menu_active' => [
                'type' => $type,
                'related_id' => $relatedId,
            ]
        ]);
        view()->share([
            'cmsMenuHtml' => $menuHtml
        ]);
        return $menuHtml;
    }

    /**
{'fraction_non_alphanumeric': 0.14027849406910778, 'fraction_numerical': 0.0, 'mean_word_length': 2.017107309486781, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3303866', 'n_tokens_mistral': 572, 'n_tokens_neox': 567, 'n_words': 100}