Completed
Push — master ( 0a98b4...1f88a2 )
by Raffael
10:50 queued 06:38
created
src/lib/Server.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
 
534 534
         $this->identity = $user;
535 535
         $user->updateIdentity($identity)
536
-             ->updateShares();
536
+                ->updateShares();
537 537
         $this->hook->run('postServerIdentity', [$user]);
538 538
 
539 539
         return true;
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
     public function getGroupByName(string $name): Group
643 643
     {
644 644
         $group = $this->db->group->findOne([
645
-           'name' => $name,
645
+            'name' => $name,
646 646
         ]);
647 647
 
648 648
         if (null === $group) {
@@ -664,7 +664,7 @@  discard block
 block discarded – undo
664 664
         }
665 665
 
666 666
         $group = $this->db->group->findOne([
667
-           '_id' => $id,
667
+            '_id' => $id,
668 668
         ]);
669 669
 
670 670
         if (null === $group) {
Please login to merge, or discard this patch.
src/app/Balloon.App.Api/v1/Node.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -278,49 +278,49 @@  discard block
 block discarded – undo
278 278
         }
279 279
 
280 280
         return $response->setOutputFormat(null)
281
-          ->setBody(function () use ($node, $encode, $offset, $length) {
282
-              $mime = $node->getContentType();
283
-              $stream = $node->get();
284
-              $name = $node->getName();
285
-
286
-              if (null === $stream) {
287
-                  return;
288
-              }
289
-
290
-              if (0 !== $offset) {
291
-                  if (fseek($stream, $offset) === -1) {
292
-                      throw new Exception\Conflict(
281
+            ->setBody(function () use ($node, $encode, $offset, $length) {
282
+                $mime = $node->getContentType();
283
+                $stream = $node->get();
284
+                $name = $node->getName();
285
+
286
+                if (null === $stream) {
287
+                    return;
288
+                }
289
+
290
+                if (0 !== $offset) {
291
+                    if (fseek($stream, $offset) === -1) {
292
+                        throw new Exception\Conflict(
293 293
                         'invalid offset requested',
294 294
                         Exception\Conflict::INVALID_OFFSET
295 295
                     );
296
-                  }
297
-              }
298
-
299
-              $read = 0;
300
-              header('Content-Type: '.$mime.'');
301
-              if ('base64' === $encode) {
302
-                  header('Content-Encoding: base64');
303
-                  while (!feof($stream)) {
304
-                      if (0 !== $length && $read + 8192 > $length) {
305
-                          echo base64_encode(fread($stream, $length - $read));
306
-                          exit();
307
-                      }
308
-
309
-                      echo base64_encode(fread($stream, 8192));
310
-                      $read += 8192;
311
-                  }
312
-              } else {
313
-                  while (!feof($stream)) {
314
-                      if (0 !== $length && $read + 8192 > $length) {
315
-                          echo fread($stream, $length - $read);
316
-                          exit();
317
-                      }
318
-
319
-                      echo fread($stream, 8192);
320
-                      $read += 8192;
321
-                  }
322
-              }
323
-          });
296
+                    }
297
+                }
298
+
299
+                $read = 0;
300
+                header('Content-Type: '.$mime.'');
301
+                if ('base64' === $encode) {
302
+                    header('Content-Encoding: base64');
303
+                    while (!feof($stream)) {
304
+                        if (0 !== $length && $read + 8192 > $length) {
305
+                            echo base64_encode(fread($stream, $length - $read));
306
+                            exit();
307
+                        }
308
+
309
+                        echo base64_encode(fread($stream, 8192));
310
+                        $read += 8192;
311
+                    }
312
+                } else {
313
+                    while (!feof($stream)) {
314
+                        if (0 !== $length && $read + 8192 > $length) {
315
+                            echo fread($stream, $length - $read);
316
+                            exit();
317
+                        }
318
+
319
+                        echo fread($stream, 8192);
320
+                        $read += 8192;
321
+                    }
322
+                }
323
+            });
324 324
     }
325 325
 
326 326
     /**
@@ -1321,9 +1321,9 @@  discard block
 block discarded – undo
1321 1321
                 $node->zip($archive);
1322 1322
             } catch (\Exception $e) {
1323 1323
                 $this->logger->debug('failed zip node in multi node request ['.$node->getId().']', [
1324
-                   'category' => get_class($this),
1325
-                   'exception' => $e,
1326
-               ]);
1324
+                    'category' => get_class($this),
1325
+                    'exception' => $e,
1326
+                ]);
1327 1327
             }
1328 1328
         }
1329 1329
 
Please login to merge, or discard this patch.