DirectorsController::index()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 1 Features 3
Metric Value
c 4
b 1
f 3
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
7
/**
8
 * Class DirectorsController.
9
 */
10
class DirectorsController extends Controller
11
{
12
    /**
13
     * Page Acceuil.
14
     */
15
    public function index()
16
    {
17
        return view('Directors/index');
18
    }
19
20
    /**
21
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
22
     */
23
    public function create()
24
    {
25
26
        // vue
27
        return view('Directors/create');
28
    }
29
30
    /**
31
     * @param $id
32
     *
33
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
34
     */
35
    public function edit($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed.

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

Loading history...
36
    {
37
38
        // vue
39
        return view('Directors/edit');
40
    }
41
42
    /**
43
     * @param $id
44
     *
45
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
46
     */
47
    public function read($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed.

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

Loading history...
48
    {
49
        return view('Directors/read');
50
    }
51
52
    /**
53
     * Page Acceuil.
54
     */
55
    public function delete($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed.

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

Loading history...
56
    {
57
    }
58
59
    /**
60
     * Action d'enregistrement en base de données
61
     * depuis mon formulaire
62
     * Classe Request permet de réceptionner les données
63
     * en POST de manières scurisés.
64
     */
65
    public function store(Request $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed.

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

Loading history...
66
    {
67
    }
68
}
69