Skip to content

Commit 1cffb2b

Browse files
RedundancygroupController: Change method & param name
1 parent 2ad8533 commit 1cffb2b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: application/controllers/RedundancygroupController.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function indexAction(): void
9797
public function membersAction(): Generator
9898
{
9999
$this->loadGroup();
100-
$nodesQuery = $this->fetchNodes(true);
100+
$nodesQuery = $this->fetchDependencyNodes(true);
101101

102102
$limitControl = $this->createLimitControl();
103103
$paginationControl = $this->createPaginationControl($nodesQuery);
@@ -159,7 +159,7 @@ public function membersAction(): Generator
159159
public function childrenAction(): Generator
160160
{
161161
$this->loadGroup();
162-
$nodesQuery = $this->fetchNodes();
162+
$nodesQuery = $this->fetchDependencyNodes();
163163

164164
$limitControl = $this->createLimitControl();
165165
$paginationControl = $this->createPaginationControl($nodesQuery);
@@ -317,17 +317,17 @@ protected function setTitleTab(string $name): void
317317
}
318318

319319
/**
320-
* Fetch the nodes for the current group
320+
* Fetch the dependency nodes of the current group
321321
*
322-
* @param bool $fetchParents Whether to fetch the parents or the children
322+
* @param bool $parents Whether to fetch the parents or the children
323323
*
324324
* @return Query
325325
*/
326-
private function fetchNodes(bool $fetchParents = false): Query
326+
private function fetchDependencyNodes(bool $parents = false): Query
327327
{
328328
$filterColumn = sprintf(
329329
'%s.redundancy_group.id',
330-
$fetchParents ? 'child' : 'parent'
330+
$parents ? 'child' : 'parent'
331331
);
332332

333333
$query = DependencyNode::on($this->getDb())

0 commit comments

Comments
 (0)