davide-casiraghi/ci-global-calendar

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

Summary

Maintainability
A
2 hrs
Test Coverage

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

    public function show(Post $post)
    {
        // Accordion
        $accordionClass = new AccordionClass();
        $post->body = $accordionClass->getAccordion($post->body);
Severity: Minor
Found in app/Http/Controllers/PostController.php - About 1 hr to fix

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

        public function index(Request $request)
        {
            $categories = Category::getCategoriesArray();
    
            $searchKeywords = $request->input('keywords');
    Severity: Minor
    Found in app/Http/Controllers/PostController.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status