EscolaLMS/Courses

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

Summary

Maintainability
A
1 hr
Test Coverage

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

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

    There are no issues that match your filters.

    Category
    Status