($adapter)
| 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 | { |
no test coverage detected