!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/cloud_campaign/vendor/phpunit/php-code-coverage/src/StaticAnalysis/   drwxr-xr-x
Free 13.19 GB of 57.97 GB (22.75%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ExecutableLinesFindingVisitor.php (2.62 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types=1);
/*
 * This file is part of phpunit/php-code-coverage.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace SebastianBergmann\CodeCoverage\StaticAnalysis;

use function 
array_unique;
use function 
sort;
use 
PhpParser\Node;
use 
PhpParser\Node\Stmt\Break_;
use 
PhpParser\Node\Stmt\Case_;
use 
PhpParser\Node\Stmt\Catch_;
use 
PhpParser\Node\Stmt\Continue_;
use 
PhpParser\Node\Stmt\Do_;
use 
PhpParser\Node\Stmt\Echo_;
use 
PhpParser\Node\Stmt\Else_;
use 
PhpParser\Node\Stmt\ElseIf_;
use 
PhpParser\Node\Stmt\Expression;
use 
PhpParser\Node\Stmt\Finally_;
use 
PhpParser\Node\Stmt\For_;
use 
PhpParser\Node\Stmt\Foreach_;
use 
PhpParser\Node\Stmt\Goto_;
use 
PhpParser\Node\Stmt\If_;
use 
PhpParser\Node\Stmt\Return_;
use 
PhpParser\Node\Stmt\Switch_;
use 
PhpParser\Node\Stmt\Throw_;
use 
PhpParser\Node\Stmt\TryCatch;
use 
PhpParser\Node\Stmt\Unset_;
use 
PhpParser\Node\Stmt\While_;
use 
PhpParser\NodeVisitorAbstract;

/**
 * @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
 */
final class ExecutableLinesFindingVisitor extends NodeVisitorAbstract
{
    
/**
     * @psalm-var list<int>
     */
    
private $executableLines = [];

    public function 
enterNode(Node $node): void
    
{
        if (!
$this->isExecutable($node)) {
            return;
        }

        
$this->executableLines[] = $node->getStartLine();
    }

    
/**
     * @psalm-return list<int>
     */
    
public function executableLines(): array
    {
        
$executableLines array_unique($this->executableLines);

        
sort($executableLines);

        return 
$executableLines;
    }

    private function 
isExecutable(Node $node): bool
    
{
        return 
$node instanceof Break_ ||
               
$node instanceof Case_ ||
               
$node instanceof Catch_ ||
               
$node instanceof Continue_ ||
               
$node instanceof Do_ ||
               
$node instanceof Echo_ ||
               
$node instanceof ElseIf_ ||
               
$node instanceof Else_ ||
               
$node instanceof Expression ||
               
$node instanceof Finally_ ||
               
$node instanceof Foreach_ ||
               
$node instanceof For_ ||
               
$node instanceof Goto_ ||
               
$node instanceof If_ ||
               
$node instanceof Return_ ||
               
$node instanceof Switch_ ||
               
$node instanceof Throw_ ||
               
$node instanceof TryCatch ||
               
$node instanceof Unset_ ||
               
$node instanceof While_;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0045 ]--