@@ -25,20 +25,20 @@ |
||
25 | 25 | */ |
26 | 26 | public static function dockerComposeServiceSerialize(Service $service, string $version = self::VERSION): array |
27 | 27 | { |
28 | - $portMap = function (array $port): string { |
|
29 | - return $port['source'] . ':' . $port['target']; |
|
28 | + $portMap = function(array $port): string { |
|
29 | + return $port['source'].':'.$port['target']; |
|
30 | 30 | }; |
31 | - $labelMap = function (array $label): string { |
|
31 | + $labelMap = function(array $label): string { |
|
32 | 32 | return $label['value']; |
33 | 33 | }; |
34 | - $envMap = function (EnvVariable $e): string { |
|
34 | + $envMap = function(EnvVariable $e): string { |
|
35 | 35 | return $e->getValue(); |
36 | 36 | }; |
37 | 37 | /** |
38 | 38 | * @param NamedVolume|BindVolume|TmpfsVolume $v |
39 | 39 | * @return array |
40 | 40 | */ |
41 | - $volumeMap = function ($v): array { |
|
41 | + $volumeMap = function($v): array { |
|
42 | 42 | $array = [ |
43 | 43 | 'type' => $v->getType(), |
44 | 44 | 'source' => $v->getSource(), |