<commit_before><?php
namespace Neos\Flow\Reflection\Exception;

/*
 * This file is part of the Neos.Flow package.
 *
 * (c) Contributors of the Neos Project - www.neos.io
 *
 * This package is Open Source Software. For the full copyright and license
 * information, please view the LICENSE file which was distributed with this
 * source code.
 */

/**
 * A "Class loading for reflection failed" exception
 *
 * @api
 */
class ClassLoadingForReflectionFailedException extends \Neos\Flow\Reflection\Exception
{
    protected $className;

    public static function forClassName($className): self {
        $exception = new self(sprintf('Required class "%s" could not be loaded properly for reflection.%2$s%2$sPossible reasons are:%2$s%2$s * Requiring non-existent classes%2$s * Using non-supported annotations%2$s * Class-/filename missmatch.%2$s%2$sThe "Neos.Flow.object.excludeClasses" setting can be used to skip classes from being reflected.', $className, chr(10)));
        $exception->className = $className;
        return $exception;
    }

    public function getClassName(): ?string {
        return $this->className;
    }
}
<commit_msg>TASK: Fix code style<commit_after><?php
namespace Neos\Flow\Reflection\Exception;

/*
 * This file is part of the Neos.Flow package.
 *
 * (c) Contributors of the Neos Project - www.neos.io
 *
 * This package is Open Source Software. For the full copyright and license
 * information, please view the LICENSE file which was distributed with this
 * source code.
 */

/**
 * A "Class loading for reflection failed" exception
 *
 * @api
 */
class ClassLoadingForReflectionFailedException extends \Neos\Flow\Reflection\Exception
{
    protected $className;

    public static function forClassName(string $className): self
    {
        $exception = new self(sprintf('Required class "%s" could not be loaded properly for reflection.%2$s%2$sPossible reasons are:%2$s%2$s * Requiring non-existent classes%2$s * Using non-supported annotations%2$s * Class-/filename missmatch.%2$s%2$sThe "Neos.Flow.object.excludeClasses" setting can be used to skip classes from being reflected.', $className, chr(10)));
        $exception->className = $className;
        return $exception;
    }

    public function getClassName(): ?string
    {
        return $this->className;
    }
}

{'fraction_non_alphanumeric': 0.10587726879861711, 'fraction_numerical': 0.00864304235090752, 'mean_word_length': 3.873684210526316, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5399649', 'n_tokens_mistral': 644, 'n_tokens_neox': 631, 'n_words': 218}