digitalbiblesociety/dbp

View on GitHub
app/Http/Controllers/APIController.php

Summary

Maintainability
A
1 hr
Test Coverage

Avoid too many return statements within this method.
Open

                return response()->json($object, $this->statusCode, [], JSON_UNESCAPED_UNICODE)
                        ->header('Content-Type', 'application/json; charset=utf-8')->setCallback($input);
Severity: Major
Found in app/Http/Controllers/APIController.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return response()->make($formatter->toCsv(), $this->statusCode)
                                     ->header('Content-Type', 'text/csv; charset=utf-8');
    Severity: Major
    Found in app/Http/Controllers/APIController.php - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status