<commit_before><?php

namespace uran1980\yii\widgets\scrollToTop;

use yii\helpers\Html;

class ScrollToTop extends \yii\base\Widget
{
    public $isRegistered = false;

    /**
     * @inheritdoc
     */
    public function init()
    {
        $view = $this->getView();
        $bandles = $view->getAssetManager()->bundles;
        $this->isRegistered = isset($bandles['uran1980\\yii\\widgets\\scrollToTop\\ScrollToTopAsset']) ?: false;
        AppScrollToTopAsset::register($view);
    }

    /**
     * @inheritdoc
     */
    public function run()
    {
        if ( false === $this->isRegistered ) {
            return Html::a('', null, [
                'class' => 'scroll-to-top-link',
                'style' => 'display: none;',
                'href'  => '#wrapper',
            ]);
        }
    }
}
<commit_msg>code revision<commit_after><?php

namespace uran1980\yii\widgets\scrollToTop;

use yii\helpers\Html;

class ScrollToTop extends \yii\base\Widget
{
    public $isRegistered = false;

    /**
     * @inheritdoc
     */
    public function init()
    {
        $bandles = $this->view->assetManager->bundles;
        $this->isRegistered = isset($bandles['uran1980\\yii\\widgets\\scrollToTop\\ScrollToTopAsset']);
        AppScrollToTopAsset::register($this->view);
    }

    /**
     * @inheritdoc
     */
    public function run()
    {
        if ( false === $this->isRegistered ) {
            return Html::a('', null, [
                'class' => 'scroll-to-top-link',
                'style' => 'display: none;',
                'href'  => '#wrapper',
            ]);
        }
    }
}

{'fraction_non_alphanumeric': 0.16377171215880892, 'fraction_numerical': 0.009925558312655087, 'mean_word_length': 1.9542124542124542, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, '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': '1148592', 'n_tokens_mistral': 530, 'n_tokens_neox': 503, 'n_words': 80}