@@ -45,7 +45,7 @@ discard block |
||
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 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | { |
72 | 72 | if (is_string($folder) && $this->chunksFolderExists($folder)) { |
73 | 73 | $this->folder = $folder; |
74 | - } elseif (empty($this->folder) || ! $this->chunksFolderExists($this->folder)) { |
|
74 | + } elseif (empty($this->folder) || !$this->chunksFolderExists($this->folder)) { |
|
75 | 75 | throw new StrategyException('Chunks folder cannot be empty'); |
76 | 76 | } |
77 | 77 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | public function __call($method, $parameters) |
96 | 96 | { |
97 | - if (! method_exists($this, $method)) { |
|
97 | + if (!method_exists($this, $method)) { |
|
98 | 98 | return $this->forwardCallTo($this->manager, $method, $parameters); |
99 | 99 | } |
100 | 100 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | foreach ($chunks->all() as $chunk) { |
18 | 18 | $size = $this->chunksFilesystem()->size($chunk['path']); |
19 | 19 | |
20 | - if ($size < $chunk_size && ! $this->isLastChunk($chunk['index'], $total_size, $chunk_size)) { |
|
20 | + if ($size < $chunk_size && !$this->isLastChunk($chunk['index'], $total_size, $chunk_size)) { |
|
21 | 21 | return false; |
22 | 22 | } |
23 | 23 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | */ |
21 | 21 | public function chunksFolderExists($folder = ''): bool |
22 | 22 | { |
23 | - if (! Str::startsWith($folder, $this->getChunksFolder())) { |
|
23 | + if (!Str::startsWith($folder, $this->getChunksFolder())) { |
|
24 | 24 | $folder = $this->getChunksFolder().$folder; |
25 | 25 | } |
26 | 26 | |
@@ -40,18 +40,18 @@ discard block |
||
40 | 40 | $this->getChunksFolder() |
41 | 41 | ); |
42 | 42 | |
43 | - if (app()->runningInConsole() && ! app()->runningUnitTests()) { |
|
43 | + if (app()->runningInConsole() && !app()->runningUnitTests()) { |
|
44 | 44 | $this->progress_bar = $this->output->createProgressBar( |
45 | 45 | count($folders) |
46 | 46 | ); |
47 | 47 | } |
48 | 48 | |
49 | 49 | foreach ($folders as $folder) { |
50 | - if (! $this->deleteChunks($folder)) { |
|
50 | + if (!$this->deleteChunks($folder)) { |
|
51 | 51 | return false; |
52 | 52 | } |
53 | 53 | |
54 | - if (app()->runningInConsole() && ! app()->runningUnitTests()) { |
|
54 | + if (app()->runningInConsole() && !app()->runningUnitTests()) { |
|
55 | 55 | $this->progress_bar->advance(); |
56 | 56 | } |
57 | 57 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function deleteChunks(string $folder): bool |
70 | 70 | { |
71 | - if (! $this->chunksFolderExists($folder)) { |
|
71 | + if (!$this->chunksFolderExists($folder)) { |
|
72 | 72 | return false; |
73 | 73 | } |
74 | 74 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $deleted = $this->chunksFilesystem() |
84 | 84 | ->delete($file['path']); |
85 | 85 | |
86 | - if (! $deleted) { |
|
86 | + if (!$deleted) { |
|
87 | 87 | return false; |
88 | 88 | } |
89 | 89 |