<commit_before><?php

namespace Atorscho\Membership\Setup;

use Atorscho\Membership\Groups\DefaultGroups;
use Atorscho\Membership\Membership;
use Atorscho\Membership\MembershipServiceProvider;
use Atorscho\Membership\Permissions\DefaultPermissions;
use DB;
use Illuminate\Filesystem\Filesystem;
use Symfony\Component\Console\Output\OutputInterface;

class Installer
{
    /**
     * Number of steps for the progress bars.
     */
    const STEPS = 5;

    /**
     * @var InstallUserMembershipSystem
     */
    protected $command;

    /**
     * @var Filesystem
     */
    protected $file;

    /**
     * @var Membership
     */
    protected $membership;

    /**
     * Installer constructor.
     *
     * @param InstallUserMembershipSystem $command
     * @param Filesystem                  $file
     * @param Membership                  $membership
     */
    public function __construct(InstallUserMembershipSystem $command, Filesystem $file, Membership $membership)
    {
        $this->command    = $command;
        $this->file       = $file;
        $this->membership = $membership;
    }

    /**
     * Run the installation process.
     */
    public function install()
    {
        $bar = $this->command->getOutput()->createProgressBar(static::STEPS);

        if (config('database.default') == 'mysql') {
            DB::statement('SET FOREIGN_KEY_CHECKS=0;');
        }

        // 1. Publish configs and migrations
        $this->publishFiles();
        $bar->advance();

        // 2. Run migrations
        $this->runMigrations();
        $bar->advance();

        // 3. Add default permissions
        $this->addDefaultPermissions();
        $bar->advance();

        // 4. Add default groups
        $this->addDefaultGroups();
        $bar->advance();

        // 5. Ask for superuser credentials
        $this->createSuperuser();
        $bar->advance();

        // 6. Register Membership's permissions with Laravel's Gate
        $this->registerPermissions();        $bar->advance();
<commit_msg>CS Fix<commit_after><?php

namespace Atorscho\Membership\Setup;

use Atorscho\Membership\Groups\DefaultGroups;
use Atorscho\Membership\Membership;
use Atorscho\Membership\MembershipServiceProvider;
use Atorscho\Membership\Permissions\DefaultPermissions;
use DB;
use Illuminate\Filesystem\Filesystem;
use Symfony\Component\Console\Output\OutputInterface;

class Installer
{
    /**
     * Number of steps for the progress bars.
     */
    const STEPS = 5;

    /**
     * @var InstallUserMembershipSystem
     */
    protected $command;

    /**
     * @var Filesystem
     */
    protected $file;

    /**
     * @var Membership
     */
    protected $membership;

    /**
     * Installer constructor.
     *
     * @param InstallUserMembershipSystem $command
     * @param Filesystem                  $file
     * @param Membership                  $membership
     */
    public function __construct(InstallUserMembershipSystem $command, Filesystem $file, Membership $membership)
    {
        $this->command    = $command;
        $this->file       = $file;
        $this->membership = $membership;
    }

    /**
     * Run the installation process.
     */
    public function install()
    {
        $bar = $this->command->getOutput()->createProgressBar(static::STEPS);

        if (config('database.default') == 'mysql') {
            DB::statement('SET FOREIGN_KEY_CHECKS=0;');
        }

        // 1. Publish configs and migrations
        $this->publishFiles();
        $bar->advance();

        // 2. Run migrations
        $this->runMigrations();
        $bar->advance();

        // 3. Add default permissions
        $this->addDefaultPermissions();
        $bar->advance();

        // 4. Add default groups
        $this->addDefaultGroups();
        $bar->advance();

        // 5. Ask for superuser credentials
        $this->createSuperuser();
        $bar->advance();

        // 6. Register Membership's permissions with Laravel's Gate
        $this->registerPermissions();
        $bar->advance();

{'fraction_non_alphanumeric': 0.12450592885375494, 'fraction_numerical': 0.003952569169960474, 'mean_word_length': 2.2007905138339923, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, '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': '4404856', 'n_tokens_mistral': 1157, 'n_tokens_neox': 1128, 'n_words': 241}