Passed
Pull Request — master (#43)
by Julien
02:25
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 "_", ".", "-".');
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 "_", ".", "-".');
Please login to merge, or discard this patch.