<commit_before><?php
/**
 * SxBootstrap
 *
 * @category SxBootstrap
 * @package SxBootstrap_View
 * @subpackage Helper
 *
 * @method \SxBootstrap\Controller\Plugin\FlashMessenger getPluginFlashMessenger()
 */
namespace SxBootstrap\View\Helper\Bootstrap;

use SxBootstrap\Controller\Plugin\FlashMessenger as PluginFlashMessenger;
use Zend\View\Helper\AbstractHelper;

class FlashMessenger extends AbstractHelper
{
    protected $classMessages = array(
        PluginFlashMessenger::NAMESPACE_INFO    => 'alert alert-info',
        PluginFlashMessenger::NAMESPACE_DEFAULT => 'alert alert-info',
        PluginFlashMessenger::NAMESPACE_SUCCESS => 'alert alert-success',
        PluginFlashMessenger::NAMESPACE_WARNING => 'alert alert-warning',
        PluginFlashMessenger::NAMESPACE_ERROR   => 'alert alert-error',
    );

    /**
     * @param null $namespace
     * @param bool $isBlock
     *
     * @return string
     */
    public function __invoke($namespace = null, $isBlock = false)
    {
        if (!empty($namespace)) {
            $messagesToPrint = $this->view->flashMessenger()->render($namespace);

            if (empty($messagesToPrint)) {
                return '';
            }
            $class = '';

            if (isset($this->classMessages[$namespace])) {
                $class = $this->classMessages[$namespace];
            }

            return $this->getView()->plugin('sxb_alert')->__invoke($messagesToPrint, $isBlock, $class)->render();
        }

        $message = '';
        foreach ($this->classMessages as $namespace => $class) {
            $messagesToPrint = $this->view->flashMessenger()->render($namespace);

            if (empty($messagesToPrint)) {
                continue;
            }

            if (isset($this->classMessages[$namespace])) {
                $class = $this->classMessages[$namespace];
            }

            $message .= $this->getView()->plugin('sxb_alert')->__invoke($messagesToPrint, $isBlock, $class)->render();
        }

        return $message;
    }
}<commit_msg>remove the render() on the call of alert helper<commit_after><?php
/**
 * SxBootstrap
 *
 * @category SxBootstrap
 * @package SxBootstrap_View
 * @subpackage Helper
 *
 * @method \SxBootstrap\Controller\Plugin\FlashMessenger getPluginFlashMessenger()
 */
namespace SxBootstrap\View\Helper\Bootstrap;

use SxBootstrap\Controller\Plugin\FlashMessenger as PluginFlashMessenger;
use Zend\View\Helper\AbstractHelper;

class FlashMessenger extends AbstractHelper
{
    protected $classMessages = array(
        PluginFlashMessenger::NAMESPACE_INFO    => 'alert alert-info',
        PluginFlashMessenger::NAMESPACE_DEFAULT => 'alert alert-info',
        PluginFlashMessenger::NAMESPACE_SUCCESS => 'alert alert-success',
        PluginFlashMessenger::NAMESPACE_WARNING => 'alert alert-warning',
        PluginFlashMessenger::NAMESPACE_ERROR   => 'alert alert-error',
    );

    /**
     * @param null $namespace
     * @param bool $isBlock
     *
     * @return string
     */
    public function __invoke($namespace = null, $isBlock = false)
    {
        if (!empty($namespace)) {
            $messagesToPrint = $this->view->flashMessenger()->render($namespace);

            if (empty($messagesToPrint)) {
                return '';
            }
            $class = '';

            if (isset($this->classMessages[$namespace])) {
                $class = $this->classMessages[$namespace];
            }

            return $this->getView()->plugin('sxb_alert')->__invoke($messagesToPrint, $isBlock, $class);
        }

        $message = '';
        foreach ($this->classMessages as $namespace => $class) {
            $messagesToPrint = $this->view->flashMessenger()->render($namespace);

            if (empty($messagesToPrint)) {
                continue;
            }

            if (isset($this->classMessages[$namespace])) {
                $class = $this->classMessages[$namespace];
            }

            $message .= $this->getView()->plugin('sxb_alert')->__invoke($messagesToPrint, $isBlock, $class);
        }

        return $message;
    }
}
{'fraction_non_alphanumeric': 0.13658536585365855, 'fraction_numerical': 0.0, 'mean_word_length': 2.6068601583113455, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 51, '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': '370308', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1096, 'n_words': 192}