Skip to content

Commit

Permalink
[tidy] Use code sample format (#5508)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jan 27, 2024
1 parent a6ace93 commit 1fe8f3a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions templates/custom-rule/utils/rector/src/Rector/__Name__.php
Expand Up @@ -18,9 +18,14 @@ public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition('// @todo fill the description', [
new CodeSample(
'// @todo fill code before',
'// @todo fill code after'
)
<<<'CODE_SAMPLE'
// @todo fill code before
CODE_SAMPLE
,
<<<'CODE_SAMPLE'
// @todo fill code after
CODE_SAMPLE
),
]);
}

Expand Down

0 comments on commit 1fe8f3a

Please sign in to comment.