MCPcopy Create free account
hub / github.com/error311/FileRise / addCheck

Method addCheck

src/FileRise/Storage/SourceHealth.php:48–57  ·  view source on GitHub ↗
(array &$checks, string $key, string $label, string $state, string $message = '')

Source from the content-addressed store, hash-verified

46 }
47
48 private static function addCheck(array &$checks, string $key, string $label, string $state, string $message = ''): void
49 {
50 $normalizedState = in_array($state, ['ok', 'fail', 'skipped', 'unknown'], true) ? $state : 'unknown';
51 $checks[] = [
52 'key' => $key,
53 'label' => $label,
54 'state' => $normalizedState,
55 'message' => trim($message),
56 ];
57 }
58
59 private static function stateToBool(string $state): ?bool
60 {

Callers 1

checkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected