aboutsummaryrefslogtreecommitdiff
path: root/cli/CliOptionsParser.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-08-01 20:31:40 +0200
committerGravatar GitHub <noreply@github.com> 2024-08-01 20:31:40 +0200
commitd2247221bbf23a8fe19f66ea4ad7d0a59ffaa5b4 (patch)
treef5174c1b1d174cd41dca20f350e1297894e1c6fa /cli/CliOptionsParser.php
parentb2c8cb74562b2f7cb290abd61ff1b6f35475f23a (diff)
Minor update whitespace PHPCS rules (#6666)
* Minor update whitespace PHPCS rules To simplify our configuration, apply more rules, and be clearer about what is added or removed compared with PSR12. Does not change our current conventions, but just a bit more consistent. * Forgotten *.phtml * Sort exclusion patterns + add a few for Extensions repo * Relaxed some rules
Diffstat (limited to 'cli/CliOptionsParser.php')
-rw-r--r--cli/CliOptionsParser.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/CliOptionsParser.php b/cli/CliOptionsParser.php
index 9fb50a4ff..f0c6bf9a2 100644
--- a/cli/CliOptionsParser.php
+++ b/cli/CliOptionsParser.php
@@ -136,10 +136,10 @@ abstract class CliOptionsParser {
foreach ($userInputs as $input) {
preg_match($regex, $input, $matches);
- if(!empty($matches['short'])) {
+ if (!empty($matches['short'])) {
$foundAliases = array_merge($foundAliases, str_split($matches['short']));
}
- if(!empty($matches['long'])) {
+ if (!empty($matches['long'])) {
$foundAliases[] = $matches['long'];
}
}
@@ -232,7 +232,7 @@ abstract class CliOptionsParser {
return implode(' ', $required) . ' ' . implode(' ', $optional);
}
- private function makeInputRegex() : string {
+ private function makeInputRegex(): string {
$shortWithValues = '';
foreach ($this->options as $option) {
if (($option->getValueTaken() === 'required' || $option->getValueTaken() === 'optional') && $option->getShortAlias()) {