!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/queuepro/vendor/fakerphp/faker/src/Faker/   drwxrwxr-x
Free 13.21 GB of 57.97 GB (22.79%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Documentor.php (2.35 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Faker;

class 
Documentor
{
    protected 
$generator;

    public function 
__construct(Generator $generator)
    {
        
$this->generator $generator;
    }

    
/**
     * @return array
     */
    
public function getFormatters()
    {
        
$formatters = [];
        
$providers array_reverse($this->generator->getProviders());
        
$providers[] = new Provider\Base($this->generator);

        foreach (
$providers as $provider) {
            
$providerClass get_class($provider);
            
$formatters[$providerClass] = [];
            
$refl = new \ReflectionObject($provider);

            foreach (
$refl->getMethods(\ReflectionMethod::IS_PUBLIC) as $reflmethod) {
                if (
$reflmethod->getDeclaringClass()->getName() == 'Faker\Provider\Base' && $providerClass != 'Faker\Provider\Base') {
                    continue;
                }
                
$methodName $reflmethod->name;

                if (
$reflmethod->isConstructor()) {
                    continue;
                }
                
$parameters = [];

                foreach (
$reflmethod->getParameters() as $reflparameter) {
                    
$parameter '$' $reflparameter->getName();

                    if (
$reflparameter->isDefaultValueAvailable()) {
                        
$parameter .= ' = ' var_export($reflparameter->getDefaultValue(), true);
                    }
                    
$parameters[] = $parameter;
                }
                
$parameters $parameters '(' implode(', '$parameters) . ')' '';

                try {
                    
$example $this->generator->format($methodName);
                } catch (
\InvalidArgumentException $e) {
                    
$example '';
                }

                if (
is_array($example)) {
                    
$example "array('" implode("', '"$example) . "')";
                } elseif (
$example instanceof \DateTime) {
                    
$example "DateTime('" $example->format('Y-m-d H:i:s') . "')";
                } elseif (
$example instanceof Generator || $example instanceof UniqueGenerator) { // modifier
                    
$example '';
                } else {
                    
$example var_export($exampletrue);
                }
                
$formatters[$providerClass][$methodName $parameters] = $example;
            }
        }

        return 
$formatters;
    }
}

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