Passed
Push — dependabot/npm_and_yarn/string... ( b56eb5...bc569b )
by
unknown
45:46 queued 33s
created

LineController   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 14
dl 0
loc 44
ccs 0
cts 18
cp 0
rs 10
c 0
b 0
f 0
wmc 6
1
<?php
2
namespace Thinktomorrow\Chief\App\Http\Controllers\Back\Translations;
3
4
use Illuminate\Http\Request;
5
use Thinktomorrow\Squanto\Manager\Http\Controllers\LineController as SquantoLineController;
6
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
7
8
class LineController extends SquantoLineController
9
{
10
    use AuthorizesRequests;
11
12
    public function index()
13
    {
14
        $this->authorize('view-squanto');
15
16
        return parent::index();
17
    }
18
19
    public function create($page_id = null)
20
    {
21
        $this->authorize('create-squanto');
22
23
        return parent::create($page_id);
24
    }
25
26
    public function store(Request $request)
27
    {
28
        $this->authorize('create-squanto');
29
30
        return parent::store($request);
31
    }
32
33
    public function edit($id)
34
    {
35
        $this->authorize('update-squanto');
36
        
37
        return parent::edit($id);
38
    }
39
40
    public function update(Request $request, $id)
41
    {
42
        $this->authorize('update-squanto');
43
44
        return parent::update($request, $id);
45
    }
46
47
    public function destroy($id)
48
    {
49
        $this->authorize('delete-squanto');
50
51
        return parent::destroy($id);
52
    }
53
}
54