@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | $files = $this->list($folder); |
| 26 | 26 | |
| 27 | 27 | return collect($files) |
| 28 | - ->map(function ($path) use ($folder, $files) { |
|
| 28 | + ->map(function($path) use ($folder, $files) { |
|
| 29 | 29 | $filename = str_replace($folder.DIRECTORY_SEPARATOR, '', $path); |
| 30 | 30 | $exploded_name = explode('_', $filename); |
| 31 | 31 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $last = count($files) - 1 == $index; |
| 34 | 34 | |
| 35 | 35 | return new Chunk(intval($index), $path, $this->disk(), $last); |
| 36 | - })->sortBy(function (Chunk $chunk) { |
|
| 36 | + })->sortBy(function(Chunk $chunk) { |
|
| 37 | 37 | return $chunk->getIndex(); |
| 38 | 38 | })->values(); |
| 39 | 39 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | public function store(Chunk $chunk, string $folder, $options = []): Chunk |
| 89 | 89 | { |
| 90 | - if (! $chunk->getOriginalPath() instanceof File) { |
|
| 90 | + if (!$chunk->getOriginalPath() instanceof File) { |
|
| 91 | 91 | throw new ChunkyException('Path must be a file'); |
| 92 | 92 | } |
| 93 | 93 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | public function deleteChunk(Chunk $chunk): bool |
| 119 | 119 | { |
| 120 | - if (! $this->filesystem()->disk($this->disk())->exists($chunk->getPath())) { |
|
| 120 | + if (!$this->filesystem()->disk($this->disk())->exists($chunk->getPath())) { |
|
| 121 | 121 | return true; |
| 122 | 122 | } |
| 123 | 123 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | { |
| 142 | 142 | $folder = $this->path($folder); |
| 143 | 143 | |
| 144 | - if (! $this->filesystem()->disk($this->disk())->exists($folder)) { |
|
| 144 | + if (!$this->filesystem()->disk($this->disk())->exists($folder)) { |
|
| 145 | 145 | return true; |
| 146 | 146 | } |
| 147 | 147 | |