mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-05-28 04:34:08 -04:00
Fix phpstan issues
This commit is contained in:
parent
520d027dcb
commit
2dbfe86f16
1 changed files with 2 additions and 0 deletions
|
|
@ -45,10 +45,12 @@ class CleanupNodeForm extends BpConfigBaseForm
|
|||
{
|
||||
$changes = ProcessChanges::construct($this->bp, $this->session);
|
||||
|
||||
/** @var string[] $nodesToCleanup */
|
||||
$nodesToCleanup = $this->getValue('cleanup_all') === '1'
|
||||
? array_keys($this->bp->getMissingChildren())
|
||||
: $this->getValue('nodes');
|
||||
|
||||
$nodeName = null;
|
||||
foreach ($nodesToCleanup as $nodeName) {
|
||||
$node = $this->bp->getNode($nodeName);
|
||||
$changes->deleteNode($node);
|
||||
|
|
|
|||
Loading…
Reference in a new issue