Passed
Push — master ( 8b7076...2c25c6 )
by Raffael
04:17
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.Notification/Api/v2/Notifications.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -221,10 +221,10 @@
 block discarded – undo
221 221
     {
222 222
         $mail = new Message();
223 223
         $mail->setBody($body)
224
-          ->setFrom($this->user->getAttributes()['mail'], $this->user->getAttributes()['username'])
225
-          ->setSubject($subject)
226
-          ->setTo($this->user->getAttributes()['mail'], 'Undisclosed Recipients')
227
-          ->setBcc($receiver);
224
+            ->setFrom($this->user->getAttributes()['mail'], $this->user->getAttributes()['username'])
225
+            ->setSubject($subject)
226
+            ->setTo($this->user->getAttributes()['mail'], 'Undisclosed Recipients')
227
+            ->setBcc($receiver);
228 228
         $this->async->addJob(Mail::class, $mail->toString());
229 229
 
230 230
         return (new Response())->setCode(202);
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.
src/app/Balloon.App.Api/v2/Nodes.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -279,50 +279,50 @@  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();
286
-
287
-              if (null === $stream) {
288
-                  return;
289
-              }
290
-
291
-              if (0 !== $offset) {
292
-                  if (fseek($stream, $offset) === -1) {
293
-                      throw new Exception\Conflict(
282
+            ->setOutputFormat(null)
283
+            ->setBody(function () use ($node, $encode, $offset, $limit) {
284
+                $stream = $node->get();
285
+                $name = $node->getName();
286
+
287
+                if (null === $stream) {
288
+                    return;
289
+                }
290
+
291
+                if (0 !== $offset) {
292
+                    if (fseek($stream, $offset) === -1) {
293
+                        throw new Exception\Conflict(
294 294
                         'invalid offset requested',
295 295
                         Exception\Conflict::INVALID_OFFSET
296 296
                     );
297
-                  }
298
-              }
299
-
300
-              $read = 0;
301
-              if ('base64' === $encode) {
302
-                  header('Content-Encoding: base64');
303
-                  while (!feof($stream)) {
304
-                      if (0 !== $limit && $read + 8192 > $limit) {
305
-                          echo base64_encode(fread($stream, $limit - $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 !== $limit && $read + 8192 > $limit) {
315
-                          echo fread($stream, $limit - $read);
316
-                          exit();
317
-                      }
318
-
319
-                      echo fread($stream, 8192);
320
-                      $read += 8192;
321
-                  }
322
-
323
-                  exit();
324
-              }
325
-          });
297
+                    }
298
+                }
299
+
300
+                $read = 0;
301
+                if ('base64' === $encode) {
302
+                    header('Content-Encoding: base64');
303
+                    while (!feof($stream)) {
304
+                        if (0 !== $limit && $read + 8192 > $limit) {
305
+                            echo base64_encode(fread($stream, $limit - $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 !== $limit && $read + 8192 > $limit) {
315
+                            echo fread($stream, $limit - $read);
316
+                            exit();
317
+                        }
318
+
319
+                        echo fread($stream, 8192);
320
+                        $read += 8192;
321
+                    }
322
+
323
+                    exit();
324
+                }
325
+            });
326 326
     }
327 327
 
328 328
     /**
@@ -1073,9 +1073,9 @@  discard block
 block discarded – undo
1073 1073
                 $node->zip($archive);
1074 1074
             } catch (\Exception $e) {
1075 1075
                 $this->logger->debug('failed zip node in multi node request ['.$node->getId().']', [
1076
-                   'category' => get_class($this),
1077
-                   'exception' => $e,
1078
-               ]);
1076
+                    'category' => get_class($this),
1077
+                    'exception' => $e,
1078
+                ]);
1079 1079
             }
1080 1080
         }
1081 1081
 
Please login to merge, or discard this patch.
src/app/Balloon.App.Elasticsearch/Job.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -341,7 +341,7 @@
 block discarded – undo
341 341
         }
342 342
 
343 343
         $this->logger->debug('elasticsarch blob document ['.$result['_id'].'] has no references left, remove completely', [
344
-         'category' => get_class($this),
344
+            'category' => get_class($this),
345 345
         ]);
346 346
 
347 347
         return $this->deleteBlob($result['_id']);
Please login to merge, or discard this patch.
src/app/Balloon.App.Cli/Console/Group.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 
76 76
         $this->logger->info('new group ['.$result.'] created', [
77 77
             'category' => get_class($this),
78
-       ]);
78
+        ]);
79 79
 
80 80
         return true;
81 81
     }
Please login to merge, or discard this patch.
src/lib/Migration/Delta/AddHashToHistory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
                 'foreignField' => '_id',
50 50
                 'localField' => 'history.storage._id',
51 51
                 'as' => 'blob',
52
-           ]],
52
+            ]],
53 53
         ]);
54 54
 
55 55
         foreach ($cursor as $object) {
Please login to merge, or discard this patch.
src/app/Balloon.App.Notification/Adapter/Mail.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -113,10 +113,10 @@
 block discarded – undo
113 113
         $body->addPart($html);
114 114
 
115 115
         $mail = (new Message())
116
-          ->setSubject($message->getSubject($receiver))
117
-          ->setBody($body)
118
-          ->setTo($address)
119
-          ->setEncoding('UTF-8');
116
+            ->setSubject($message->getSubject($receiver))
117
+            ->setBody($body)
118
+            ->setTo($address)
119
+            ->setEncoding('UTF-8');
120 120
 
121 121
         if (null === $sender) {
122 122
             $mail->setFrom($this->sender_address, $this->sender_name);
Please login to merge, or discard this patch.