pixelfed/pixelfed

View on GitHub
app/Http/Controllers/AdminShadowFilterController.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method store has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function store(Request $request)
    {
        $this->validate($request, [
            'username' => 'required',
            'active' => 'sometimes',
Severity: Minor
Found in app/Http/Controllers/AdminShadowFilterController.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

            return view('admin.asf.home', compact('filters'));
    Severity: Major
    Found in app/Http/Controllers/AdminShadowFilterController.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return $q->where('item_type', 'App\Profile')->whereIn('item_id', $ids);
      Severity: Major
      Found in app/Http/Controllers/AdminShadowFilterController.php - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status