Completed
Push — master ( 9c9bdc...7f109c )
by
unknown
02:56
created
src/lib/Balloon/Plugin/Delta.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,11 +33,11 @@  discard block
 block discarded – undo
33 33
     ];
34 34
 
35 35
 
36
-   /**
37
-    * Init
38
-    *
39
-    * @return void
40
-    */
36
+    /**
37
+     * Init
38
+     *
39
+     * @return void
40
+     */
41 41
     public function init(): void
42 42
     {
43 43
         if (php_sapi_name() === 'cli') {
@@ -437,8 +437,8 @@  discard block
 block discarded – undo
437 437
         ];
438 438
  
439 439
         $node->getFilesystem()->getDatabase()->delta->updateMany([
440
-             'node' => [
441
-                 '$in' => $toset,
440
+                'node' => [
441
+                    '$in' => $toset,
442 442
             ],
443 443
         ], $action);
444 444
 
Please login to merge, or discard this patch.
src/lib/Balloon/Plugin/AutoCreateUser.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         }
65 65
 
66 66
         $this->logger->info('found first time username ['.$username.'], auto-create user in mongodb user collection', [
67
-             'category' => get_class($this)
67
+                'category' => get_class($this)
68 68
         ]);
69 69
 
70 70
         $attributes = [
Please login to merge, or discard this patch.
src/lib/Balloon/Plugin/MailNotification.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
                 $mail  = new Message();
153 153
                 $mail->setBody($body);
154 154
                 $mail->setFrom($this->notifications['new_share']['sender']['address'],
155
-                  $this->notifications['new_share']['sender']['name']);
155
+                    $this->notifications['new_share']['sender']['name']);
156 156
                 $mail->setSubject($subject);
157 157
                 
158 158
                 foreach ($receiver as $rec) {
Please login to merge, or discard this patch.
src/lib/Balloon/User.php 1 patch
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.
src/app/Office/src/lib/Template.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     protected function getTemplate(): string
67 67
     {
68 68
         return dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'assets'
69
-          .DIRECTORY_SEPARATOR.'template.'.$this->type;
69
+            .DIRECTORY_SEPARATOR.'template.'.$this->type;
70 70
     }
71 71
 
72 72
 
Please login to merge, or discard this patch.
src/lib/Balloon/Filesystem/Node/File.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                 'changed' => $this->changed,
185 185
                 'deleted' => $this->deleted,
186 186
                 'thumbnail' => $this->thumbnail,
187
-		'meta' => $this->meta
187
+        'meta' => $this->meta
188 188
             ], INode::CONFLICT_NOACTION, true);
189 189
         }
190 190
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             $v = (array)$version;
211 211
 
212 212
             $v['user'] = (new User($version['user'], $this->_logger, $this->_fs))
213
-              ->getUsername();
213
+                ->getUsername();
214 214
             $v['changed'] = Helper::DateTimeToUnix($version['changed']);
215 215
             $filtered[] = $v;
216 216
         }
@@ -602,15 +602,15 @@  discard block
 block discarded – undo
602 602
         $build = [];
603 603
         foreach ($requested as $key => $attr) {
604 604
             switch ($attr) {
605
-               case 'hash':
605
+                case 'hash':
606 606
                case 'version':
607 607
                case 'thumbnail':
608 608
                    $build[$attr] = $this->{$attr};
609
-               break;
609
+                break;
610 610
             
611
-               case 'history':
611
+                case 'history':
612 612
                    $build['history'] = $this->getHistory();
613
-               break;
613
+                break;
614 614
             }
615 615
         }
616 616
 
@@ -875,7 +875,7 @@  discard block
 block discarded – undo
875 875
             //somehow mongo-connector does not catch metadata when set during uploadFromStream()
876 876
             $stream = $bucket->uploadFromStream($id, $contents, ['_id' => $id/*, 'metadata' => $file*/]);
877 877
             $this->_db->{'fs.files'}->updateOne(['_id' => $id], [
878
-              '$set' => ['metadata'=> $file]
878
+                '$set' => ['metadata'=> $file]
879 879
             ]);
880 880
             
881 881
             $this->_logger->info('added new gridfs content node ['.$id.'] for file ['.$this->_id.']', [
Please login to merge, or discard this patch.
src/lib/Balloon/Filesystem/Node/Collection.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                 'changed' => $this->changed,
134 134
                 'deleted' => $this->deleted,
135 135
                 'filter'  => $this->filter,
136
-		'meta' => $this->meta
136
+        'meta' => $this->meta
137 137
             ], INode::CONFLICT_NOACTION, true);
138 138
         }
139 139
 
@@ -899,7 +899,7 @@  discard block
 block discarded – undo
899 899
                 'category' => get_class($this),
900 900
             ]);
901 901
             
902
-	    if(!$this->isRoot()) {
902
+        if(!$this->isRoot()) {
903 903
                 $this->changed = $save['changed'];
904 904
                 $this->save('changed');
905 905
             }            
Please login to merge, or discard this patch.
src/lib/Balloon/Filesystem.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -204,14 +204,14 @@  discard block
 block discarded – undo
204 204
      *
205 205
      * @return Delta
206 206
      */
207
-     public function getDelta(): Delta
208
-     {
209
-         if ($this->delta instanceof Delta) {
210
-             return $this->delta;
211
-         }
207
+        public function getDelta(): Delta
208
+        {
209
+            if ($this->delta instanceof Delta) {
210
+                return $this->delta;
211
+            }
212 212
  
213
-         return $this->delta = new Delta($this);
214
-     }
213
+            return $this->delta = new Delta($this);
214
+        }
215 215
 
216 216
     
217 217
     /**
@@ -579,8 +579,8 @@  discard block
 block discarded – undo
579 579
     protected function _searchElastic(array $query, array $shares): array
580 580
     {
581 581
         $client = \Elasticsearch\ClientBuilder::create()
582
-                   ->setHosts((array)$this->config->search->hosts->server)
583
-                   ->build();
582
+                    ->setHosts((array)$this->config->search->hosts->server)
583
+                    ->build();
584 584
 
585 585
         $bool =  $query['body']['query'];
586 586
 
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
     {
776 776
         $list   = [];
777 777
         
778
-	$result =$this->db->storage->find($filter, [
778
+    $result =$this->db->storage->find($filter, [
779 779
             'skip'      => $cursor,
780 780
             'limit'     => $limit,
781 781
         ]);
Please login to merge, or discard this patch.