lolibrary/lolibrary

View on GitHub
web.sakura/app/Nova/Filters/ItemStatusFilter.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method apply has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function apply(Request $request, $query, $value)
    {
        // lock away certain functions behind dev.
        if ($request->user()->developer()) {
            switch ($value) {
Severity: Minor
Found in web.sakura/app/Nova/Filters/ItemStatusFilter.php - About 1 hr to fix

    Method options has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function options(Request $request)
        {
            if ($request->user()->developer()) {
                return [
                    'My Items' => 'my-items',
    Severity: Minor
    Found in web.sakura/app/Nova/Filters/ItemStatusFilter.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status