From 4bd8b48315da931a6e547911973da4ac0352bba8 Mon Sep 17 00:00:00 2001 From: Iman Date: Wed, 8 Jul 2020 07:57:49 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Events/VideoStreamEnded.php | 4 ---- src/Events/VideoStreamStarted.php | 4 ---- src/VideoStreamer.php | 1 - 3 files changed, 9 deletions(-) diff --git a/src/Events/VideoStreamEnded.php b/src/Events/VideoStreamEnded.php index 03fea49..45d42d5 100644 --- a/src/Events/VideoStreamEnded.php +++ b/src/Events/VideoStreamEnded.php @@ -2,11 +2,8 @@ namespace Iman\Streamer\Events; -use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; -use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Broadcasting\PrivateChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; use Iman\Streamer\Video; @@ -37,7 +34,6 @@ public function getVideo(): Video return $this->video; } - /** * Get the channels the event should broadcast on. * diff --git a/src/Events/VideoStreamStarted.php b/src/Events/VideoStreamStarted.php index 3853858..8f04623 100644 --- a/src/Events/VideoStreamStarted.php +++ b/src/Events/VideoStreamStarted.php @@ -2,11 +2,8 @@ namespace Iman\Streamer\Events; -use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; -use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Broadcasting\PrivateChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; use Iman\Streamer\Video; @@ -38,7 +35,6 @@ public function getVideo(): Video return $this->video; } - /** * Get the channels the event should broadcast on. * diff --git a/src/VideoStreamer.php b/src/VideoStreamer.php index b01e409..705c052 100644 --- a/src/VideoStreamer.php +++ b/src/VideoStreamer.php @@ -113,7 +113,6 @@ private function stream() $i = $this->start; set_time_limit(0); while (! feof($this->stream) && $i <= $this->end) { - $this->video->setProgress($i); $bytesToRead = $this->buffer;