bnomei/kirby3-boost

View on GitHub
collections/example_static_cached_collection.php

Summary

Maintainability
A
1 hr
Test Coverage

Method load has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function load(): ?Kirby\Cms\Pages
    {
        // if cached then return that
        if (static::$cache) {
            return static::$cache;
Severity: Minor
Found in collections/example_static_cached_collection.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

            return static::$cache;
    Severity: Major
    Found in collections/example_static_cached_collection.php - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status