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

Method adapterError

src/FileRise/Storage/SourceHealth.php:37–46  ·  view source on GitHub ↗
($adapter)

Source from the content-addressed store, hash-verified

35 }
36
37 private static function adapterError($adapter): string
38 {
39 if (is_object($adapter) && method_exists($adapter, 'getLastError')) {
40 $detail = trim((string)$adapter->getLastError());
41 if ($detail !== '') {
42 return $detail;
43 }
44 }
45 return '';
46 }
47
48 private static function addCheck(array &$checks, string $key, string $label, string $state, string $message = ''): void
49 {

Callers 2

deletePathMethod · 0.95
checkMethod · 0.95

Calls 1

getLastErrorMethod · 0.45

Tested by

no test coverage detected