@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function __construct() |
| 64 | 64 | { |
| 65 | - $this->validatorSchema = \GuzzleHttp\json_decode((string)file_get_contents(__DIR__ . '/ServiceJsonSchema.json'), false); |
|
| 65 | + $this->validatorSchema = \GuzzleHttp\json_decode((string) file_get_contents(__DIR__ . '/ServiceJsonSchema.json'), false); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -121,13 +121,12 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | public function jsonSerialize(): array |
| 123 | 123 | { |
| 124 | - $labelMap = function (CommentedItem $commentedItem): array { |
|
| 124 | + $labelMap = function(CommentedItem $commentedItem): array { |
|
| 125 | 125 | return null === $commentedItem->getComment() ? |
| 126 | - ['value' => $commentedItem->getItem()] : |
|
| 127 | - ['value' => $commentedItem->getItem(), 'comment' => $commentedItem->getComment()]; |
|
| 126 | + ['value' => $commentedItem->getItem()] : ['value' => $commentedItem->getItem(), 'comment' => $commentedItem->getComment()]; |
|
| 128 | 127 | }; |
| 129 | 128 | |
| 130 | - $jsonSerializeMap = function (\JsonSerializable $obj): array { |
|
| 129 | + $jsonSerializeMap = function(\JsonSerializable $obj): array { |
|
| 131 | 130 | return $obj->jsonSerialize(); |
| 132 | 131 | }; |
| 133 | 132 | |
@@ -405,7 +404,7 @@ discard block |
||
| 405 | 404 | 'source' => $source, |
| 406 | 405 | 'target' => $target, |
| 407 | 406 | 'comment' => $comment, |
| 408 | - ], function ($v) { |
|
| 407 | + ], function($v) { |
|
| 409 | 408 | return null !== $v; |
| 410 | 409 | }); |
| 411 | 410 | } |
@@ -556,7 +555,7 @@ discard block |
||
| 556 | 555 | |
| 557 | 556 | private function removeVolumesByType(string $type): void |
| 558 | 557 | { |
| 559 | - $filterFunction = function (Volume $vol) use ($type) { |
|
| 558 | + $filterFunction = function(Volume $vol) use ($type) { |
|
| 560 | 559 | return $vol->getType() !== $type; |
| 561 | 560 | }; |
| 562 | 561 | $this->volumes = array_values(array_filter($this->volumes, $filterFunction)); |
@@ -579,7 +578,7 @@ discard block |
||
| 579 | 578 | |
| 580 | 579 | public function removeVolumesBySource(string $source): void |
| 581 | 580 | { |
| 582 | - $filterFunction = function (Volume $vol) use ($source) { |
|
| 581 | + $filterFunction = function(Volume $vol) use ($source) { |
|
| 583 | 582 | return $vol->getSource() !== $source; |
| 584 | 583 | }; |
| 585 | 584 | $this->volumes = array_values(array_filter($this->volumes, $filterFunction)); |