diff --git a/src/VideoStreamer.php b/src/VideoStreamer.php index 38904b3..5b91b9b 100644 --- a/src/VideoStreamer.php +++ b/src/VideoStreamer.php @@ -77,12 +77,12 @@ private function setHeader() $length = $this->end - $this->start + 1; fseek($this->stream, $this->start); header('HTTP/1.1 206 Partial Content'); - header('Content-Length: ' . $length); - header("Content-Range: bytes $this->start-$this->end/" . $this->size); + header('Content-Length: '.$length); + header("Content-Range: bytes $this->start-$this->end/".$this->size); } /** - * close curretly opened stream + * close curretly opened stream. */ private function end() { @@ -97,7 +97,7 @@ private function stream() { $i = $this->start; set_time_limit(0); - while (!feof($this->stream) && $i <= $this->end) { + while (! feof($this->stream) && $i <= $this->end) { $bytesToRead = $this->buffer; if (($i + $bytesToRead) > $this->end) { $bytesToRead = $this->end - $i + 1;