Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Dec 7, 2023
1 parent 9e2a997 commit 3da856e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DataModifiers.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class DataModifiers
/**
* @psalm-var array<string, int|null>
*/
private array $mergeGroupsRecursionDepth;
private array $mergedGroupsRecursionDepthMap;

/**
* @psalm-var array<string, array-key>
Expand Down Expand Up @@ -100,7 +100,7 @@ public function __construct(array $modifiers = [])
}

$this->reverseMergeGroupsIndex = array_flip(array_merge(...$reverseMergeGroups));
$this->mergeGroupsRecursionDepth = array_merge(...$recursiveMergeGroups);
$this->mergedGroupsRecursionDepthMap = array_merge(...$recursiveMergeGroups);
}

/**
Expand All @@ -111,11 +111,11 @@ public function __construct(array $modifiers = [])
*/
public function getRecursionDepth(string $group): int|null|false
{
if (!array_key_exists($group, $this->mergeGroupsRecursionDepth)) {
if (!array_key_exists($group, $this->mergedGroupsRecursionDepthMap)) {
return false;
}

return $this->mergeGroupsRecursionDepth[$group];
return $this->mergedGroupsRecursionDepthMap[$group];
}

public function isReverseMergeGroup(string $group): bool
Expand Down

0 comments on commit 3da856e

Please sign in to comment.