Test Failed
Pull Request — master (#28)
by Filippo
05:08
created
src/ChunksManager.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     public function addChunk(UploadedFile $file, int $index, string $folder): Chunk
152 152
     {
153 153
         // Check integrity
154
-        if (! $this->checkChunkIntegrity($folder, $index)) {
154
+        if (!$this->checkChunkIntegrity($folder, $index)) {
155 155
             throw new ChunksIntegrityException("Uploaded chunk with index {$index} violates the integrity");
156 156
         }
157 157
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
         $progress_bar = $this->hasProgressBar($output, count($folders));
186 186
 
187 187
         foreach ($folders as $folder) {
188
-            if (! $this->deleteChunkFolder($folder)) {
188
+            if (!$this->deleteChunkFolder($folder)) {
189 189
                 return false;
190 190
             }
191 191
 
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public function handleMerge(string $folder, string $destination, int $chunk_size, int $total_size)
233 233
     {
234
-        if (! $this->checkFilesIntegrity($folder, $chunk_size, $total_size)) {
234
+        if (!$this->checkFilesIntegrity($folder, $chunk_size, $total_size)) {
235 235
             throw new ChunksIntegrityException('Chunks total file size doesnt match with original file size');
236 236
         }
237 237
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
         $path = $this->chunksFilesystem()->fullPath($folder);
259 259
         $default = $this->settings->defaultIndex();
260 260
 
261
-        if (! $this->chunksFilesystem()->exists($path) && $index != $default) {
261
+        if (!$this->chunksFilesystem()->exists($path) && $index != $default) {
262 262
             return false;
263 263
         } elseif ($this->chunksFilesystem()->exists($path)) {
264 264
             if (ChunkySettings::INDEX_ZERO != $default) {
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
             return $this->chunksFilesystem()->chunksCount($path) == $index;
269 269
         } elseif ($index == $default) {
270
-            if (! $this->chunksFilesystem()->makeDirectory($path)) {
270
+            if (!$this->chunksFilesystem()->makeDirectory($path)) {
271 271
                 throw new ChunksIntegrityException("Cannot create chunks folder $path");
272 272
             }
273 273
         }
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
         foreach ($chunks as $chunk) {
287 287
             $size = $this->chunksFilesystem->chunkSize($chunk->getPath());
288 288
 
289
-            if ($size < $chunk_size && ! $chunk->isLast()) {
289
+            if ($size < $chunk_size && !$chunk->isLast()) {
290 290
                 return false;
291 291
             }
292 292
 
Please login to merge, or discard this patch.