Completed
Push — master ( 3cb4c8...0f7cfa )
by Raffael
09:35 queued 06:16
created
src/app/Balloon.App.Elasticsearch/Job.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         foreach ($config as $option => $value) {
111 111
             switch ($option) {
112 112
                 case 'size_limit':
113
-                    $this->size_limit = (int) $value;
113
+                    $this->size_limit = (int)$value;
114 114
 
115 115
                 break;
116 116
                 default:
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
         ]);
219 219
 
220 220
         $params = [
221
-            'id' => (string) $node,
221
+            'id' => (string)$node,
222 222
             'type' => 'storage',
223 223
             'index' => $this->es->getIndex(),
224 224
         ];
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         ]);
244 244
 
245 245
         $params = [
246
-            'id' => (string) $node,
246
+            'id' => (string)$node,
247 247
             'type' => 'storage',
248 248
             'index' => $this->es->getIndex(),
249 249
         ];
@@ -264,10 +264,10 @@  discard block
 block discarded – undo
264 264
      */
265 265
     protected function setMemoryLimit(): self
266 266
     {
267
-        $limit = (int) ini_get('memory_limit') * 1024 * 1024;
267
+        $limit = (int)ini_get('memory_limit') * 1024 * 1024;
268 268
         $required = $this->size_limit * 2;
269 269
         if ($limit !== -1 && $limit < $limit + $required) {
270
-            ini_set('memory_limit', (string) (($limit + $required) * 1024 * 1024));
270
+            ini_set('memory_limit', (string)(($limit + $required) * 1024 * 1024));
271 271
         }
272 272
 
273 273
         return $this;
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
     {
285 285
         return [
286 286
             'index' => $this->es->getIndex(),
287
-            'id' => (string) $node->getId(),
287
+            'id' => (string)$node->getId(),
288 288
             'type' => 'storage',
289 289
         ];
290 290
     }
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
     {
302 302
         $params = [
303 303
             'index' => $this->es->getIndex(),
304
-            'id' => (string) $storage_reference['_id'],
304
+            'id' => (string)$storage_reference['_id'],
305 305
             'type' => 'fs',
306 306
         ];
307 307
 
@@ -343,11 +343,11 @@  discard block
 block discarded – undo
343 343
         $content = base64_encode(stream_get_contents($node->get()));
344 344
 
345 345
         $metadata = $meta['metadata'];
346
-        array_walk_recursive($metadata, function (&$value) { $value = (string) $value; });
346
+        array_walk_recursive($metadata, function(&$value) { $value = (string)$value; });
347 347
 
348 348
         $params = [
349 349
             'index' => $this->es->getIndex(),
350
-            'id' => (string) $meta['_id'],
350
+            'id' => (string)$meta['_id'],
351 351
             'type' => 'fs',
352 352
             'body' => [
353 353
                 'metadata' => $metadata,
Please login to merge, or discard this patch.
src/app/Balloon.App.Elasticsearch/Exception/InvalidQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Elasticsearch/Exception/IndexConfigurationNotFound.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Elasticsearch/Exception/InvalidIndexConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Elasticsearch/Elasticsearch.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
         foreach ($config as $option => $value) {
96 96
             switch ($option) {
97 97
                 case 'server':
98
-                    $this->es_server = (array) $value;
98
+                    $this->es_server = (array)$value;
99 99
 
100 100
                 break;
101 101
                 case 'index':
102
-                    $this->es_index = (string) $value;
102
+                    $this->es_index = (string)$value;
103 103
 
104 104
                 break;
105 105
                 default:
@@ -204,8 +204,8 @@  discard block
 block discarded – undo
204 204
         $bool = $query['body']['query'];
205 205
 
206 206
         $filter1 = [];
207
-        $filter1['bool']['should'][]['term']['owner'] = (string) $this->user->getId();
208
-        $filter1['bool']['should'][]['term']['metadata.ref.owner'] = (string) $this->user->getId();
207
+        $filter1['bool']['should'][]['term']['owner'] = (string)$this->user->getId();
208
+        $filter1['bool']['should'][]['term']['metadata.ref.owner'] = (string)$this->user->getId();
209 209
 
210 210
         $share_filter = [
211 211
             'bool' => [
Please login to merge, or discard this patch.
src/app/Balloon.App.Convert/Constructor/Http.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             ->prependRoute(new Route('/api/v2/files/convert(/|\z)', Convert::class))
35 35
             ->prependRoute(new Route('/api/v2/files/{id:#([0-9a-z]{24})#}/convert(/|\z)', Convert::class));
36 36
 
37
-        $node_decorator->addDecorator('master', function ($node) use ($convert_decorator, $converter) {
37
+        $node_decorator->addDecorator('master', function($node) use ($convert_decorator, $converter) {
38 38
             $master = $node->getAppAttribute('Balloon\\App\\Convert', 'master');
39 39
             if (null === $master) {
40 40
                 return null;
Please login to merge, or discard this patch.
src/app/Balloon.App.Convert/Api/v2/Convert.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Convert/Exception/InvalidFormat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Convert/Exception/SlaveNotFound.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.