@@ -33,15 +33,15 @@ |
||
| 33 | 33 | /** |
| 34 | 34 | * @since 32.0.0 |
| 35 | 35 | */ |
| 36 | - public const FLAG_SENSITIVE = 1; // value is sensitive |
|
| 36 | + public const FLAG_SENSITIVE = 1; // value is sensitive |
|
| 37 | 37 | /** |
| 38 | 38 | * @since 32.0.0 |
| 39 | 39 | */ |
| 40 | - public const FLAG_INDEXED = 2; // value should be indexed |
|
| 40 | + public const FLAG_INDEXED = 2; // value should be indexed |
|
| 41 | 41 | /** |
| 42 | 42 | * @since 33.0.0 |
| 43 | 43 | */ |
| 44 | - public const FLAG_INTERNAL = 4; // value is considered internal and can be hidden from listing |
|
| 44 | + public const FLAG_INTERNAL = 4; // value is considered internal and can be hidden from listing |
|
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * Get list of all userIds with config stored in database. |
@@ -47,11 +47,11 @@ |
||
| 47 | 47 | public const VALUE_ARRAY = 64; |
| 48 | 48 | |
| 49 | 49 | /** @since 31.0.0 */ |
| 50 | - public const FLAG_SENSITIVE = 1; // value is sensitive |
|
| 50 | + public const FLAG_SENSITIVE = 1; // value is sensitive |
|
| 51 | 51 | /** |
| 52 | 52 | * @since 33.0.0 |
| 53 | 53 | */ |
| 54 | - public const FLAG_INTERNAL = 4; // value is considered internal and can be hidden from listing |
|
| 54 | + public const FLAG_INTERNAL = 4; // value is considered internal and can be hidden from listing |
|
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Get list of all apps that have at least one config value stored in database |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | if ($input->hasParameterOption('--update-only') && !$this->appConfig->hasKey($appName, $configName)) { |
| 87 | 87 | $output->writeln( |
| 88 | - '<comment>Config value ' . $configName . ' for app ' . $appName |
|
| 88 | + '<comment>Config value '.$configName.' for app '.$appName |
|
| 89 | 89 | . ' not updated, as it has not been set before.</comment>' |
| 90 | 90 | ); |
| 91 | 91 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | return self::FAILURE; |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | - $value = (string)$input->getOption('value'); |
|
| 174 | + $value = (string) $input->getOption('value'); |
|
| 175 | 175 | switch ($type) { |
| 176 | 176 | case IAppConfig::VALUE_MIXED: |
| 177 | 177 | $updated = $this->appConfig->setValueMixed($appName, $configName, $value, $lazy, $sensitive); |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | ); |
| 214 | 214 | $keyDetails = $this->appConfig->getKeyDetails($appName, $configName); |
| 215 | 215 | if (($keyDetails['note'] ?? '') !== '') { |
| 216 | - $output->writeln('<comment>Note:</comment> ' . $keyDetails['note']); |
|
| 216 | + $output->writeln('<comment>Note:</comment> '.$keyDetails['note']); |
|
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | } else { |
@@ -231,13 +231,13 @@ discard block |
||
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | $output->writeln(sprintf('You are about to set config value %s as <info>%s</info>', |
| 234 | - '<info>' . $input->getArgument('app') . '</info>/<info>' . $input->getArgument('name') . '</info>', |
|
| 234 | + '<info>'.$input->getArgument('app').'</info>/<info>'.$input->getArgument('name').'</info>', |
|
| 235 | 235 | strtoupper($request) |
| 236 | 236 | )); |
| 237 | 237 | $output->writeln(''); |
| 238 | 238 | $output->writeln('<comment>This might break thing, affect performance on your instance or its security!</comment>'); |
| 239 | 239 | |
| 240 | - $result = (strtolower((string)$helper->ask( |
|
| 240 | + $result = (strtolower((string) $helper->ask( |
|
| 241 | 241 | $input, |
| 242 | 242 | $output, |
| 243 | 243 | new Question('<comment>Confirm this action by typing \'yes\'</comment>: '))) === 'yes'); |