Completed
Branch dev (276354)
by Raffael
15:43
created
src/lib/Server.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
 
532 532
         $this->identity = $user;
533 533
         $user->updateIdentity($identity)
534
-             ->updateShares();
534
+                ->updateShares();
535 535
         $this->hook->run('postServerIdentity', [$user]);
536 536
 
537 537
         return true;
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
     public function getGroupByName(string $name): Group
663 663
     {
664 664
         $group = $this->db->group->findOne([
665
-           'name' => $name,
665
+            'name' => $name,
666 666
         ]);
667 667
 
668 668
         if (null === $group) {
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
     public function getGroupById(ObjectId $id): Group
683 683
     {
684 684
         $group = $this->db->group->findOne([
685
-           '_id' => $id,
685
+            '_id' => $id,
686 686
         ]);
687 687
 
688 688
         if (null === $group) {
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v2/Nodes.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -279,52 +279,52 @@  discard block
 block discarded – undo
279 279
         }
280 280
 
281 281
         return $response
282
-          ->setOutputFormat(null)
283
-          ->setBody(function () use ($node, $encode, $offset, $limit) {
284
-              $stream = $node->get();
285
-              $name = $node->getName();
282
+            ->setOutputFormat(null)
283
+            ->setBody(function () use ($node, $encode, $offset, $limit) {
284
+                $stream = $node->get();
285
+                $name = $node->getName();
286 286
 
287
-              if (null === $stream) {
288
-                  echo '';
287
+                if (null === $stream) {
288
+                    echo '';
289 289
 
290
-                  return;
291
-              }
290
+                    return;
291
+                }
292 292
 
293
-              if (0 !== $offset) {
294
-                  if (fseek($stream, $offset) === -1) {
295
-                      throw new Exception\Conflict(
293
+                if (0 !== $offset) {
294
+                    if (fseek($stream, $offset) === -1) {
295
+                        throw new Exception\Conflict(
296 296
                         'invalid offset requested',
297 297
                         Exception\Conflict::INVALID_OFFSET
298 298
                     );
299
-                  }
300
-              }
301
-
302
-              $read = 0;
303
-              if ('base64' === $encode) {
304
-                  header('Content-Encoding: base64');
305
-                  while (!feof($stream)) {
306
-                      if (0 !== $limit && $read + 8192 > $limit) {
307
-                          echo base64_encode(fread($stream, $limit - $read));
308
-                          exit();
309
-                      }
310
-
311
-                      echo base64_encode(fread($stream, 8192));
312
-                      $read += 8192;
313
-                  }
314
-              } else {
315
-                  while (!feof($stream)) {
316
-                      if (0 !== $limit && $read + 8192 > $limit) {
317
-                          echo fread($stream, $limit - $read);
318
-                          exit();
319
-                      }
320
-
321
-                      echo fread($stream, 8192);
322
-                      $read += 8192;
323
-                  }
324
-
325
-                  exit();
326
-              }
327
-          });
299
+                    }
300
+                }
301
+
302
+                $read = 0;
303
+                if ('base64' === $encode) {
304
+                    header('Content-Encoding: base64');
305
+                    while (!feof($stream)) {
306
+                        if (0 !== $limit && $read + 8192 > $limit) {
307
+                            echo base64_encode(fread($stream, $limit - $read));
308
+                            exit();
309
+                        }
310
+
311
+                        echo base64_encode(fread($stream, 8192));
312
+                        $read += 8192;
313
+                    }
314
+                } else {
315
+                    while (!feof($stream)) {
316
+                        if (0 !== $limit && $read + 8192 > $limit) {
317
+                            echo fread($stream, $limit - $read);
318
+                            exit();
319
+                        }
320
+
321
+                        echo fread($stream, 8192);
322
+                        $read += 8192;
323
+                    }
324
+
325
+                    exit();
326
+                }
327
+            });
328 328
     }
329 329
 
330 330
     /**
@@ -1129,9 +1129,9 @@  discard block
 block discarded – undo
1129 1129
                 $node->zip($archive);
1130 1130
             } catch (\Exception $e) {
1131 1131
                 $this->logger->debug('failed zip node in multi node request ['.$node->getId().']', [
1132
-                   'category' => get_class($this),
1133
-                   'exception' => $e,
1134
-               ]);
1132
+                    'category' => get_class($this),
1133
+                    'exception' => $e,
1134
+                ]);
1135 1135
             }
1136 1136
         }
1137 1137
 
Please login to merge, or discard this patch.
src/app/Balloon.App.Sharelink/Migration/Delta/SharelinkIntoApp.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@
 block discarded – undo
49 49
             $this->db->storage->updateOne(
50 50
                 ['_id' => $object['_id']],
51 51
                 [
52
-                  '$unset' => ['sharelink' => 1],
53
-                  '$set' => ['app.Balloon\App\Sharelink' => $object['sharelink']],
52
+                    '$unset' => ['sharelink' => 1],
53
+                    '$set' => ['app.Balloon\App\Sharelink' => $object['sharelink']],
54 54
                 ]
55 55
             );
56 56
         }
Please login to merge, or discard this patch.