Completed
Push — master ( a83e33...803542 )
by Julien
13s
created
src/Helper/AentHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
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 "_", ".", "-".');
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
             ->askWithMultipleChoices();
185 185
         $this->output->writeln('<info>Environments: ' . implode($chosen, ', ') . '</info>');
186 186
         $this->spacer();
187
-        return array_filter($environments, function (string $key) use ($chosen) {
187
+        return array_filter($environments, function(string $key) use ($chosen) {
188 188
             return isset($chosen[$key]);
189 189
         }, ARRAY_FILTER_USE_KEY);
190 190
     }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
             $default
208 208
         );
209 209
         $question->setAutocompleterValues($availableVersions);
210
-        $question->setValidator(function (string $value) use ($availableVersions, $dockerHubImage) {
210
+        $question->setValidator(function(string $value) use ($availableVersions, $dockerHubImage) {
211 211
             $value = trim($value);
212 212
 
213 213
             if ($value === 'v') {
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
             ->setDefault($serviceName)
243 243
             ->compulsory()
244 244
             ->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.')
245
-            ->setValidator(function (string $value) {
245
+            ->setValidator(function(string $value) {
246 246
                 $value = trim($value);
247 247
                 if (!\preg_match('/^[a-zA-Z0-9_.-]+$/', $value)) {
248 248
                     throw new \InvalidArgumentException('Invalid service name "' . $value . '". Service names can contain alphanumeric characters, and "_", ".", "-".');
Please login to merge, or discard this patch.