@@ -42,7 +42,7 @@ class PHPFFMpeg
4242 private $ mediaCollection ;
4343
4444 /**
45- * @var boolean
45+ * @var bool
4646 */
4747 private $ forceAdvanced = false ;
4848
@@ -61,8 +61,8 @@ class PHPFFMpeg
6161
6262 public function __construct (FFMpeg $ ffmpeg )
6363 {
64- $ this ->ffmpeg = $ ffmpeg ;
65- $ this ->pendingComplexFilters = new Collection () ;
64+ $ this ->ffmpeg = $ ffmpeg ;
65+ $ this ->pendingComplexFilters = new Collection ;
6666 }
6767
6868 /**
@@ -114,7 +114,7 @@ public function open(MediaCollection $mediaCollection): self
114114
115115 $ this ->mediaCollection = $ mediaCollection ;
116116
117- if ($ mediaCollection ->count () === 1 && !$ this ->forceAdvanced ) {
117+ if ($ mediaCollection ->count () === 1 && ! $ this ->forceAdvanced ) {
118118 $ media = Arr::first ($ mediaCollection ->collection ());
119119
120120 $ this ->ffmpeg ->setFFProbe (
@@ -147,7 +147,7 @@ public function open(MediaCollection $mediaCollection): self
147147
148148 public function frame (TimeCode $ timecode )
149149 {
150- if (!$ this ->isVideo ()) {
150+ if (! $ this ->isVideo ()) {
151151 throw new Exception ('Opened media is not a video file. ' );
152152 }
153153
@@ -178,8 +178,6 @@ public function openAdvanced(MediaCollection $mediaCollection): self
178178
179179 /**
180180 * Returns the FFMpegDriver of the underlying library.
181- *
182- * @return \FFMpeg\Driver\FFMpegDriver
183181 */
184182 private function getFFMpegDriver (): FFMpegDriver
185183 {
@@ -188,9 +186,6 @@ private function getFFMpegDriver(): FFMpegDriver
188186
189187 /**
190188 * Add a Listener to the underlying library.
191- *
192- * @param \Alchemy\BinaryDriver\Listeners\ListenerInterface $listener
193- * @return self
194189 */
195190 public function addListener (ListenerInterface $ listener ): self
196191 {
@@ -201,9 +196,6 @@ public function addListener(ListenerInterface $listener): self
201196
202197 /**
203198 * Remove the Listener from the underlying library.
204- *
205- * @param \Alchemy\BinaryDriver\Listeners\ListenerInterface $listener
206- * @return self
207199 */
208200 public function removeListener (ListenerInterface $ listener ): self
209201 {
@@ -214,9 +206,6 @@ public function removeListener(ListenerInterface $listener): self
214206
215207 /**
216208 * Adds a callable to the callbacks array.
217- *
218- * @param callable $callback
219- * @return self
220209 */
221210 public function beforeSaving (callable $ callback ): self
222211 {
@@ -227,8 +216,6 @@ public function beforeSaving(callable $callback): self
227216
228217 /**
229218 * Set the callbacks on the Media.
230- *
231- * @return self
232219 */
233220 public function applyBeforeSavingCallbacks (): self
234221 {
@@ -243,10 +230,6 @@ public function applyBeforeSavingCallbacks(): self
243230
244231 /**
245232 * Add an event handler to the underlying library.
246- *
247- * @param string $event
248- * @param callable $callback
249- * @return self
250233 */
251234 public function onEvent (string $ event , callable $ callback ): self
252235 {
0 commit comments