private
    function repart($fighterGroups, $max)
    {
        $fighters = new Collection();
        for ($i = 0; $i < $max; $i++) {
            foreach ($fighterGroups as $fighterGroup) {
                $fighter = $fighterGroup->values()->get($i);
                if ($fighter != null) {
                    $fighters->push($fighter);
                }
            }
        }
        return $fighters;
    }
private
    function repart($fighterGroups, $max)
    {
        $fighters = new Collection();
        for ($i = 0; $i < $max; $i++) {
            foreach ($fighterGroups as $fighterGroup) {
                $fighter = $fighterGroup->values()->get($i);
                if ($fighter != null) {
                    $fighters->push($fighter);
                }
            }
        }
        return $fighters;
    }
private function repart ( $ fighterGroups , $ max ) { $ fighters = new Collection ( ) ; for ( $ i = 0 ; $ i < $ max ; $ i ++ ) { foreach ( $ fighterGroups as $ fighterGroup ) { $ fighter = $ fighterGroup -> values ( ) -> get ( $ i ) ; if ( $ fighter != null ) { $ fighters -> push ( $ fighter ) ; } } } return $ fighters ; }
Repart BYE in the tree,.

@param $fighterGroups
@param int $max

@return Collection
Repart BYE in the tree .