Completed
Push — master ( 0416ce...a7eaa4 )
by Jindun
10s
created
src/Service/Environment/EnvVariable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             'value' => $this->value,
62 62
             'type' => $this->type,
63 63
             'comment' => $this->comment
64
-        ], function ($v) {
64
+        ], function($v) {
65 65
             return null !== $v;
66 66
         });
67 67
     }
Please login to merge, or discard this patch.
src/Service/Environment/SharedEnvVariable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             'type' => $this->getType(),
38 38
             'comment' => $this->getComment(),
39 39
             'containerId' => $this->containerId
40
-        ], function ($v) {
40
+        ], function($v) {
41 41
             return null !== $v;
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
src/Service/Volume/TmpfsVolume.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             'type' => $this->getType(),
28 28
             'source' => $this->source,
29 29
             'comment' => $this->comment,
30
-        ], function ($v) {
30
+        ], function($v) {
31 31
             return null !== $v;
32 32
         });
33 33
     }
Please login to merge, or discard this patch.
src/Service/Service.php 1 patch
Spacing   +10 added lines, -11 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function __construct()
65 65
     {
66
-        $this->validatorSchema = \GuzzleHttp\json_decode((string)file_get_contents(__DIR__ . '/ServiceJsonSchema.json'), false);
66
+        $this->validatorSchema = \GuzzleHttp\json_decode((string) file_get_contents(__DIR__ . '/ServiceJsonSchema.json'), false);
67 67
     }
68 68
 
69 69
     /**
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             $r = $resources['requests'];
106 106
             $service->requestMemory = $r['memory'] ?? null;
107 107
             $service->requestCpu = $r['cpu'] ?? null;
108
-            $service->requestStorage= $r['storage'] ?? null;
108
+            $service->requestStorage = $r['storage'] ?? null;
109 109
         }
110 110
         if (isset($resources['limits'])) {
111 111
             $l = $resources['limits'];
@@ -126,13 +126,12 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function jsonSerialize(): array
128 128
     {
129
-        $labelMap = function (CommentedItem $commentedItem): array {
129
+        $labelMap = function(CommentedItem $commentedItem): array {
130 130
             return null === $commentedItem->getComment() ?
131
-                ['value' => $commentedItem->getItem()] :
132
-                ['value' => $commentedItem->getItem(), 'comment' => $commentedItem->getComment()];
131
+                ['value' => $commentedItem->getItem()] : ['value' => $commentedItem->getItem(), 'comment' => $commentedItem->getComment()];
133 132
         };
134 133
 
135
-        $jsonSerializeMap = function (\JsonSerializable $obj): array {
134
+        $jsonSerializeMap = function(\JsonSerializable $obj): array {
136 135
             return $obj->jsonSerialize();
137 136
         };
138 137
 
@@ -168,13 +167,13 @@  discard block
 block discarded – undo
168 167
                 'memory' => $this->requestMemory,
169 168
                 'cpu' => $this->requestCpu,
170 169
                 'storage' => $this->requestStorage,
171
-            ], function ($v) {
170
+            ], function($v) {
172 171
                 return null !== $v;
173 172
             }),
174 173
             'limits' => array_filter([
175 174
                 'memory' => $this->limitMemory,
176 175
                 'cpu' => $this->limitCpu,
177
-            ], function ($v) {
176
+            ], function($v) {
178 177
                 return null !== $v;
179 178
             }),
180 179
         ]);
@@ -424,7 +423,7 @@  discard block
 block discarded – undo
424 423
             'source' => $source,
425 424
             'target' => $target,
426 425
             'comment' => $comment,
427
-        ], function ($v) {
426
+        ], function($v) {
428 427
             return null !== $v;
429 428
         });
430 429
     }
@@ -598,7 +597,7 @@  discard block
 block discarded – undo
598 597
 
599 598
     private function removeVolumesByType(string $type): void
600 599
     {
601
-        $filterFunction = function (Volume $vol) use ($type) {
600
+        $filterFunction = function(Volume $vol) use ($type) {
602 601
             return $vol->getType() !== $type;
603 602
         };
604 603
         $this->volumes = array_values(array_filter($this->volumes, $filterFunction));
@@ -621,7 +620,7 @@  discard block
 block discarded – undo
621 620
 
622 621
     public function removeVolumesBySource(string $source): void
623 622
     {
624
-        $filterFunction = function (Volume $vol) use ($source) {
623
+        $filterFunction = function(Volume $vol) use ($source) {
625 624
             return $vol->getSource() !== $source;
626 625
         };
627 626
         $this->volumes = array_values(array_filter($this->volumes, $filterFunction));
Please login to merge, or discard this patch.