From b904037b9b084c7cf8a5f8f758b9f025d435ab47 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Fri, 10 Nov 2023 18:18:42 +0100 Subject: [PATCH] Simplify 'if' --- packages/realtime-compiler/src/ConsoleOutput.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/realtime-compiler/src/ConsoleOutput.php b/packages/realtime-compiler/src/ConsoleOutput.php index a7b70a744d2..7310b88b4b0 100644 --- a/packages/realtime-compiler/src/ConsoleOutput.php +++ b/packages/realtime-compiler/src/ConsoleOutput.php @@ -85,11 +85,7 @@ protected function formatLineForOutput(string $line): ?string return $this->formatRequestLine($line); } if (str_ends_with(trim($line), 'Accepted') || str_ends_with(trim($line), 'Closing')) { - if ($this->verbose) { - return $this->formatRequestStatusLine($line); - } else { - return null; - } + return $this->verbose ? $this->formatRequestStatusLine($line) : null; } return $this->formatLine($line, Carbon::now());