ActorsController::edit()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 3
Metric Value
c 4
b 0
f 3
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use App\Http\Models\Actors;
6
use Illuminate\Http\Request;
7
8
/**
9
 * Class ActorsController.
10
 */
11
class ActorsController extends Controller
12
{
13
    /**
14
     * Page Acceuil.
15
     */
16
    public function index()
17
    {
18
        $actors = Actors::all();
19
        // vue
20
        return view('Actors/index', [
21
22
            'actors' => $actors,
23
        ]);
24
    }
25
26
    /**
27
     * Page Read.
28
     *
29
     * @param $id
30
     *
31
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
32
     */
33
    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...
34
    {
35
36
        // vue
37
        return view('Actors/read');
38
    }
39
40
    /**
41
     * Page Acceuil.
42
     */
43
    public function create()
44
    {
45
        return view('Actors/create');
46
    }
47
48
    /**
49
     * Page Acceuil.
50
     */
51
    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...
52
    {
53
        return view('Actors/edit');
54
    }
55
56
    /**
57
     * Page Acceuil.
58
     */
59
    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...
60
    {
61
    }
62
63
    /**
64
     * Action d'enregistrement en base de données
65
     * depuis mon formulaire
66
     * Classe Request permet de réceptionner les données
67
     * en POST de manières scurisés.
68
     */
69
    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...
70
    {
71
    }
72
}
73