davide-casiraghi/laravel-smart-blog

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

Summary

Maintainability
A
1 hr
Test Coverage

Method index has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function index(Request $request)
    {
        //$categories = Category::getCategoriesArray();
        $categories = Category::listsTranslations('name')->pluck('name', 'id');

Severity: Minor
Found in src/Http/Controllers/PostController.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status