@@ -76,7 +76,7 @@ |
||
76 | 76 | $this->mime_type |
77 | 77 | ); |
78 | 78 | |
79 | - if (! $handler->checkIntegrity($this->chunk_size, $this->total_size)) { |
|
79 | + if (!$handler->checkIntegrity($this->chunk_size, $this->total_size)) { |
|
80 | 80 | throw new ChunksIntegrityException('Chunks total file size doesnt match with original file size'); |
81 | 81 | } |
82 | 82 |
@@ -50,17 +50,17 @@ discard block |
||
50 | 50 | { |
51 | 51 | $this->manager = $manager; |
52 | 52 | |
53 | - if (! $this->confirmToProceed()) { |
|
53 | + if (!$this->confirmToProceed()) { |
|
54 | 54 | return; |
55 | 55 | } |
56 | 56 | |
57 | 57 | $root = $this->manager->getChunksFolder(); |
58 | 58 | $folder = $this->argument('folder'); |
59 | 59 | |
60 | - if (! empty($folder)) { |
|
60 | + if (!empty($folder)) { |
|
61 | 61 | $root .= $folder; |
62 | 62 | |
63 | - if (! $this->manager->deleteChunks($root)) { |
|
63 | + if (!$this->manager->deleteChunks($root)) { |
|
64 | 64 | $this->error("An error occurred while deleting folder {$root}"); |
65 | 65 | |
66 | 66 | return; |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | $this->info("folder {$root} cleared!"); |
70 | 70 | } else { |
71 | - if (! $this->manager->deleteAllChunks($this->output)) { |
|
71 | + if (!$this->manager->deleteAllChunks($this->output)) { |
|
72 | 72 | $this->error("An error occurred while deleting folder {$folder}"); |
73 | 73 | |
74 | 74 | return; |
@@ -17,7 +17,7 @@ |
||
17 | 17 | foreach ($chunks as $chunk) { |
18 | 18 | $size = $this->chunksFilesystem()->size($chunk->getPath()); |
19 | 19 | |
20 | - if ($size < $chunk_size && ! $chunk->isLast()) { |
|
20 | + if ($size < $chunk_size && !$chunk->isLast()) { |
|
21 | 21 | return false; |
22 | 22 | } |
23 | 23 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function chunksFolderExists($folder = ''): bool |
38 | 38 | { |
39 | - if (! Str::startsWith($folder, $this->getChunksFolder())) { |
|
39 | + if (!Str::startsWith($folder, $this->getChunksFolder())) { |
|
40 | 40 | $folder = $this->getChunksFolder().$folder; |
41 | 41 | } |
42 | 42 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $progress_bar = $this->hasProgressBar($output, count($folders)); |
61 | 61 | |
62 | 62 | foreach ($folders as $folder) { |
63 | - if (! $this->deleteChunks($folder)) { |
|
63 | + if (!$this->deleteChunks($folder)) { |
|
64 | 64 | return false; |
65 | 65 | } |
66 | 66 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function deleteChunks(string $folder): bool |
83 | 83 | { |
84 | - if (! $this->chunksFolderExists($folder)) { |
|
84 | + if (!$this->chunksFolderExists($folder)) { |
|
85 | 85 | return false; |
86 | 86 | } |
87 | 87 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $deleted = $this->chunksFilesystem() |
92 | 92 | ->delete($chunk->getPath()); |
93 | 93 | |
94 | - if (! $deleted) { |
|
94 | + if (!$deleted) { |
|
95 | 95 | return false; |
96 | 96 | } |
97 | 97 |