<commit_before><?php

namespace App\Bootstrap;

use Core\Bootstrap\BootstrapInterface;
use Core\ErrorReporterRegister;

class ErrorReporterBootstrap implements BootstrapInterface
{
    public function boot()
    {
        $register = new ErrorReporterRegister();
        $register->setConfig($this->getConfig());
        $register->register();
    }

    private function getConfig()
    {
        return require __DIR__ . '/../../config/errorReporter.php';
    }
}<commit_msg>Show error message by errorReporter configuration<commit_after><?php

namespace App\Bootstrap;

use Core\Bootstrap\BootstrapInterface;
use Core\ErrorReporterRegister;

class ErrorReporterBootstrap implements BootstrapInterface
{
    public function boot()
    {
        ini_set('display_errors', $this->getConfig()['displayErrors']);

        $register = new ErrorReporterRegister();
        $register->setConfig($this->getConfig());
        $register->register();
    }

    private function getConfig()
    {
        return require __DIR__ . '/../../config/errorReporter.php';
    }
}
{'fraction_non_alphanumeric': 0.1213546566321731, 'fraction_numerical': 0.0, 'mean_word_length': 3.4705882352941178, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '237645', 'n_tokens_mistral': 288, 'n_tokens_neox': 282, 'n_words': 59}