mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
2.x
This commit is contained in:
@ -27,7 +27,7 @@ function date_with_timezone($date, $timezone): string
|
||||
|
||||
function htmx(): HtmxResponse
|
||||
{
|
||||
return new HtmxResponse();
|
||||
return new HtmxResponse;
|
||||
}
|
||||
|
||||
function vito_version(): string
|
||||
@ -48,3 +48,10 @@ function convert_time_format($string): string
|
||||
|
||||
return preg_replace('/(\d+)h/', '$1 hours', $string);
|
||||
}
|
||||
|
||||
function get_public_key_content(): string
|
||||
{
|
||||
return str(file_get_contents(storage_path(config('core.ssh_public_key_name'))))
|
||||
->replace("\n", '')
|
||||
->toString();
|
||||
}
|
||||
|
Reference in New Issue
Block a user