Completed
Push — master ( 93e691...5acfa0 )
by wen
12:06
created

Observer   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 32
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A view() 0 4 1
A create() 0 4 1
A edit() 0 4 1
A delete() 0 4 1
A destroy() 0 4 1
A restore() 0 4 1
1
<?php
2
3
namespace Sco\Admin\Component;
4
5
use Sco\Admin\Contracts\ComponentInterface;
6
7
class Observer
8
{
9
    public function view(ComponentInterface $component)
0 ignored issues
show
Unused Code introduced by
The parameter $component 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...
10
    {
11
        return true;
12
    }
13
14
    public function create(ComponentInterface $component)
0 ignored issues
show
Unused Code introduced by
The parameter $component 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...
15
    {
16
        return true;
17
    }
18
19
    public function edit(ComponentInterface $component)
0 ignored issues
show
Unused Code introduced by
The parameter $component 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...
20
    {
21
        return true;
22
    }
23
24
    public function delete(ComponentInterface $component)
0 ignored issues
show
Unused Code introduced by
The parameter $component 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...
25
    {
26
        return true;
27
    }
28
29
    public function destroy(ComponentInterface $component)
0 ignored issues
show
Unused Code introduced by
The parameter $component 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...
30
    {
31
        return true;
32
    }
33
34
    public function restore(ComponentInterface $component)
0 ignored issues
show
Unused Code introduced by
The parameter $component 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...
35
    {
36
        return true;
37
    }
38
}
39