collections/example_static_cached_collection.php
Method load
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function load(): ?Kirby\Cms\Pages
{
// if cached then return that
if (static::$cache) {
return static::$cache;
Avoid too many return
statements within this method. Open
Open
return static::$cache;