Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed May 25, 2024
1 parent d257000 commit 5b42a6d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Commands/TailCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
final readonly class TailCommand
{
public function __construct(
private TailDebugLogCommand $logDebugCommand,
private TailProjectLogCommand $logProjectCommand,
private TailServerLogCommand $logServerCommand,
private TailDebugLogCommand $tailDebugLogCommand,
private TailProjectLogCommand $tailProjectLogCommand,
private TailServerLogCommand $tailServerLogCommand,
) {}

#[ConsoleCommand(
Expand All @@ -34,9 +34,9 @@ public function __invoke(

/** @var array<array-key, \Tempest\Console\Commands\TailDebugLogCommand|\Tempest\Console\Commands\TailProjectLogCommand> $loggers */
$loggers = array_filter([
($shouldFilter === false || $debug) ? $this->logDebugCommand : null,
($shouldFilter === false || $project) ? $this->logProjectCommand : null,
($shouldFilter === false || $server) ? $this->logServerCommand : null,
($shouldFilter === false || $debug) ? $this->tailDebugLogCommand : null,
($shouldFilter === false || $project) ? $this->tailProjectLogCommand : null,
($shouldFilter === false || $server) ? $this->tailServerLogCommand : null,
]);

/** @var Fiber[] $fibers */
Expand Down

0 comments on commit 5b42a6d

Please # to comment.