opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
vendor
/
rector
/
rector-phpunit
/
src
/
NodeFactory
➕ New
📤 Upload
✎ Editing:
AssertCallFactory.php
← Back
<?php declare (strict_types=1); namespace Rector\PHPUnit\NodeFactory; use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Expr\StaticCall; final class AssertCallFactory { /** * @param \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall $node * @return \PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\MethodCall */ public function createCallWithName($node, string $name) { if ($node instanceof MethodCall) { return new MethodCall($node->var, $name); } return new StaticCall($node->class, $name); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel