@@ -10,6 +10,6 @@ |
||
10 | 10 | */ |
11 | 11 | public static function emptyPayload(string $event): PayloadException |
12 | 12 | { |
13 | - return new self('payload missing for the event : ' . $event); |
|
13 | + return new self('payload missing for the event : '.$event); |
|
14 | 14 | } |
15 | 15 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | |
14 | 14 | */ |
15 | 15 | |
16 | -require __DIR__ . '/../vendor/autoload.php'; |
|
16 | +require __DIR__.'/../vendor/autoload.php'; |
|
17 | 17 | |
18 | 18 | use TheAentMachine\AentApplication; |
19 | 19 | use TheAentMachine\AentDockerCompose\Command\AddEventCommand; |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $this->log->debug(\GuzzleHttp\json_encode($formattedPayload, JSON_PRETTY_PRINT)); |
39 | 39 | |
40 | 40 | // docker-compose |
41 | - $dockerComposePath = Pheromone::getContainerProjectDirectory() . '/' . $fileName; |
|
41 | + $dockerComposePath = Pheromone::getContainerProjectDirectory().'/'.$fileName; |
|
42 | 42 | DockerComposeService::mergeContentInDockerComposeFile($formattedPayload, $dockerComposePath, true); |
43 | 43 | |
44 | 44 | // Virtual Host |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | if ($doDelete) { |
33 | 33 | $this->log->debug("Deleting $dockerComposeFilename"); |
34 | - unlink(Pheromone::getContainerProjectDirectory() . "/$dockerComposeFilename"); |
|
34 | + unlink(Pheromone::getContainerProjectDirectory()."/$dockerComposeFilename"); |
|
35 | 35 | } |
36 | 36 | return null; |
37 | 37 | } |
@@ -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(), |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $envName = $aentHelper->getCommonQuestions()->askForEnvName($envType); |
33 | 33 | |
34 | 34 | $projectDir = Pheromone::getContainerProjectDirectory(); |
35 | - $fileNameChoices= []; |
|
35 | + $fileNameChoices = []; |
|
36 | 36 | if (!file_exists("$projectDir/docker-compose.yml")) { |
37 | 37 | $fileNameChoices[] = 'docker-compose.yml'; |
38 | 38 | } |