Skip to content

Commit

Permalink
net-mgmt: PSR12 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Oct 7, 2019
1 parent bf4a3b0 commit 2fd60b4
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (C) 2018 Michael Muenz <[email protected]>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (C) 2018 Michael Muenz <[email protected]>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (C) 2017-2019 Frank Wall
* Copyright (C) 2015 Deciso B.V.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (C) 2017 Frank Wall
* Copyright (C) 2015 Deciso B.V.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (C) 2017 Frank Wall
* Copyright (C) 2015 Deciso B.V.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (C) 2017 Frank Wall
* Copyright (C) 2015 Deciso B.V.
Expand Down

0 comments on commit 2fd60b4

Please sign in to comment.