From b6bd629be86ee3e5deea18f089331a03adc22362 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 27 Jan 2024 12:03:51 +0000 Subject: [PATCH] Updated Rector to commit 1fe8f3a7694b7fad2e6fee66b575fe2e05738824 https://github.com/rectorphp/rector-src/commit/1fe8f3a7694b7fad2e6fee66b575fe2e05738824 [tidy] Use code sample format (#5508) --- src/Application/VersionResolver.php | 4 ++-- .../custom-rule/utils/rector/src/Rector/__Name__.php | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 3950dda9fc8..91c0ad7a304 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = 'a6ace939a0cbccd31623d3e18677ea8791e69aab'; + public const PACKAGE_VERSION = '1fe8f3a7694b7fad2e6fee66b575fe2e05738824'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-01-27 05:34:41'; + public const RELEASE_DATE = '2024-01-27 12:01:46'; /** * @var int */ diff --git a/templates/custom-rule/utils/rector/src/Rector/__Name__.php b/templates/custom-rule/utils/rector/src/Rector/__Name__.php index bb209149a54..fd7c21e7c81 100644 --- a/templates/custom-rule/utils/rector/src/Rector/__Name__.php +++ b/templates/custom-rule/utils/rector/src/Rector/__Name__.php @@ -18,9 +18,14 @@ final class __Name__ extends AbstractRector { 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 + ), ]); }