style: fix indentation
This commit is contained in:
parent
f87ada6c15
commit
56872a04c4
1 changed files with 16 additions and 15 deletions
31
bin/cfg
31
bin/cfg
|
|
@ -379,21 +379,22 @@ case 'show':
|
|||
echo $out.PHP_EOL;
|
||||
break;
|
||||
|
||||
case 'write':
|
||||
$inputPayload = $argv->find('in');
|
||||
if (!$inputPayload && $settings['key'] === '')
|
||||
{
|
||||
fwrite(STDERR, 'Nothing to write: provide SETTING or --in.'.PHP_EOL);
|
||||
exit(1);
|
||||
}
|
||||
$path = ($settings['key'] !== '') ? explode(':', $settings['key']) : [];
|
||||
verboseLog($verbose, 'write source: '.($inputPayload ? '--in' : 'SETTING'));
|
||||
if ($inputPayload)
|
||||
{
|
||||
$setting2write = $inputPayload;
|
||||
}
|
||||
else
|
||||
{
|
||||
case 'write':
|
||||
$inputPayload = $argv->find('in');
|
||||
if (!$inputPayload && $settings['key'] === '')
|
||||
{
|
||||
fwrite(STDERR, 'Nothing to write: provide SETTING or --in.'.PHP_EOL);
|
||||
exit(1);
|
||||
}
|
||||
$path = ($settings['key'] !== '') ? explode(':', $settings['key']) : [];
|
||||
verboseLog($verbose, 'write source: '.($inputPayload ? '--in' : 'SETTING'));
|
||||
|
||||
if ($inputPayload)
|
||||
{
|
||||
$setting2write = $inputPayload;
|
||||
}
|
||||
else
|
||||
{
|
||||
$setting2write = $settings['value'];
|
||||
}
|
||||
verboseLog($verbose, 'write path: '.json_encode($path));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue