src/Model/SiteLog.php
public function readLog($file)
    {
        if (!is_file($this->logPath . $file)) {

            $this->setError('Not a valid log file.');
            return false;
        }

        $fh      = fopen($this->logPath . $file, 'rb');
        $out     = [];
        $counter = 0;

        while (!feof($fh)) {

            $counter++;
            $line = trim(fgets($fh));

            if ($counter == 1 || empty($line)) {

                continue;
            }
            $out[] = $line;
        }

        fclose($fh);

        return $out;
    }
public function readLog($file)
    {
        if (!is_file($this->logPath . $file)) {

            $this->setError('Not a valid log file.');
            return false;
        }

        $fh      = fopen($this->logPath . $file, 'rb');
        $out     = [];
        $counter = 0;

        while (!feof($fh)) {

            $counter++;
            $line = trim(fgets($fh));

            if ($counter == 1 || empty($line)) {

                continue;
            }
            $out[] = $line;
        }

        fclose($fh);

        return $out;
    }
--------------------------------------------------------------------------