| @@ 168-176 (lines=9) @@ | ||
| 165 | * |
|
| 166 | * @return bool |
|
| 167 | */ |
|
| 168 | public function hasDeterminedParent() |
|
| 169 | { |
|
| 170 | if ($this->has2Fighters()) return true; |
|
| 171 | foreach ($this->group->children as $child) { |
|
| 172 | $fight = $child->fights->get(0); |
|
| 173 | if ($fight->has2Fighters()) return false; |
|
| 174 | } |
|
| 175 | return true; |
|
| 176 | } |
|
| 177 | ||
| 178 | public function shouldBeInFightList() |
|
| 179 | { |
|
| @@ 161-169 (lines=9) @@ | ||
| 158 | * |
|
| 159 | * @return bool |
|
| 160 | */ |
|
| 161 | public function hasDeterminedParent() |
|
| 162 | { |
|
| 163 | if ($this->group->has2Fighters()) return true; |
|
| 164 | foreach ($this->group->children as $child) { |
|
| 165 | $fight = $child->fights->get(0); |
|
| 166 | if ($fight->has2Fighters()) return false; |
|
| 167 | } |
|
| 168 | return true; |
|
| 169 | } |
|
| 170 | } |
|
| 171 | ||