Test Setup Failed
Branch master (b29bf8)
by Raffael
03:59
created
src/lib/Hook/AutoCreateUser.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
         }
91 91
 
92 92
         $this->logger->info('found first time username ['.$identity->getIdentifier().'], auto-create user', [
93
-             'category' => get_class($this),
93
+                'category' => get_class($this),
94 94
         ]);
95 95
 
96 96
         $attributes = [];
Please login to merge, or discard this patch.
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.