mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-02 14:24:27 -04:00
Remove whitespace from file
Signed-off-by: objec <objecttothis@gmail.com>
This commit is contained in:
@@ -37,10 +37,10 @@ abstract class BasePlugin implements PluginInterface
|
||||
|
||||
protected function setSetting(string $key, mixed $value): bool
|
||||
{
|
||||
$stringValue = is_array($value) || is_object($value)
|
||||
? json_encode($value)
|
||||
$stringValue = is_array($value) || is_object($value)
|
||||
? json_encode($value)
|
||||
: (string)$value;
|
||||
|
||||
|
||||
return $this->configModel->setValue("{$this->getPluginId()}_{$key}", $stringValue);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ abstract class BasePlugin implements PluginInterface
|
||||
$prefixedSettings["{$this->getPluginId()}_{$key}"] = (string)$value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $this->configModel->batchSave($prefixedSettings);
|
||||
}
|
||||
|
||||
@@ -67,4 +67,4 @@ abstract class BasePlugin implements PluginInterface
|
||||
{
|
||||
log_message($level, "[Plugin:{$this->getPluginName()}] {$message}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user