| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function index(Request $request) |
||
| 17 | { |
||
| 18 | $grades = Grade::getAllPlucked(); |
||
| 19 | $tournament = Tournament::with(['championships.firstRoundFights' => function ($query) { |
||
| 20 | $query->with(['competitor1.user', 'competitor2.user', 'team1', 'team2']); |
||
| 21 | }])->where('slug', $request->tournament) |
||
| 22 | ->first(); |
||
| 23 | return view('fights.index', compact('tournament', 'grades')); |
||
|
|
|||
| 24 | |||
| 27 |