Passed
Push — master ( dd055a...ca8538 )
by Pascal
13:19
created
src/FFMpeg/ProgressListenerDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
     public function createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, $pass, $total, $duration = 0)
50 50
     {
51
-        return tap($this->format->createProgressListener(...func_get_args()), function (array $listeners) {
51
+        return tap($this->format->createProgressListener(...func_get_args()), function(array $listeners) {
52 52
             $this->listeners = array_merge($this->listeners, $listeners);
53 53
         });
54 54
     }
Please login to merge, or discard this patch.
src/FFMpeg/RebuildsCommands.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             return $command;
35 35
         }
36 36
 
37
-        return Collection::make($command)->map(function ($command) {
37
+        return Collection::make($command)->map(function($command) {
38 38
             return static::mergeBeforePathInput(
39 39
                 $command,
40 40
                 $this->getPathfile(),
Please login to merge, or discard this patch.
src/FFMpeg/LegacyFilterMapping.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,15 +55,15 @@
 block discarded – undo
55 55
 
56 56
         $format = $maps->filter->hasOut($this->out)->first()->getFormat();
57 57
 
58
-        Collection::make($freshDriver->getFilters())->map(function ($filter) use ($freshDriver, $format) {
58
+        Collection::make($freshDriver->getFilters())->map(function($filter) use ($freshDriver, $format) {
59 59
             $parameters = $filter->apply($freshDriver->get(), $format);
60 60
 
61
-            $parameters = Arr::where($parameters, function ($parameter) {
61
+            $parameters = Arr::where($parameters, function($parameter) {
62 62
                 return !in_array($parameter, ['-vf', '-filter:v', '-filter_complex']);
63 63
             });
64 64
 
65 65
             return implode(' ', $parameters);
66
-        })->each(function ($customCompiledFilter) use ($driver) {
66
+        })->each(function($customCompiledFilter) use ($driver) {
67 67
             $driver->addFilter($this->in, $customCompiledFilter, $this->out);
68 68
         });
69 69
     }
Please login to merge, or discard this patch.
src/FFMpeg/AdvancedOutputMapping.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     public function hasOut(string $out): bool
82 82
     {
83 83
         return Collection::make($this->outs)
84
-            ->map(function ($out) {
84
+            ->map(function($out) {
85 85
                 return HLSVideoFilters::beforeGlue($out);
86 86
             })
87 87
             ->contains(HLSVideoFilters::beforeGlue($out));
Please login to merge, or discard this patch.
src/Http/DynamicHLSPlaylist.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -204,9 +204,9 @@  discard block
 block discarded – undo
204 204
     {
205 205
         return static::parseLines(
206 206
             $this->disk->get($this->media->getPath())
207
-        )->filter(function ($line) {
207
+        )->filter(function($line) {
208 208
             return static::lineHasMediaFilename($line);
209
-        })->mapWithKeys(function ($segmentPlaylist) {
209
+        })->mapWithKeys(function($segmentPlaylist) {
210 210
             return [$segmentPlaylist => $this->getProcessedPlaylist($segmentPlaylist)];
211 211
         })->prepend(
212 212
             $this->getProcessedPlaylist($this->media->getPath()),
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      */
223 223
     public function getProcessedPlaylist(string $playlistPath): string
224 224
     {
225
-        return static::parseLines($this->disk->get($playlistPath))->map(function (string $line) {
225
+        return static::parseLines($this->disk->get($playlistPath))->map(function(string $line) {
226 226
             if (static::lineHasMediaFilename($line)) {
227 227
                 return Str::endsWith($line, '.m3u8')
228 228
                     ? $this->resolvePlaylistFilename($line)
Please login to merge, or discard this patch.
src/Filesystem/MediaCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function getHeaders(): array
42 42
     {
43
-        return $this->items->map(function ($media) {
43
+        return $this->items->map(function($media) {
44 44
             return $media instanceof MediaOnNetwork ? $media->getHeaders() : [];
45 45
         })->all();
46 46
     }
Please login to merge, or discard this patch.
src/MediaOpener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      */
172 172
     public function export(): MediaExporter
173 173
     {
174
-        return tap(new MediaExporter($this->getDriver()), function (MediaExporter $mediaExporter) {
174
+        return tap(new MediaExporter($this->getDriver()), function(MediaExporter $mediaExporter) {
175 175
             if ($this->timecode) {
176 176
                 $mediaExporter->frame($this->timecode);
177 177
             }
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
     public function each($items, callable $callback): self
197 197
     {
198
-        Collection::make($items)->each(function ($item, $key) use ($callback) {
198
+        Collection::make($items)->each(function($item, $key) use ($callback) {
199 199
             return $callback($this->clone(), $item, $key);
200 200
         });
201 201
 
Please login to merge, or discard this patch.
src/Support/ServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
         // Automatically apply the package configuration
33 33
         $this->mergeConfigFrom(__DIR__ . '/../../config/config.php', 'laravel-ffmpeg');
34 34
 
35
-        $this->app->singleton('laravel-ffmpeg-logger', function () {
35
+        $this->app->singleton('laravel-ffmpeg-logger', function() {
36 36
             return $this->app['config']->get('laravel-ffmpeg.enable_logging', true)
37 37
                 ? app(LoggerInterface::class)
38 38
                 : null;
39 39
         });
40 40
 
41
-        $this->app->singleton('laravel-ffmpeg-configuration', function () {
41
+        $this->app->singleton('laravel-ffmpeg-configuration', function() {
42 42
             $config = $this->app['config'];
43 43
 
44 44
             return [
@@ -49,39 +49,39 @@  discard block
 block discarded – undo
49 49
             ];
50 50
         });
51 51
 
52
-        $this->app->singleton(FFProbe::class, function () {
52
+        $this->app->singleton(FFProbe::class, function() {
53 53
             return FFProbe::create(
54 54
                 $this->app->make('laravel-ffmpeg-configuration'),
55 55
                 $this->app->make('laravel-ffmpeg-logger')
56 56
             );
57 57
         });
58 58
 
59
-        $this->app->singleton(FFMpegDriver::class, function () {
59
+        $this->app->singleton(FFMpegDriver::class, function() {
60 60
             return FFMpegDriver::create(
61 61
                 $this->app->make('laravel-ffmpeg-logger'),
62 62
                 $this->app->make('laravel-ffmpeg-configuration')
63 63
             );
64 64
         });
65 65
 
66
-        $this->app->singleton(FFMpeg::class, function () {
66
+        $this->app->singleton(FFMpeg::class, function() {
67 67
             return new FFMpeg(
68 68
                 $this->app->make(FFMpegDriver::class),
69 69
                 $this->app->make(FFProbe::class)
70 70
             );
71 71
         });
72 72
 
73
-        $this->app->singleton(PHPFFMpeg::class, function () {
73
+        $this->app->singleton(PHPFFMpeg::class, function() {
74 74
             return new PHPFFMpeg($this->app->make(FFMpeg::class));
75 75
         });
76 76
 
77
-        $this->app->singleton(TemporaryDirectories::class, function () {
77
+        $this->app->singleton(TemporaryDirectories::class, function() {
78 78
             return new TemporaryDirectories(
79 79
                 $this->app['config']->get('laravel-ffmpeg.temporary_files_root', sys_get_temp_dir()),
80 80
             );
81 81
         });
82 82
 
83 83
         // Register the main class to use with the facade
84
-        $this->app->singleton('laravel-ffmpeg', function () {
84
+        $this->app->singleton('laravel-ffmpeg', function() {
85 85
             return new MediaOpenerFactory(
86 86
                 $this->app['config']->get('filesystems.default'),
87 87
                 $this->app->make(PHPFFMpeg::class)
Please login to merge, or discard this patch.
src/Support/MediaOpenerFactory.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@
 block discarded – undo
31 31
     }
32 32
 
33 33
     /**
34
-    * Handle dynamic method calls into the MediaOpener.
35
-    *
36
-    * @param  string  $method
37
-    * @param  array  $parameters
38
-    * @return mixed
39
-    */
34
+     * Handle dynamic method calls into the MediaOpener.
35
+     *
36
+     * @param  string  $method
37
+     * @param  array  $parameters
38
+     * @return mixed
39
+     */
40 40
     public function __call($method, $parameters)
41 41
     {
42 42
         return $this->forwardCallTo($this->new(), $method, $parameters);
Please login to merge, or discard this patch.