]> _ Git - fluidbook-toolbox.git/commitdiff
wip #5996
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 15 Jun 2023 09:29:03 +0000 (11:29 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 15 Jun 2023 09:29:03 +0000 (11:29 +0200)
app/Models/Base/ToolboxSettingsModel.php

index d0b52b4dcfc4708971dc4b760f597865a1582675..83470753a208d939db2d43c4215a6f60343112d2 100644 (file)
@@ -38,7 +38,6 @@ class ToolboxSettingsModel extends ToolboxModel
     public function addSettingField($name, $type = 'Text', $label = '', $attributes = [])
     {
         $attributes = self::normalizeAttributes($name, $type, $label, $attributes);
-        $res = $this->addField($name, $type, $label, array_merge(self::$defaultSettingsAttributes, $attributes));
-        return $res;
+        return $this->addField($name, $type, $label, array_merge(self::$defaultSettingsAttributes, $attributes));
     }
 }