opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
NodeNestingScope
➕ New
📤 Upload
✎ Editing:
ContextAnalyzer.php
← Back
<?php declare (strict_types=1); namespace Rector\NodeNestingScope; use PhpParser\Node; use Rector\NodeTypeResolver\Node\AttributeKey; final class ContextAnalyzer { /** * @api */ public function isInLoop(Node $node) : bool { return $node->getAttribute(AttributeKey::IS_IN_LOOP) === \true; } /** * @api */ public function isInIf(Node $node) : bool { return $node->getAttribute(AttributeKey::IS_IN_IF) === \true; } }
💾 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