private function minFightersCheck()
    {
        $fighters = $this->getFighters();
        $areas = $this->settings->fightingAreas;
        $fighterType = $this->championship->category->isTeam
            ? trans_choice('laravel-tournaments::core.team', 2)
            : trans_choice('laravel-tournaments::core.competitor', 2);

        $minFighterCount = $fighters->count() / $areas;

        if ($this->settings->hasPreliminary && $fighters->count() / ($this->settings->preliminaryGroupSize * $areas) < 1) {
            throw new TreeGenerationException(trans('laravel-tournaments::core.min_competitor_required', [
                'number' => $this->settings->preliminaryGroupSize * $areas,
                'fighter_type' => $fighterType,
            ]), 422);
        }

        if ($minFighterCount < ChampionshipSettings::MIN_COMPETITORS_BY_AREA) {
            throw new TreeGenerationException(trans('laravel-tournaments::core.min_competitor_required', [
                'number' => ChampionshipSettings::MIN_COMPETITORS_BY_AREA,
                'fighter_type' => $fighterType,
            ]), 422);
        }
    }
private function minFightersCheck()
    {
        $fighters = $this->getFighters();
        $areas = $this->settings->fightingAreas;
        $fighterType = $this->championship->category->isTeam
            ? trans_choice('laravel-tournaments::core.team', 2)
            : trans_choice('laravel-tournaments::core.competitor', 2);

        $minFighterCount = $fighters->count() / $areas;

        if ($this->settings->hasPreliminary && $fighters->count() / ($this->settings->preliminaryGroupSize * $areas) < 1) {
            throw new TreeGenerationException(trans('laravel-tournaments::core.min_competitor_required', [
                'number' => $this->settings->preliminaryGroupSize * $areas,
                'fighter_type' => $fighterType,
            ]), 422);
        }

        if ($minFighterCount < ChampionshipSettings::MIN_COMPETITORS_BY_AREA) {
            throw new TreeGenerationException(trans('laravel-tournaments::core.min_competitor_required', [
                'number' => ChampionshipSettings::MIN_COMPETITORS_BY_AREA,
                'fighter_type' => $fighterType,
            ]), 422);
        }
    }
private function minFightersCheck ( ) { $ fighters = $ this -> getFighters ( ) ; $ areas = $ this -> settings -> fightingAreas ; $ fighterType = $ this -> championship -> category -> isTeam ? trans_choice ( 'laravel-tournaments::core.team' , 2 ) : trans_choice ( 'laravel-tournaments::core.competitor' , 2 ) ; $ minFighterCount = $ fighters -> count ( ) / $ areas ; if ( $ this -> settings -> hasPreliminary && $ fighters -> count ( ) / ( $ this -> settings -> preliminaryGroupSize * $ areas ) < 1 ) { throw new TreeGenerationException ( trans ( 'laravel-tournaments::core.min_competitor_required' , [ 'number' => $ this -> settings -> preliminaryGroupSize * $ areas , 'fighter_type' => $ fighterType , ] ) , 422 ) ; } if ( $ minFighterCount < ChampionshipSettings :: MIN_COMPETITORS_BY_AREA ) { throw new TreeGenerationException ( trans ( 'laravel-tournaments::core.min_competitor_required' , [ 'number' => ChampionshipSettings :: MIN_COMPETITORS_BY_AREA , 'fighter_type' => $ fighterType , ] ) , 422 ) ; } }
Check if there is enough fighters, throw exception otherwise.

@throws TreeGenerationException
Check if there is enough fighters throw exception otherwise .