@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function __construct() |
| 66 | 66 | { |
| 67 | - $this->validatorSchema = \GuzzleHttp\json_decode((string)file_get_contents(__DIR__ . '/ServiceJsonSchema.json'), false); |
|
| 67 | + $this->validatorSchema = \GuzzleHttp\json_decode((string) file_get_contents(__DIR__ . '/ServiceJsonSchema.json'), false); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $r = $resources['requests']; |
| 108 | 108 | $service->requestMemory = $r['memory'] ?? null; |
| 109 | 109 | $service->requestCpu = $r['cpu'] ?? null; |
| 110 | - $service->requestStorage= $r['storage'] ?? null; |
|
| 110 | + $service->requestStorage = $r['storage'] ?? null; |
|
| 111 | 111 | } |
| 112 | 112 | if (isset($resources['limits'])) { |
| 113 | 113 | $l = $resources['limits']; |
@@ -128,13 +128,12 @@ discard block |
||
| 128 | 128 | */ |
| 129 | 129 | public function jsonSerialize(): array |
| 130 | 130 | { |
| 131 | - $labelMap = function (CommentedItem $commentedItem): array { |
|
| 131 | + $labelMap = function(CommentedItem $commentedItem): array { |
|
| 132 | 132 | return null === $commentedItem->getComment() ? |
| 133 | - ['value' => $commentedItem->getItem()] : |
|
| 134 | - ['value' => $commentedItem->getItem(), 'comment' => $commentedItem->getComment()]; |
|
| 133 | + ['value' => $commentedItem->getItem()] : ['value' => $commentedItem->getItem(), 'comment' => $commentedItem->getComment()]; |
|
| 135 | 134 | }; |
| 136 | 135 | |
| 137 | - $jsonSerializeMap = function (\JsonSerializable $obj): array { |
|
| 136 | + $jsonSerializeMap = function(\JsonSerializable $obj): array { |
|
| 138 | 137 | return $obj->jsonSerialize(); |
| 139 | 138 | }; |
| 140 | 139 | |
@@ -433,7 +432,7 @@ discard block |
||
| 433 | 432 | 'source' => $source, |
| 434 | 433 | 'target' => $target, |
| 435 | 434 | 'comment' => $comment, |
| 436 | - ], function ($v) { |
|
| 435 | + ], function($v) { |
|
| 437 | 436 | return null !== $v; |
| 438 | 437 | }); |
| 439 | 438 | } |
@@ -584,7 +583,7 @@ discard block |
||
| 584 | 583 | |
| 585 | 584 | private function removeVolumesByType(string $type): void |
| 586 | 585 | { |
| 587 | - $filterFunction = function (Volume $vol) use ($type) { |
|
| 586 | + $filterFunction = function(Volume $vol) use ($type) { |
|
| 588 | 587 | return $vol->getType() !== $type; |
| 589 | 588 | }; |
| 590 | 589 | $this->volumes = array_values(array_filter($this->volumes, $filterFunction)); |
@@ -607,7 +606,7 @@ discard block |
||
| 607 | 606 | |
| 608 | 607 | public function removeVolumesBySource(string $source): void |
| 609 | 608 | { |
| 610 | - $filterFunction = function (Volume $vol) use ($source) { |
|
| 609 | + $filterFunction = function(Volume $vol) use ($source) { |
|
| 611 | 610 | return $vol->getSource() !== $source; |
| 612 | 611 | }; |
| 613 | 612 | $this->volumes = array_values(array_filter($this->volumes, $filterFunction)); |