@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | { |
90 | 90 | $envName = $this->question('Environment name') |
91 | 91 | ->compulsory() |
92 | - ->setValidator(function (string $value) { |
|
92 | + ->setValidator(function(string $value) { |
|
93 | 93 | $value = trim($value); |
94 | 94 | if (!\preg_match('/^[a-zA-Z0-9_.-]+$/', $value)) { |
95 | 95 | throw new \InvalidArgumentException('Invalid environment name "' . $value . '". Environment names can contain alphanumeric characters, and "_", ".", "-".'); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | ->askMultipleChoiceQuestion(); |
157 | 157 | $this->output->writeln('<info>Environments: ' . implode($choosen, ', ') . '</info>'); |
158 | 158 | $this->spacer(); |
159 | - return array_filter($environments, function (string $key) use ($choosen) { |
|
159 | + return array_filter($environments, function(string $key) use ($choosen) { |
|
160 | 160 | return isset($choosen[$key]); |
161 | 161 | }, ARRAY_FILTER_USE_KEY); |
162 | 162 | } |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | $default |
180 | 180 | ); |
181 | 181 | $question->setAutocompleterValues($availableVersions); |
182 | - $question->setValidator(function (string $value) use ($availableVersions, $dockerHubImage) { |
|
182 | + $question->setValidator(function(string $value) use ($availableVersions, $dockerHubImage) { |
|
183 | 183 | $value = trim($value); |
184 | 184 | |
185 | 185 | if ($value === 'v') { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | ->setDefault($serviceName) |
215 | 215 | ->compulsory() |
216 | 216 | ->setHelpText('The "service name" is used as an identifier for the container you are creating. It is also bound in Docker internal network DNS and can be used from other containers to reference your container.') |
217 | - ->setValidator(function (string $value) { |
|
217 | + ->setValidator(function(string $value) { |
|
218 | 218 | $value = trim($value); |
219 | 219 | if (!\preg_match('/^[a-zA-Z0-9_.-]+$/', $value)) { |
220 | 220 | throw new \InvalidArgumentException('Invalid service name "' . $value . '". Service names can contain alphanumeric characters, and "_", ".", "-".'); |