diff --git a/net-mgmt/collectd/src/opnsense/mvc/app/controllers/OPNsense/Collectd/Api/GeneralController.php b/net-mgmt/collectd/src/opnsense/mvc/app/controllers/OPNsense/Collectd/Api/GeneralController.php index cef78bbf82..fd0bedcffe 100644 --- a/net-mgmt/collectd/src/opnsense/mvc/app/controllers/OPNsense/Collectd/Api/GeneralController.php +++ b/net-mgmt/collectd/src/opnsense/mvc/app/controllers/OPNsense/Collectd/Api/GeneralController.php @@ -50,7 +50,7 @@ public function getAction() public function setAction() { - $result = array("result"=>"failed"); + $result = array("result" => "failed"); if ($this->request->isPost()) { // load model and update with provided data $mdlGeneral = new General(); @@ -62,7 +62,7 @@ public function setAction() if (!array_key_exists("validations", $result)) { $result["validations"] = array(); } - $result["validations"]["general.".$msg->getField()] = $msg->getMessage(); + $result["validations"]["general." . $msg->getField()] = $msg->getMessage(); } // serialize model to config and save diff --git a/net-mgmt/net-snmp/src/opnsense/mvc/app/controllers/OPNsense/Netsnmp/Api/UserController.php b/net-mgmt/net-snmp/src/opnsense/mvc/app/controllers/OPNsense/Netsnmp/Api/UserController.php index f32149bea2..d48c1ff633 100644 --- a/net-mgmt/net-snmp/src/opnsense/mvc/app/controllers/OPNsense/Netsnmp/Api/UserController.php +++ b/net-mgmt/net-snmp/src/opnsense/mvc/app/controllers/OPNsense/Netsnmp/Api/UserController.php @@ -1,4 +1,5 @@ * diff --git a/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/GeneralController.php b/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/GeneralController.php index 3b683aa2cc..bcbce26597 100644 --- a/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/GeneralController.php +++ b/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/GeneralController.php @@ -50,7 +50,7 @@ public function getAction() public function setAction() { - $result = array("result"=>"failed"); + $result = array("result" => "failed"); if ($this->request->isPost()) { // load model and update with provided data $mdlGeneral = new General(); @@ -62,7 +62,7 @@ public function setAction() if (!array_key_exists("validations", $result)) { $result["validations"] = array(); } - $result["validations"]["general.".$msg->getField()] = $msg->getMessage(); + $result["validations"]["general." . $msg->getField()] = $msg->getMessage(); } // serialize model to config and save diff --git a/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/InputController.php b/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/InputController.php index 3e4d07f773..642736f213 100644 --- a/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/InputController.php +++ b/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/InputController.php @@ -50,7 +50,7 @@ public function getAction() public function setAction() { - $result = array("result"=>"failed"); + $result = array("result" => "failed"); if ($this->request->isPost()) { // load model and update with provided data $mdlInput = new Input(); @@ -62,7 +62,7 @@ public function setAction() if (!array_key_exists("validations", $result)) { $result["validations"] = array(); } - $result["validations"]["input.".$msg->getField()] = $msg->getMessage(); + $result["validations"]["input." . $msg->getField()] = $msg->getMessage(); } // serialize model to config and save diff --git a/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/KeyController.php b/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/KeyController.php index 55e94f3275..efd91049e4 100644 --- a/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/KeyController.php +++ b/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/KeyController.php @@ -1,4 +1,5 @@ * diff --git a/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/OutputController.php b/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/OutputController.php index 053900cc51..bc36fc1f0d 100644 --- a/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/OutputController.php +++ b/net-mgmt/telegraf/src/opnsense/mvc/app/controllers/OPNsense/Telegraf/Api/OutputController.php @@ -50,7 +50,7 @@ public function getAction() public function setAction() { - $result = array("result"=>"failed"); + $result = array("result" => "failed"); if ($this->request->isPost()) { // load model and update with provided data $mdlOutput = new Output(); @@ -62,7 +62,7 @@ public function setAction() if (!array_key_exists("validations", $result)) { $result["validations"] = array(); } - $result["validations"]["output.".$msg->getField()] = $msg->getMessage(); + $result["validations"]["output." . $msg->getField()] = $msg->getMessage(); } // serialize model to config and save diff --git a/net-mgmt/zabbix-agent/src/opnsense/mvc/app/controllers/OPNsense/ZabbixAgent/Api/ServiceController.php b/net-mgmt/zabbix-agent/src/opnsense/mvc/app/controllers/OPNsense/ZabbixAgent/Api/ServiceController.php index 70545400b2..d9efcdb2f5 100644 --- a/net-mgmt/zabbix-agent/src/opnsense/mvc/app/controllers/OPNsense/ZabbixAgent/Api/ServiceController.php +++ b/net-mgmt/zabbix-agent/src/opnsense/mvc/app/controllers/OPNsense/ZabbixAgent/Api/ServiceController.php @@ -1,4 +1,5 @@