Skip to content

Commit

Permalink
code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Mar 6, 2025
1 parent a55a9b9 commit c706511
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/ControlController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function index(Request $request)
$attributes = array_unique($attributes);
*/
// get all clauses
$clauses = DB::table('measures')->select('clause')->get()->pluck("clause")->toArray();
$clauses = DB::table('measures')->select('clause')->get()->pluck('clause')->toArray();

// get domain base on his title
$domain_title = $request->get('domain_title');
Expand Down Expand Up @@ -104,7 +104,7 @@ public function index(Request $request)
if ($clause !== null) {
if ($clause === 'none') {
$request->session()->forget('clause');
$clause=null;
$clause = null;
} else {
$request->session()->put('clause', $clause);
}
Expand Down Expand Up @@ -205,7 +205,7 @@ public function index(Request $request)

// Filter on clause
if ($clause !== null) {
$controls = $controls->where('clause','=', $clause);
$controls = $controls->where('clause', '=', $clause);
}

// Filter on scope
Expand Down

0 comments on commit c706511

Please sign in to comment.