Completed
Push — master ( 4ab8b3...849f01 )
by Raffael
06:16
created
src/app/Balloon.App.Elasticsearch/Job.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     /**
76 76
      * Constructor.
77 77
      *
78
-     * @param Elasticsarch           $es
78
+     * @param Elasticsearch           $es
79 79
      * @param Storage                $storage
80 80
      * @param Server                 $server
81 81
      * @param NodeAttributeDecorator $decorator
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 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:
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
         ]);
218 218
 
219 219
         $params = [
220
-            'id' => (string) $node,
220
+            'id' => (string)$node,
221 221
             'type' => 'storage',
222 222
             'index' => $this->es->getIndex(),
223 223
         ];
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
         ]);
243 243
 
244 244
         $params = [
245
-            'id' => (string) $node,
245
+            'id' => (string)$node,
246 246
             'type' => 'storage',
247 247
             'index' => $this->es->getIndex(),
248 248
         ];
@@ -263,10 +263,10 @@  discard block
 block discarded – undo
263 263
      */
264 264
     protected function setMemoryLimit(): self
265 265
     {
266
-        $limit = (int) ini_get('memory_limit') * 1024 * 1024;
266
+        $limit = (int)ini_get('memory_limit') * 1024 * 1024;
267 267
         $required = $this->size_limit * 2;
268 268
         if ($limit !== -1 && $limit < $limit + $required) {
269
-            ini_set('memory_limit', (string) (($limit + $required) * 1024 * 1024));
269
+            ini_set('memory_limit', (string)(($limit + $required) * 1024 * 1024));
270 270
         }
271 271
 
272 272
         return $this;
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     {
284 284
         return [
285 285
             'index' => $this->es->getIndex(),
286
-            'id' => (string) $node->getId(),
286
+            'id' => (string)$node->getId(),
287 287
             'type' => 'storage',
288 288
         ];
289 289
     }
@@ -353,11 +353,11 @@  discard block
 block discarded – undo
353 353
         $content = base64_encode(stream_get_contents($node->get()));
354 354
 
355 355
         $metadata = $meta['metadata'];
356
-        array_walk_recursive($metadata, function (&$value) { $value = (string) $value; });
356
+        array_walk_recursive($metadata, function(&$value) { $value = (string)$value; });
357 357
 
358 358
         $params = [
359 359
             'index' => $this->es->getIndex(),
360
-            'id' => (string) new ObjectId(),
360
+            'id' => (string)new ObjectId(),
361 361
             'type' => 'fs',
362 362
             'body' => [
363 363
                 'metadata' => $metadata,
Please login to merge, or discard this patch.
src/lib/Server.php 1 patch
Spacing   +4 added lines, -4 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
@@ -149,13 +149,13 @@  discard block
 block discarded – undo
149 149
                 case 'temp_dir':
150 150
                 case 'password_policy':
151 151
                 case 'server_url':
152
-                    $this->{$name} = (string) $value;
152
+                    $this->{$name} = (string)$value;
153 153
 
154 154
                 break;
155 155
                 case 'max_file_version':
156 156
                 case 'max_file_size':
157 157
                 case 'password_hash':
158
-                    $this->{$name} = (int) $value;
158
+                    $this->{$name} = (int)$value;
159 159
 
160 160
                 break;
161 161
                 default:
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
 
364 364
                 break;
365 365
                 case 'admin':
366
-                    $value = (bool) $value;
366
+                    $value = (bool)$value;
367 367
 
368 368
                 break;
369 369
                 case 'locale':
Please login to merge, or discard this patch.