@@ -27,12 +27,12 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public static function dockerComposeServiceSerialize(Service $service, array $envFileNames = [], string $version = self::VERSION): array |
| 29 | 29 | { |
| 30 | - $portMap = function (array $port): string { |
|
| 31 | - return $port['source'] . ':' . $port['target']; |
|
| 30 | + $portMap = function(array $port): string { |
|
| 31 | + return $port['source'].':'.$port['target']; |
|
| 32 | 32 | }; |
| 33 | 33 | $envMapDockerCompose = self::getEnvironmentVariablesForDockerCompose($service); |
| 34 | 34 | |
| 35 | - $envMap = function (EnvVariable $e) { |
|
| 35 | + $envMap = function(EnvVariable $e) { |
|
| 36 | 36 | if ($e->getComment() !== null) { |
| 37 | 37 | return new CommentedItem($e->getValue(), $e->getComment()); |
| 38 | 38 | } |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * @param NamedVolume|BindVolume|TmpfsVolume $v |
| 43 | 43 | * @return array |
| 44 | 44 | */ |
| 45 | - $volumeMap = function ($v): array { |
|
| 45 | + $volumeMap = function($v): array { |
|
| 46 | 46 | $array = [ |
| 47 | 47 | 'type' => $v->getType(), |
| 48 | 48 | 'source' => $v->getSource(), |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | // Therefore, we need to remove the env_file before checking. |
| 96 | 96 | $strFile = \file_get_contents($pathname); |
| 97 | 97 | if ($strFile === false) { |
| 98 | - throw new \RuntimeException('Unable to load file ' . $pathname); |
|
| 98 | + throw new \RuntimeException('Unable to load file '.$pathname); |
|
| 99 | 99 | } |
| 100 | 100 | $content = Yaml::parse($strFile); |
| 101 | 101 | if (isset($content['services'])) { |