diff --git a/src/VTTProcessor.php b/src/VTTProcessor.php index 1b4e4f4..3fbbd1b 100644 --- a/src/VTTProcessor.php +++ b/src/VTTProcessor.php @@ -26,7 +26,7 @@ protected function normalizeLines(array $lines): array $results = []; foreach ($lines as $index => $line) { if ($times = $this->validateTimeSpan($line)) { - if ($newline && strlen(trim($newline->getBody()) > 0)) { + if ($newline && strlen(trim($newline->getBody())) > 0) { // This would be a line added on a previous loop; $results[] = $newline; $this->maxTime = ($this->maxTime ?? 0) < $newline->getEndstime() ? $newline->getEndstime() : $this->maxTime;