Completed
Push — master ( 2d4c67...9c9bdc )
by Raffael
08:15
created
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.