voyager-admin/voyager

View on GitHub
src/Http/Controllers/VoyagerController.php

Summary

Maintainability
A
2 hrs
Test Coverage
A
92%

Method getThumbnailOptions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getThumbnailOptions(Request $request): DynamicInput
    {
        $method = $request->input('method', 'fit');

        $select = (new DynamicInput())
Severity: Minor
Found in src/Http/Controllers/VoyagerController.php - About 1 hr to fix

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

        public function globalSearch(Request $request): ?array
        {
            $q = $request->get('query');
            $results = [];
            $this->breadmanager->getBreads()->each(function ($bread) use ($q, &$results) {
    Severity: Minor
    Found in src/Http/Controllers/VoyagerController.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status