Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/cartforge.co/vendor/tubalmartin/cssmin/tests/FineDiff/Render/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/cartforge.co/vendor/tubalmartin/cssmin/tests/FineDiff/Render/Cli.php
<?php

namespace tubalmartin\CssMin\Tests\FineDiff\Render;

use cogpowered\FineDiff\Render\Renderer;

class Cli extends Renderer
{
    public function callback($opcode, $from, $from_offset, $from_len)
    {
        if ($opcode === 'c') {
            $text = substr($from, $from_offset, $from_len);
        } elseif ($opcode === 'd') {
            $deletion = substr($from, $from_offset, $from_len);

            if (strcspn($deletion, " \n\r") === 0) {
                $deletion = str_replace(array("\n","\r"), array('\n','\r'), $deletion);
            }

            $text = "\x1b[97m\x1b[41m".$deletion."\x1b[0m";
        } else /* if ( $opcode === 'i' ) */ {
            $text = "\x1b[97m\x1b[42m".substr($from, $from_offset, $from_len)."\x1b[0m";
        }

        return $text;
    }
}

Spamworldpro Mini