PHP 8.2.31
Preview: ContextAnalyzer.php Size: 484 B
/opt/cpanel/ea-wappspector/vendor/rector/rector/src/NodeNestingScope/ContextAnalyzer.php

<?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;
    }
}

Directory Contents

Dirs: 1 × Files: 1

Name Size Perms Modified Actions
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
484 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).