<commit_before><?php

namespace App\Listeners\UserRegistered;

use App\Events\UserRegistered;
use App\Models\EmailConfirmation;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Facades\Hash;

class CreateConfirmationToken
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
    }

    /**
     * Handle the event.
     *
     * @param  UserRegistered  $event
     * @return void
     */
    public function handle(UserRegistered $event)
    {
        $token = str_random(30);
        $email = $event->user->email;

        EmailConfirmation::create([
           'token' => $token,
            'email' => $email
        ]);
    }
}<commit_msg>fix spacing<commit_after><?php

namespace App\Listeners\UserRegistered;

use App\Events\UserRegistered;
use App\Models\EmailConfirmation;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Facades\Hash;

class CreateConfirmationToken
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
    }

    /**
     * Handle the event.
     *
     * @param  UserRegistered  $event
     * @return void
     */
    public function handle(UserRegistered $event)
    {
        $token = str_random(30);
        $email = $event->user->email;

        EmailConfirmation::create([
           'token' => $token,
           'email' => $email
        ]);
    }
}
{'fraction_non_alphanumeric': 0.11741682974559686, 'fraction_numerical': 0.002609262883235486, 'mean_word_length': 2.3714285714285714, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4736854', 'n_tokens_mistral': 457, 'n_tokens_neox': 466, 'n_words': 91}