<commit_before><?php

namespace Brera;

class TemplateProjectorLocator
{
    /**
     * @var Projector[]
     */
    private $projectors = [];
    /**
     * @param string $code
     * @return Projector
     */

    public function getTemplateProjectorForCode($code)
    {
        $this->validateProjectorCode($code);

        if (!isset($this->projectors[$code])) {
            throw new UnableToLocateTemplateProjectorException(
                sprintf('Unable to locate projector for template code "%s".', $code)
            );
        }

        return $this->projectors[$code];
    }

    /**
     * @param string $code
     * @param Projector $projector
     */
    public function register($code, Projector $projector)
    {
        $this->validateProjectorCode($code);
        $this->projectors[$code] = $projector;
    }
<commit_msg>Issue #231: Fix coding standards violation<commit_after><?php

namespace Brera;

class TemplateProjectorLocator
{
    /**
     * @var Projector[]
     */
    private $projectors = [];

    /**
     * @param string $code
     * @return Projector
     */
    public function getTemplateProjectorForCode($code)
    {
        $this->validateProjectorCode($code);

        if (!isset($this->projectors[$code])) {
            throw new UnableToLocateTemplateProjectorException(
                sprintf('Unable to locate projector for template code "%s".', $code)
            );
        }

        return $this->projectors[$code];
    }

    /**
     * @param string $code
     * @param Projector $projector
     */
    public function register($code, Projector $projector)
    {
        $this->validateProjectorCode($code);
        $this->projectors[$code] = $projector;
    }

{'fraction_non_alphanumeric': 0.1295971978984238, 'fraction_numerical': 0.0017513134851138354, 'mean_word_length': 2.3088803088803087, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4018815', 'n_tokens_mistral': 491, 'n_tokens_neox': 477, 'n_words': 101}