@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | public function chunks(string $folder): Collection |
| 179 | 179 | { |
| 180 | 180 | return collect($this->chunksFilesystem()->files($folder)) |
| 181 | - ->map(function ($path) use ($folder) { |
|
| 181 | + ->map(function($path) use ($folder) { |
|
| 182 | 182 | $filename = str_replace($folder.DIRECTORY_SEPARATOR, '', $path); |
| 183 | 183 | $exploded_name = explode('_', $filename); |
| 184 | 184 | $index = array_shift($exploded_name); |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | 'index' => intval($index), |
| 188 | 188 | 'path' => $path, |
| 189 | 189 | ]; |
| 190 | - })->sortBy(function ($item) { |
|
| 190 | + })->sortBy(function($item) { |
|
| 191 | 191 | return $item['index']; |
| 192 | 192 | }); |
| 193 | 193 | } |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | public function register() |
| 32 | 32 | { |
| 33 | - $this->app->singleton('chunky', function (Container $app) { |
|
| 33 | + $this->app->singleton('chunky', function(Container $app) { |
|
| 34 | 34 | $settings = new ChunkySettings( |
| 35 | 35 | $app->make('config') |
| 36 | 36 | ); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | ); |
| 42 | 42 | }); |
| 43 | 43 | |
| 44 | - $this->app->singleton(StrategyFactoryContract::class, function (Container $app) { |
|
| 44 | + $this->app->singleton(StrategyFactoryContract::class, function(Container $app) { |
|
| 45 | 45 | return new StrategyFactory( |
| 46 | 46 | $app->make('config')->get('chunky.strategies') |
| 47 | 47 | ); |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | { |
| 46 | 46 | return $this->chunks( |
| 47 | 47 | $this->folder |
| 48 | - )->map(function ($chunk) { |
|
| 48 | + )->map(function($chunk) { |
|
| 49 | 49 | return $chunk['path']; |
| 50 | 50 | })->toArray(); |
| 51 | 51 | } |