From 9a2dc8ddc30113666914d4320f0aec58d8bd804d Mon Sep 17 00:00:00 2001 From: jxlwqq Date: Mon, 11 Oct 2021 09:33:00 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/LogViewer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LogViewer.php b/src/LogViewer.php index 544ec69..8a86bb9 100644 --- a/src/LogViewer.php +++ b/src/LogViewer.php @@ -171,6 +171,7 @@ public function fetch($seek = 0, $lines = 20, $buffer = 4096) { if (!file_exists($this->filePath) || is_dir($this->filePath)) { $this->pageOffset = ['start' => 0, 'end' => 0]; + return $this->parseLog(''); } $f = fopen($this->filePath, 'rb');