| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function index($tournamentSlug) |
||
| 14 | { |
||
| 15 | $tournament = Tournament::with( |
||
| 16 | 'championships.category', |
||
| 17 | // 'championships.teams', |
||
| 18 | // 'championships.competitors', |
||
| 19 | 'championships.settings', |
||
| 20 | 'championships.fightersGroups.championship.category', // TODO This is not good |
||
| 21 | 'championships.fightersGroups.teams', |
||
| 22 | 'championships.fightersGroups.competitors', |
||
| 23 | 'championships.fightersGroups.fights.group.championship.category', // TODO This is not good |
||
| 24 | 'championships.fightersGroups.fights.competitor1', |
||
| 25 | 'championships.fightersGroups.fights.competitor2', |
||
| 26 | 'championships.fightersGroups.fights.team1', |
||
| 27 | 'championships.fightersGroups.fights.team2' |
||
| 28 | |||
| 29 | )->where('slug', $tournamentSlug)->first(); |
||
| 30 | |||
| 31 | $sheet = null; |
||
| 32 | return view('scoresheets.index', compact('tournament', 'sheet')); |
||
| 33 | } |
||
| 35 |