, found: array} */ public function handle(Server $server): array { $requiredCommands = ['git', 'curl', 'jq']; $missing = []; $found = []; foreach ($requiredCommands as $cmd) { $result = instant_remote_process(["command -v {$cmd}"], $server, false); if (! $result) { $missing[] = $cmd; } else { $found[] = $cmd; } } return [ 'success' => empty($missing), 'missing' => $missing, 'found' => $found, ]; } }