Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Small style correction
Browse files Browse the repository at this point in the history
  • Loading branch information
callapa committed Dec 28, 2018
1 parent 3696a04 commit 7f97ab2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
18 changes: 10 additions & 8 deletions www/include/configuration/configObject/traps/formTraps.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ function myReplace()
'traps_status',
_("Default Status"),
array(
0=>_("Ok"),
1=>_("Warning"),
2=>_("Critical"),
3=>_("Unknown")
0 => _("Ok"),
1 => _("Warning"),
2 => _("Critical"),
3 => _("Unknown")
),
array('id' => 'trapStatus')
);
Expand Down Expand Up @@ -357,9 +357,9 @@ function myReplace()
'traps_advanced_treatment_default',
_("Advanced matching behavior"),
array(
0=>_("If no match, submit default status"),
1=>_("If no match, disable submit"),
2=>_("If match, disable submit")
0 => _("If no match, submit default status"),
1 => _("If no match, disable submit"),
2 => _("If match, disable submit")
),
array('id' => 'traps_advanced_treatment')
);
Expand Down Expand Up @@ -429,7 +429,9 @@ function myReplace()
"button",
"change",
_("Modify"),
array("onClick"=>"javascript:window.location.href='?p=".$p."&o=c&traps_id=".$traps_id."'")
array(
"onClick" => "javascript:window.location.href='?p=" . $p . "&o=c&traps_id=" . $traps_id . "'"
)
);
}
$form->setDefaults($trap);
Expand Down
12 changes: 4 additions & 8 deletions www/include/configuration/configObject/traps/traps.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,27 +102,23 @@

switch ($o) {
case TRAP_ADD:
require_once($path."formTraps.php");
break;
case TRAP_WATCH:
require_once($path."formTraps.php");
break;
case TRAP_MODIFY:
require_once($path."formTraps.php");
require_once($path . "formTraps.php");
break;
case TRAP_DUPLICATE:
if (!in_array(false, $select) && !in_array(false, $dupNbr)) {
$trapObj->duplicate($select, $dupNbr);
}
require_once($path."listTraps.php");
require_once($path . "listTraps.php");
break;
case TRAP_DELETE:
if (!in_array(false, $select)) {
$trapObj->delete($select);
}
require_once($path."listTraps.php");
require_once($path . "listTraps.php");
break;
default:
require_once($path."listTraps.php");
require_once($path . "listTraps.php");
break;
}

0 comments on commit 7f97ab2

Please sign in to comment.