Completed
Branch master (1995c1)
by Raffael
08:57
created
src/lib/Balloon/Preview/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
Please login to merge, or discard this patch.
src/lib/Balloon/Preview/PreviewInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
Please login to merge, or discard this patch.
src/lib/Balloon/App/Api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
Please login to merge, or discard this patch.
src/lib/Balloon/App/AbstractApp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         $this->logger   = $logger;
108 108
         $this->fs       = $fs;
109 109
         $this->db       = $fs->getDatabase();
110
-        $this->pluginmgr= $fs->getPlugin();
110
+        $this->pluginmgr = $fs->getPlugin();
111 111
         $this->queuemgr = $fs->getQueue();
112 112
         $this->auth     = $auth;
113 113
 
Please login to merge, or discard this patch.
src/lib/Balloon/User.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -458,8 +458,8 @@
 block discarded – undo
458 458
         
459 459
         $ops[] = [
460 460
             '$sort' => [
461
-               "sum" => -1,
462
-               "_id" => 1
461
+                "sum" => -1,
462
+                "_id" => 1
463 463
             ],
464 464
         ];
465 465
         
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      * @param   bool $ignore_deleted
184 184
      * @return  void
185 185
      */
186
-    public function __construct($user, Logger $logger, Filesystem $fs, bool $autocreate=false, bool $ignore_deleted=true)
186
+    public function __construct($user, Logger $logger, Filesystem $fs, bool $autocreate = false, bool $ignore_deleted = true)
187 187
     {
188 188
         $this->fs       = $fs;
189 189
         $this->db       = $fs->getDatabase();
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
             ]);
198 198
             
199 199
             if ($attributes === false || $attributes === null) {
200
-                throw new Exception('user with id ' . $user . ' does not exists');
200
+                throw new Exception('user with id '.$user.' does not exists');
201 201
             }
202 202
 
203 203
             $username = $user;
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      * @param  string|array $attribute
278 278
      * @return mixed
279 279
      */
280
-    public function getAttribute($attribute=null)
280
+    public function getAttribute($attribute = null)
281 281
     {
282 282
         $valid = [
283 283
             'id',
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
      * @param  bool $string
353 353
      * @return array
354 354
      */
355
-    public function getShares(bool $string=false): array
355
+    public function getShares(bool $string = false): array
356 356
     {
357 357
         $item = $this->db->storage->find([
358 358
             'deleted'   => false,
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
             'reference' => 1,
364 364
         ]);
365 365
 
366
-        $found  = [];
366
+        $found = [];
367 367
         
368 368
         foreach ($item as $child) {
369 369
             if (isset($child['reference']) && $child['reference'] instanceof ObjectID) {
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
      * @param   int $limit
390 390
      * @return  array
391 391
      */
392
-    public function getNodeAttributeSummary($attributes=[], int $limit=25): array
392
+    public function getNodeAttributeSummary($attributes = [], int $limit = 25): array
393 393
     {
394 394
         $mongodb = $this->db->storage;
395 395
 
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
      * @param   int $limit
428 428
      * @return  array
429 429
      */
430
-    protected function _getAttributeSummary(string $attribute, string $type='string', int $limit=25): array
430
+    protected function _getAttributeSummary(string $attribute, string $type = 'string', int $limit = 25): array
431 431
     {
432 432
         $mongodb = $this->db->storage;
433 433
 
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
                     '$and' => [
438 438
                         ['owner' => $this->_id],
439 439
                         ['deleted' => false],
440
-                        [$attribute => ['$exists' => true] ]
440
+                        [$attribute => ['$exists' => true]]
441 441
                     ]
442 442
                 ]
443 443
             ],
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
      * @param   array $attributes
704 704
      * @return  bool
705 705
      */
706
-    public function save(array $attributes=[]): bool
706
+    public function save(array $attributes = []): bool
707 707
     {
708 708
         $set = [];
709 709
         foreach ($attributes as $attr) {
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
     {
762 762
         $quota = $this->getQuotaUsage();
763 763
 
764
-        if (($quota['used']+$add) > $quota['hard_quota']) {
764
+        if (($quota['used'] + $add) > $quota['hard_quota']) {
765 765
             return false;
766 766
         }
767 767
 
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
      * @param  bool $force
776 776
      * @return bool
777 777
      */
778
-    public function delete(bool $force=false): bool
778
+    public function delete(bool $force = false): bool
779 779
     {
780 780
         if ($force === false) {
781 781
             $result_data = $this->fs->getRoot()->delete();
Please login to merge, or discard this patch.
src/lib/Balloon/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
Please login to merge, or discard this patch.
src/lib/Balloon/Resource/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
Please login to merge, or discard this patch.
src/lib/Balloon/Exception/Coding.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
Please login to merge, or discard this patch.
src/lib/Balloon/Exception/Conflict.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
Please login to merge, or discard this patch.