Completed
Push — master ( 0089b6...0e6fef )
by UP805717
12:55
created

QuizController   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A showHostDashboard() 0 3 1
A showIndexWelcome() 0 3 1
A enterQuizPin() 0 3 1
A showPin() 0 3 1
A showQuestion() 0 3 1
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
7
class QuizController extends Controller
8
{
9
    public function showIndexWelcome()
10
    {
11
        return view('index.welcome');
12
    }
13
14
    public function showHostDashboard()
15
    {
16
        return view('quiz_host.dashboard.index');
17
    }
18
19
    public function showQuestion()
20
    {
21
        return view('quiz_user.question');
22
    }
23
24
    public function showPin()
25
    {
26
        return view('quiz_user.pin');
27
    }
28
29
    public function enterQuizPin(Request $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

29
    public function enterQuizPin(/** @scrutinizer ignore-unused */ Request $request)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
30
    {
31
        return view('quiz_user.pin');
32
    }
33
}
34