@@ -31,7 +31,7 @@ |
||
31 | 31 | PackageConfiguration $packageConfiguration, |
32 | 32 | ?Source $source, |
33 | 33 | ?Dist $dist |
34 | - ){ |
|
34 | + ) { |
|
35 | 35 | if (is_null($source) and is_null($dist)) { |
36 | 36 | throw new \RuntimeException(sprintf('Package "%s" must have at least a source or a dist', $name)); |
37 | 37 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | |
51 | 51 | $composerURL = $helper->ask($input, $output, (new Question( |
52 | 52 | 'Enter the CompoLab server URL (eg. https://composer.my-website.com): ' |
53 | - ))->setNormalizer(function ($value) { |
|
53 | + ))->setNormalizer(function($value) { |
|
54 | 54 | return trim((string) $value); |
55 | - })->setValidator(function ($value) { |
|
55 | + })->setValidator(function($value) { |
|
56 | 56 | if (!filter_var($value, FILTER_VALIDATE_URL)) { |
57 | 57 | throw new \InvalidArgumentException('Invalid URL'); |
58 | 58 | } |
@@ -62,9 +62,9 @@ discard block |
||
62 | 62 | $composerPublicDirPath = $helper->ask($input, $output, (new Question( |
63 | 63 | 'Enter the path to CompoLab `public` directory (leave empty to auto configure): ', |
64 | 64 | sprintf('%s/public', $root) |
65 | - ))->setNormalizer(function ($value) { |
|
65 | + ))->setNormalizer(function($value) { |
|
66 | 66 | return trim((string) $value); |
67 | - })->setValidator(function ($value) { |
|
67 | + })->setValidator(function($value) { |
|
68 | 68 | if (!is_dir($value)) { |
69 | 69 | throw new \InvalidArgumentException('Invalid directory path'); |
70 | 70 | } |
@@ -73,9 +73,9 @@ discard block |
||
73 | 73 | |
74 | 74 | $gitlabURL = $helper->ask($input, $output, (new Question( |
75 | 75 | 'Enter your GitLab server URL (eg. https://gitlab.my-website.com): ' |
76 | - ))->setNormalizer(function ($value) { |
|
76 | + ))->setNormalizer(function($value) { |
|
77 | 77 | return trim((string) $value); |
78 | - })->setValidator(function ($value) { |
|
78 | + })->setValidator(function($value) { |
|
79 | 79 | if (!filter_var($value, FILTER_VALIDATE_URL)) { |
80 | 80 | throw new \InvalidArgumentException('Invalid URL'); |
81 | 81 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | $gitlabToken = $helper->ask($input, $output, (new Question( |
86 | 86 | 'Enter a valid Gitlab authentication token (url_token method): ' |
87 | - ))->setNormalizer(function ($value) { |
|
87 | + ))->setNormalizer(function($value) { |
|
88 | 88 | return trim((string) $value); |
89 | 89 | })->setHidden(true)); |
90 | 90 |