EscolaLMS/Auth

View on GitHub
src/Http/Resources/UserResource.php

Summary

Maintainability
A
1 hr
Test Coverage

Method toArray has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function toArray($request)
    {
        $fields = array_filter([
            'id' => $this->resource->getKey(),
            'name' => $this->resource->name,
Severity: Minor
Found in src/Http/Resources/UserResource.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status