Passed
Pull Request — master (#26)
by David
02:11
created
src/AentHelper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
             ->setDefault($serviceName)
74 74
             ->compulsory()
75 75
             ->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.')
76
-            ->setValidator(function (string $value) {
76
+            ->setValidator(function(string $value) {
77 77
                 $value = trim($value);
78 78
                 if (!\preg_match('/^[a-zA-Z0-9_.-]+$/', $value)) {
79
-                    throw new \InvalidArgumentException('Invalid service name "'.$value.'". Service names can contain alphanumeric characters, and "_", ".", "-".');
79
+                    throw new \InvalidArgumentException('Invalid service name "' . $value . '". Service names can contain alphanumeric characters, and "_", ".", "-".');
80 80
                 }
81 81
                 return $value;
82 82
             })
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $default = $proposedTags[0] ?? null;
104 104
         $this->output->writeln("Please choose your $applicationName version.");
105 105
         if (!empty($proposedTags)) {
106
-            $this->output->writeln('Possible values include: <info>'.\implode('</info>, <info>', $proposedTags).'</info>');
106
+            $this->output->writeln('Possible values include: <info>' . \implode('</info>, <info>', $proposedTags) . '</info>');
107 107
 
108 108
         }
109 109
         $this->output->writeln('Enter "v" to view all available versions, "?" for help');
@@ -112,11 +112,11 @@  discard block
 block discarded – undo
112 112
             $default
113 113
         );
114 114
         $question->setAutocompleterValues($availableVersions);
115
-        $question->setValidator(function (string $value) use ($availableVersions, $dockerHubImage) {
115
+        $question->setValidator(function(string $value) use ($availableVersions, $dockerHubImage) {
116 116
             $value = trim($value);
117 117
 
118 118
             if ($value === 'v') {
119
-                $this->output->writeln('Available versions: <info>'.\implode('</info>, <info>', $availableVersions).'</info>');
119
+                $this->output->writeln('Available versions: <info>' . \implode('</info>, <info>', $availableVersions) . '</info>');
120 120
                 return 'v';
121 121
             }
122 122
 
Please login to merge, or discard this patch.
src/Helper/Question.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
         }
95 95
         if ($this->default) {
96 96
             if (!$this->yesNoQuestion) {
97
-                $text .= ' ['.$this->default.']';
97
+                $text .= ' [' . $this->default . ']';
98 98
             } elseif ($this->default === 'y') {
99 99
                 $text .= ' [Y/n]';
100 100
             } elseif ($this->default === 'n') {
Please login to merge, or discard this patch.