app/Http/Controllers/AdminShadowFilterController.php
Method store
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function store(Request $request)
{
$this->validate($request, [
'username' => 'required',
'active' => 'sometimes',
Avoid too many return
statements within this method. Open
Open
return view('admin.asf.home', compact('filters'));
Avoid too many return
statements within this method. Open
Open
return $q->where('item_type', 'App\Profile')->whereIn('item_id', $ids);