Skip to content

Commit

Permalink
Merge pull request #9 from imanghafoori1/analysis-0gbmQe
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
imanghafoori1 committed Mar 21, 2020
2 parents d0fdd76 + cfd7f8b commit a2e8544
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/VideoStreamer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand All @@ -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;
Expand Down

0 comments on commit a2e8544

Please sign in to comment.