Fix styling

This commit is contained in:
Thijmen
2024-06-10 20:43:34 +00:00
committed by github-actions[bot]
parent 41fb6a1fc9
commit d86274cc37
429 changed files with 5307 additions and 2831 deletions

View File

@@ -15,20 +15,25 @@ class ApplicationDeploymentQueue extends Model
'status' => $status,
]);
}
public function getOutput($name)
{
if (!$this->logs) {
if (! $this->logs) {
return null;
}
return collect(json_decode($this->logs))->where('name', $name)->first()?->output ?? null;
}
public function commitMessage()
{
if (empty($this->commit_message) || is_null($this->commit_message)) {
return null;
}
return str($this->commit_message)->trim()->limit(50)->value();
}
public function addLogEntry(string $message, string $type = 'stdout', bool $hidden = false)
{
if ($type === 'error') {
@@ -36,7 +41,7 @@ class ApplicationDeploymentQueue extends Model
}
$message = str($message)->trim();
if ($message->startsWith('╔')) {
$message = "\n" . $message;
$message = "\n".$message;
}
$newLogEntry = [
'command' => null,