laravel/framework

View on GitHub
src/Illuminate/View/Component.php

Summary

Maintainability
A
3 hrs
Test Coverage

Component has 23 functions (exceeds 20 allowed). Consider refactoring.
Open

abstract class Component
{
    /**
     * The properties / methods that should not be exposed to the component.
     *
Severity: Minor
Found in src/Illuminate/View/Component.php - About 2 hrs to fix

    Avoid too many return statements within this method.
    Open

            return $view instanceof Closure ? function (array $data = []) use ($view, $resolver) {
                return $resolver($view($data));
            }
            : $resolver($view);
    Severity: Major
    Found in src/Illuminate/View/Component.php - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status