Skip to content

Commit

Permalink
TASK: Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mficzel committed Apr 19, 2024
1 parent 38adb89 commit 102ad89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Classes/Aspect/LabelForNodeAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function markZombieNodes(JoinPointInterface $joinPoint): string

if ($node instanceof NodeInterface && $node->getContext()->isInBackend() && $node->getContext()->getCurrentRenderingMode()->isEdit()) {
if ($this->zombieDetector->isZombie($node)) {
if ($this->zombieDetector->isZombieThatHasBeDestructed($node)) {
if ($this->zombieDetector->isZombieThatHasBeDestroyed($node)) {
$label = '🔥🧟🔥 ' . $label;
} else {
$label = '🧟 ' . $label;
Expand Down
4 changes: 2 additions & 2 deletions Classes/Command/ZombieCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function detectCommand(?string $siteNode = null, ?string $dimensionValues

foreach ($this->traverseSubtreeAndYieldZombieNodes($rootNode) as $zombieNode) {
$path = $this->renderNodePath($rootNode, $zombieNode);
if ($this->zombieDetector->isZombieThatHasBeDestructed($zombieNode)) {
if ($this->zombieDetector->isZombieThatHasBeDestroyed($zombieNode)) {
$this->outputLine(sprintf('- 🔥🧟🔥 <info>%s (%s)</info> %s', $zombieNode->getLabel(), $zombieNode->getNodeType()->getLabel(), $path));
$zombiesDueToDestructionCount++;
} else {
Expand Down Expand Up @@ -134,7 +134,7 @@ public function destroyCommand(?string $siteNode = null, ?string $dimensionValue

foreach ($this->traverseSubtreeAndYieldZombieNodes($rootNode) as $zombieNode) {
$path = $this->renderNodePath($rootNode, $zombieNode);
if ($this->zombieDetector->isZombieThatHasBeDestructed($zombieNode)) {
if ($this->zombieDetector->isZombieThatHasBeDestroyed($zombieNode)) {
$this->outputLine(sprintf('- 🔥🧟🔥 <info>%s (%s)</info> %s', $zombieNode->getLabel(), $zombieNode->getNodeType()->getLabel(), $path));
$zombieNode->remove();
$removedZombieCount++;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Domain/ZombieDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function isZombie(NodeInterface $node): bool
return false;
}

public function isZombieThatHasBeDestructed(NodeInterface $node): bool
public function isZombieThatHasBeDestroyed(NodeInterface $node): bool
{
if ($node->isVisible()) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Helper/ZombieDetectorHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function isZombie(NodeInterface $node): bool

public function isZombieThatHasToBeDestructed(NodeInterface $node): bool
{
return $this->zombieDetector->isZombieThatHasBeDestructed($node);
return $this->zombieDetector->isZombieThatHasBeDestroyed($node);
}

public function allowsCallOfMethod($methodName)
Expand Down

0 comments on commit 102ad89

Please sign in to comment.