davide-casiraghi/ci-global-calendar

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

Summary

Maintainability
A
2 hrs
Test Coverage

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

    public function index(Request $request)
    {
        $cacheExpireTime = 900; // expressed in seconds (15 min)

        $backgroundImages = BackgroundImage::all();
Severity: Minor
Found in app/Http/Controllers/EventSearchController.php - About 2 hrs to fix

    Avoid too many return statements within this method.
    Open

            return view('eventSearch.index', compact('events'))
                ->with('i', (request()->input('page', 1) - 1) * 20)
                ->with('eventCategories', $eventCategories)
                ->with('continents', $continents)
                ->with('countries', $countries)
    Severity: Major
    Found in app/Http/Controllers/EventSearchController.php - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status