Skip to content

Commit

Permalink
Fix phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Apr 19, 2024
1 parent 520d027 commit 2dbfe86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/forms/CleanupNodeForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ public function onSuccess()
{
$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);
Expand Down

0 comments on commit 2dbfe86

Please sign in to comment.