Completed
Push — master ( ba992d...dc755b )
by Davide
07:03
created

EventRepetitionController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use App\EventRepetition;
6
use Illuminate\Http\Request;
7
8
class EventRepetitionController extends Controller
9
{
10
    /**
11
     * Display a listing of the resource.
12
     *
13
     * @return \Illuminate\Http\Response
14
     */
15
    public function index()
16
    {
17
    }
18
19
    /**
20
     * Show the form for creating a new resource.
21
     *
22
     * @return \Illuminate\Http\Response
23
     */
24
    public function create()
25
    {
26
        //return view('eventCategories.create');
27
    }
28
29
    /**
30
     * Store a newly created resource in storage.
31
     *
32
     * @param  \Illuminate\Http\Request  $request
33
     * @return \Illuminate\Http\Response
34
     */
35
    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...
36
    {
37
        /*request()->validate([
38
            'name' => 'required'
39
        ]);
40
41
        EventCategory::create($request->all());
42
43
        return redirect()->route('eventCategories.index')
44
                        ->with('success','Event category created successfully.');*/
45
    }
46
47
    /**
48
     * Display the specified resource.
49
     *
50
     * @param  \App\EventRepetition  $eventRepetition
51
     * @return \Illuminate\Http\Response
52
     */
53
    public function show(EventRepetition $eventRepetition)
0 ignored issues
show
Unused Code introduced by
The parameter $eventRepetition 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...
54
    {
55
        //return view('eventCategories.show',compact('eventCategory'));
56
    }
57
58
    /**
59
     * Show the form for editing the specified resource.
60
     *
61
     * @param  \App\EventRepetition  $eventCategory
0 ignored issues
show
Bug introduced by
There is no parameter named $eventCategory. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
62
     * @return \Illuminate\Http\Response
63
     */
64
    public function edit(EventRepetition $eventRepetition)
0 ignored issues
show
Unused Code introduced by
The parameter $eventRepetition 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...
65
    {
66
        //return view('eventCategories.edit',compact('eventCategory'));
67
    }
68
69
    /**
70
     * Update the specified resource in storage.
71
     *
72
     * @param  \Illuminate\Http\Request  $request
73
     * @param  \App\EventRepetition  $eventRepetition
74
     * @return \Illuminate\Http\Response
75
     */
76
    public function update(Request $request, EventRepetition $eventRepetition)
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...
Unused Code introduced by
The parameter $eventRepetition 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...
77
    {
78
        /*request()->validate([
79
            'name' => 'required'
80
        ]);
81
82
        $eventCategory->update($request->all());
83
84
        return redirect()->route('eventCategories.index')
85
                        ->with('success','Event category updated successfully');*/
86
    }
87
88
    /**
89
     * Remove the specified resource from storage.
90
     *
91
     * @param  \App\EventCategory  $eventCategory
0 ignored issues
show
Bug introduced by
There is no parameter named $eventCategory. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
92
     * @return \Illuminate\Http\Response
93
     */
94
    public function destroy(EventCategory $eventRepetition)
0 ignored issues
show
Unused Code introduced by
The parameter $eventRepetition 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...
95
    {
96
        /*$eventCategory->delete();
97
        return redirect()->route('eventCategories.index')
98
                        ->with('success','Event category deleted successfully');*/
99
    }
100
101
    // **********************************************************************
102
}
103