Fix styling
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
41fb6a1fc9
commit
d86274cc37
@@ -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,
|
||||
|
Reference in New Issue
Block a user