<commit_before><?php namespace Orchestra\Foundation\Listeners;

use Orchestra\Model\User;

class UserAccess
{
    /**
     * Match current user to roles.
     *
     * @param  \Orchestra\Model\User|null  $user
     *
     * @return \Illuminate\Support\Collection|array
     */
    public function handle(User $user = null)
    {
        // When user is null, we should expect the roles is not available.
        // Therefore, returning null would propagate any other event
        // listeners (if any) to try resolve the roles.
        if (is_null($user)) {
            return;
        }

        $roles = $user->getRoles();

        return $roles;

    }
}<commit_msg>Update CS.<commit_after><?php namespace Orchestra\Foundation\Listeners;

use Orchestra\Model\User;

class UserAccess
{
    /**
     * Match current user to roles.
     *
     * @param  \Orchestra\Model\User|null  $user
     *
     * @return \Illuminate\Support\Collection|array
     */
    public function handle(User $user = null)
    {
        // When user is null, we should expect the roles is not available.
        // Therefore, returning null would propagate any other event
        // listeners (if any) to try resolve the roles.
        if (is_null($user)) {
            return;
        }

        $roles = $user->getRoles();

        return $roles;
    }
}
{'fraction_non_alphanumeric': 0.10703592814371257, 'fraction_numerical': 0.0, 'mean_word_length': 2.06651376146789, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5498027', 'n_tokens_mistral': 379, 'n_tokens_neox': 380, 'n_words': 115}