Skip to content

Commit

Permalink
Merge pull request #27 from neos/task/cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaeslich authored Sep 29, 2023
2 parents 618a7fd + 32b1a19 commit 7c3e331
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FusionContextCurrentSiteRector implements FusionRectorInterface

public function getRuleDefinition(): RuleDefinition
{
return CodeSampleLoader::fromFile('Fusion: Rewrite node.context.inBackend to Neos.Node.inBackend(...)', __CLASS__);
return CodeSampleLoader::fromFile('Fusion: Rewrite node.context.currentSite to Neos.Site.findBySiteNode(site)', __CLASS__);
}

public function refactorFileContent(string $fileContent): string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FusionContextInBackendRector implements FusionRectorInterface

public function getRuleDefinition(): RuleDefinition
{
return CodeSampleLoader::fromFile('Fusion: Rewrite node.context.inBackend to Neos.Node.inBackend(...)', __CLASS__);
return CodeSampleLoader::fromFile('Fusion: Rewrite "node.context.inBackend" to "renderingMode.isEdit"', __CLASS__);
}

public function refactorFileContent(string $fileContent): string
Expand Down
2 changes: 1 addition & 1 deletion src/ContentRepository90/Rules/FusionContextLiveRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FusionContextLiveRector implements FusionRectorInterface

public function getRuleDefinition(): RuleDefinition
{
return CodeSampleLoader::fromFile('Fusion: Rewrite node.context.live to Neos.Node.isLive(...)', __CLASS__);
return CodeSampleLoader::fromFile('Fusion: Rewrite "node.context.live" to "!renderingMode.isEdit"', __CLASS__);
}

public function refactorFileContent(string $fileContent): string
Expand Down

0 comments on commit 7c3e331

Please sign in to comment.