Skip to content

Commit 0cc5901

Browse files
committed
code quality
1 parent a011973 commit 0cc5901

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/Http/Controllers/ControlController.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ public function index(Request $request)
130130

131131
// get all scopes
132132
$scopes = DB::table('controls')
133-
->select('scope')
134133
->whereNotNull('scope')
135134
->where('scope', '<>', '');
136135
if (Auth::User()->role === 5) {
@@ -310,7 +309,6 @@ public function create()
310309

311310
// get all scopes
312311
$scopes = DB::table('controls')
313-
->select('scope')
314312
->whereNotNull('scope')
315313
->where('scope', '<>', '')
316314
->whereIn('status', [0, 1])
@@ -529,7 +527,6 @@ public function edit(int $id)
529527

530528
// get all ids
531529
$ids = DB::table('controls')
532-
->select('id')
533530
->orderBy('id')
534531
->pluck('id');
535532

@@ -1824,7 +1821,7 @@ public function template(Request $request)
18241821

18251822
// Replace names
18261823
$clauses = $control->measures()
1827-
->pluck('measures.clause')
1824+
->pluck('measures.clause')
18281825
->implode(', ');
18291826

18301827

0 commit comments

Comments
 (0)