Skip to content

Commit 8e980b6

Browse files
author
roadiz-ci
committed
fix: phpcs and phpstan
1 parent 1eb4b67 commit 8e980b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Controller/Node/NodeBulkActionTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ public function bulkUndeleteAction(Request $request): Response
436436

437437
$nodesIds = trim((string) $request->get('undeleteForm')['nodesIds']);
438438
$nodesIds = \json_decode($nodesIds, true, flags: JSON_THROW_ON_ERROR);
439-
array_filter($nodesIds);
439+
$nodesIds = array_filter($nodesIds);
440440

441441
/** @var Node[] $nodes */
442442
$nodes = $this->allStatusesNodeRepository->findBy([
@@ -499,7 +499,7 @@ private function bulkUndeleteNodes(array $data): string
499499
if (!empty($data['nodesIds'])) {
500500
$nodesIds = trim((string) $data['nodesIds']);
501501
$nodesIds = \json_decode($nodesIds, true, flags: JSON_THROW_ON_ERROR);
502-
array_filter($nodesIds);
502+
$nodesIds = array_filter($nodesIds);
503503

504504
$nodes = $this->allStatusesNodeRepository
505505
->findBy([

0 commit comments

Comments
 (0)