From 2fa324ba4e2d34a18d00a742d8c5de157f65b90c Mon Sep 17 00:00:00 2001 From: objec Date: Thu, 2 Apr 2026 15:43:27 +0400 Subject: [PATCH] Remove whitespace from file Signed-off-by: objec --- app/Libraries/Plugins/BasePlugin.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Libraries/Plugins/BasePlugin.php b/app/Libraries/Plugins/BasePlugin.php index dd143bbaf..b4c9b097d 100644 --- a/app/Libraries/Plugins/BasePlugin.php +++ b/app/Libraries/Plugins/BasePlugin.php @@ -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}"); } -} \ No newline at end of file +}