LevelsController   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 89
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 89
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A index() 0 4 1
A create() 0 4 1
A store() 0 4 1
A show() 0 4 1
A edit() 0 4 1
A update() 0 4 1
A destroy() 0 4 1
1
<?php
2
3
class LevelsController extends \BaseController {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
5
	public function __construct(Level $level)
6
    {
7
        $this->level = $level;
8
    }
9
10
	/**
11
	 * Display a listing of the resource.
12
	 *
13
	 * @return Response
14
	 */
15
	public function index()
16
	{
17
		return $this->level->all();
18
	}
19
20
21
	/**
22
	 * Show the form for creating a new resource.
23
	 *
24
	 * @return Response
25
	 */
26
	public function create()
27
	{
28
		//
29
	}
30
31
32
	/**
33
	 * Store a newly created resource in storage.
34
	 *
35
	 * @return Response
36
	 */
37
	public function store()
38
	{
39
		//
40
	}
41
42
43
	/**
44
	 * Display the specified resource.
45
	 *
46
	 * @param  int  $id
47
	 * @return Response
48
	 */
49
	public function show($id)
50
	{
51
		//
52
	}
53
54
55
	/**
56
	 * Show the form for editing the specified resource.
57
	 *
58
	 * @param  int  $id
59
	 * @return Response
60
	 */
61
	public function edit($id)
62
	{
63
		//
64
	}
65
66
67
	/**
68
	 * Update the specified resource in storage.
69
	 *
70
	 * @param  int  $id
71
	 * @return Response
72
	 */
73
	public function update($id)
74
	{
75
		//
76
	}
77
78
79
	/**
80
	 * Remove the specified resource from storage.
81
	 *
82
	 * @param  int  $id
83
	 * @return Response
84
	 */
85
	public function destroy($id)
86
	{
87
		//
88
	}
89
90
91
}
92