Skip to content

Commit be894fd

Browse files
authored
Merge pull request #23 from r2luna/feature/eject-command
small fix
2 parents a3c5e06 + 68dc60e commit be894fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Console/BrainMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private function getTask(SplFileInfo|string $task): array
215215
'name' => $reflection->getShortName(),
216216
'fullName' => $reflection->name,
217217
'queue' => $reflection->implementsInterface(ShouldQueue::class),
218-
'type' => $isProcess ? 'process' : ($reflection->isSubclassOf(Task::class) ? 'task' : ''),
218+
'type' => $isProcess ? 'process' : 'task',
219219
'properties' => $this->getPropertiesFor($reflection),
220220
];
221221

src/Console/Printer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ private function addProcessTasks(array $process, string $parentChildPrefix, int
282282

283283
[$color, $type] = match ($task['type']) {
284284
'process' => [$this->elemColors['PROC'], 'P'],
285-
'task' => [$this->elemColors['TASK'], 'T'],
285+
default => [$this->elemColors['TASK'], 'T'],
286286
};
287287

288288
$status = $task['queue'] ? ' queued' : '';

0 commit comments

Comments
 (0)