EscolaLMS/Courses

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

Summary

Maintainability
A
1 hr
Test Coverage
F
44%

Avoid too many return statements within this method.
Open

        return $this->sendSuccess(__('Topic deleted successfully'));
Severity: Major
Found in src/Http/Controllers/TopicAPIController.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return $this->sendResponseForResource(TopicAdminResource::make($topic), __('Topic updated successfully'));
    Severity: Major
    Found in src/Http/Controllers/TopicAPIController.php - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status