Completed
Pull Request — master (#15)
by Jindun
02:27
created
src/Command/StartEventCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $this->output->writeln('Now, we need to find the root of your web application.');
95 95
         $appDirectory = $this->getAentHelper()->question('PHP application root directory (relative to the project root directory)')
96 96
             ->setHelpText('Your PHP application root directory is typically the directory that contains your composer.json file. It must be relative to the project root directory.')
97
-            ->setValidator(function (string $appDirectory) {
97
+            ->setValidator(function(string $appDirectory) {
98 98
                 $appDirectory = trim($appDirectory, '/') ?: '.';
99 99
                 $rootDir = Pheromone::getContainerProjectDirectory();
100 100
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             if ($answer) {
117 117
                 $webDirectory = $this->getAentHelper()->question('Web directory (relative to the PHP application directory)')
118 118
                     ->setHelpText('Your PHP application web directory is typically the directory that contains your index.php file. It must be relative to the PHP application directory (' . Pheromone::getHostProjectDirectory() . '/' . $appDirectory . ')')
119
-                    ->setValidator(function (string $webDirectory) use ($appDirectory) {
119
+                    ->setValidator(function(string $webDirectory) use ($appDirectory) {
120 120
                         $webDirectory = trim($webDirectory, '/') ?: '.';
121 121
                         $rootDir = Pheromone::getContainerProjectDirectory();
122 122
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         do {
181 181
             $question = new Question('Please enter the name of an additional extension you want to install (keep empty to skip): ', '');
182 182
             $question->setAutocompleterValues($availableExtensions);
183
-            $question->setValidator(function (string $value) use ($availableExtensions) {
183
+            $question->setValidator(function(string $value) use ($availableExtensions) {
184 184
                 if (trim($value) !== '' && !\in_array($value, $availableExtensions, true)) {
185 185
                     throw new \InvalidArgumentException('Unknown extension ' . $value);
186 186
                 }
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 
200 200
         $memoryLimit = $this->getAentHelper()->question('PHP <info>memory limit</info> (keep empty to stay with the default 128M)')
201 201
             ->setHelpText('This value will be used in the memory_limit option of PHP via the PHP_INI_MEMORY_LIMIT environment variable.')
202
-            ->setValidator(function (string $value) {
202
+            ->setValidator(function(string $value) {
203 203
                 if (trim($value) !== '' && !\preg_match('/^\d+([MGK])?$/i', $value)) {
204 204
                     throw new \InvalidArgumentException('Invalid value: ' . $value);
205 205
                 }
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 
214 214
         $uploadMaxFileSize = $this->getAentHelper()->question('<info>Maximum file size for uploaded files</info> (keep empty to stay with the default 2M)')
215 215
             ->setHelpText('This value will be used in the upload_max_file_size and post_max_size options of PHP via the PHP_INI_UPLOAD_MAX_FILESIZE and PHP_INI_POST_MAX_SIZE environment variables.')
216
-            ->setValidator(function (string $value) {
216
+            ->setValidator(function(string $value) {
217 217
                 if (trim($value) !== '' && !\preg_match('/^\d+([MGK])?$/i', $value)) {
218 218
                     throw new \InvalidArgumentException('Invalid value: ' . $value);
219 219
                 }
Please login to merge, or discard this patch.