pending() ->where('hits', '>=', self::THRESHOLD) ->orderByDesc('hits') ->get(['path', 'hits', 'referrer']); return Finding::problem( $this->key(), $missing->count(), // An address our own site links to is a fault in what we publish, // not somebody else's stale bookmark, and it will keep producing // 404s until it is fixed here. $missing->contains(fn (MissingUrl $url) => $url->isInternalReferrer()) ? Severity::Error : Severity::Warning, url: MissingUrlResource::getUrl('index'), samples: $missing->map(fn (MissingUrl $url) => "{$url->path} ({$url->hits})")->all(), ); } }