mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-24 00:29:47 -05:00
phpcs: some more
This commit is contained in:
parent
2b98629f3e
commit
afcf42e871
6 changed files with 18 additions and 9 deletions
|
|
@ -193,7 +193,9 @@ class BpConfigForm extends QuickForm
|
||||||
|
|
||||||
public function shouldBeDeleted()
|
public function shouldBeDeleted()
|
||||||
{
|
{
|
||||||
if (! $this->hasDeleteButton()) return false;
|
if (! $this->hasDeleteButton()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$name = $this->deleteButtonName;
|
$name = $this->deleteButtonName;
|
||||||
return $this->getSentValue($name) === $this->getElement($name)->getLabel();
|
return $this->getSentValue($name) === $this->getElement($name)->getLabel();
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ class Zend_View_Helper_RenderStateBadges extends Zend_View_Helper_Abstract
|
||||||
foreach ($summary as $state => $cnt) {
|
foreach ($summary as $state => $cnt) {
|
||||||
if ($cnt === 0
|
if ($cnt === 0
|
||||||
|| $state === 'OK'
|
|| $state === 'OK'
|
||||||
||$ state === 'UP'
|
|| $state === 'UP'
|
||||||
) {
|
) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -362,7 +362,10 @@ class BpNode extends Node
|
||||||
|
|
||||||
foreach ($this->getChildren() as $name => $child) {
|
foreach ($this->getChildren() as $name => $child) {
|
||||||
$children[] = (string) $child;
|
$children[] = (string) $child;
|
||||||
if (array_key_exists($name, $rendered)) { continue; }
|
if (array_key_exists($name, $rendered)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ($child instanceof BpNode) {
|
if ($child instanceof BpNode) {
|
||||||
$cfg .= $child->toLegacyConfigString($rendered) . "\n";
|
$cfg .= $child->toLegacyConfigString($rendered) . "\n";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -465,8 +465,12 @@ abstract class Node
|
||||||
return ' ';
|
return ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toLegacyConfigString(& $rendered = array()) { return '';}
|
// TODO: Why isn't this abstract?
|
||||||
//abstract public function toLegacyConfigString();
|
// abstract public function toLegacyConfigString();
|
||||||
|
public function toLegacyConfigString(& $rendered = array())
|
||||||
|
{
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ class ServiceNode extends MonitoredNode
|
||||||
|
|
||||||
if (! $this->bp->isLocked()) {
|
if (! $this->bp->isLocked()) {
|
||||||
|
|
||||||
$url = Url::fromPath( 'businessprocess/node/simulate', array(
|
$url = Url::fromPath('businessprocess/node/simulate', array(
|
||||||
'config' => $this->bp->getName(),
|
'config' => $this->bp->getName(),
|
||||||
'node' => $this->name
|
'node' => $this->name
|
||||||
));
|
));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue