@@ 86-93 (lines=8) @@ | ||
83 | $results = collect([]); |
|
84 | foreach ($servers as $server) { |
|
85 | try { |
|
86 | $environment = $server->option->variables->map(function ($item, $key) use ($server) { |
|
87 | $display = $server->variables->where('variable_id', $item->id)->pluck('variable_value')->first(); |
|
88 | ||
89 | return [ |
|
90 | 'variable' => $item->env_variable, |
|
91 | 'value' => (! is_null($display)) ? $display : $item->default_value, |
|
92 | ]; |
|
93 | }); |
|
94 | ||
95 | $server->node->guzzleClient([ |
|
96 | 'X-Access-Server' => $server->uuid, |
@@ 707-714 (lines=8) @@ | ||
704 | // Reload Variables |
|
705 | $server->load('variables'); |
|
706 | ||
707 | $parsed = $server->option->variables->map(function ($item, $key) use ($server) { |
|
708 | $display = $server->variables->where('variable_id', $item->id)->pluck('variable_value')->first(); |
|
709 | ||
710 | return [ |
|
711 | 'variable' => $item->env_variable, |
|
712 | 'value' => (! is_null($display)) ? $display : $item->default_value, |
|
713 | ]; |
|
714 | }); |
|
715 | ||
716 | $merge = [[ |
|
717 | 'variable' => 'STARTUP', |