mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-23 00:24:15 +02:00
Refactor GetContainersStatus.php for improved readability and maintainability
This commit is contained in:
parent
edf2a2e68d
commit
bc5d3bea14
@ -19,14 +19,14 @@ class GetContainersStatus
|
|||||||
{
|
{
|
||||||
use AsAction;
|
use AsAction;
|
||||||
public $applications;
|
public $applications;
|
||||||
public function __construct(public Server $server)
|
public $server;
|
||||||
|
|
||||||
|
public function handle(Server $server)
|
||||||
{
|
{
|
||||||
if (isDev()) {
|
if (isDev()) {
|
||||||
$this->server = Server::find(0);
|
$server = Server::find(0);
|
||||||
}
|
}
|
||||||
}
|
$this->server = $server;
|
||||||
public function handle()
|
|
||||||
{
|
|
||||||
if (!$this->server->isFunctional()) {
|
if (!$this->server->isFunctional()) {
|
||||||
return 'Server is not ready.';
|
return 'Server is not ready.';
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user