__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php


namespace Nextend\Framework\Asset\Css\Less\Formatter;


#[\AllowDynamicProperties]
class Classic {

    public $indentChar = "  ";

    public $break = "\n";
    public $open = " {";
    public $close = "}";
    public $selectorSeparator = ", ";
    public $assignSeparator = ":";

    public $openSingle = " { ";
    public $closeSingle = " }";

    public $disableSingle = false;
    public $breakSelectors = false;

    public $compressColors = false;

    public function __construct() {
        $this->indentLevel = 0;
    }

    public function indentStr($n = 0) {
        return str_repeat($this->indentChar, max($this->indentLevel + $n, 0));
    }

    public function property($name, $value) {
        return $name . $this->assignSeparator . $value . ";";
    }

    protected function isEmpty($block) {
        if (empty($block->lines)) {
            foreach ($block->children as $child) {
                if (!$this->isEmpty($child)) return false;
            }

            return true;
        }

        return false;
    }

    public function block($block) {
        $ret = '';
        if ($this->isEmpty($block)) return $ret;

        $inner = $pre = $this->indentStr();

        $isSingle = !$this->disableSingle && is_null($block->type) && count($block->lines) == 1;

        if (!empty($block->selectors)) {
            $this->indentLevel++;

            if ($this->breakSelectors) {
                $selectorSeparator = $this->selectorSeparator . $this->break . $pre;
            } else {
                $selectorSeparator = $this->selectorSeparator;
            }

            $ret .= $pre . implode($selectorSeparator, $block->selectors);
            if ($isSingle) {
                $ret   .= $this->openSingle;
                $inner = "";
            } else {
                $ret   .= $this->open . $this->break;
                $inner = $this->indentStr();
            }

        }

        if (!empty($block->lines)) {
            $glue = $this->break . $inner;
            $ret  .= $inner . implode($glue, $block->lines);
            if (!$isSingle && !empty($block->children)) {
                $ret .= $this->break;
            }
        }

        foreach ($block->children as $child) {
            $ret .= $this->block($child);
        }

        if (!empty($block->selectors)) {
            if (!$isSingle && empty($block->children)) $ret .= $this->break;

            if ($isSingle) {
                $ret .= $this->closeSingle . $this->break;
            } else {
                $ret .= $pre . $this->close . $this->break;
            }

            $this->indentLevel--;
        }

        return $ret;
    }
}

Filemanager

Name Type Size Permission Actions
Classic.php File 2.6 KB 0664
Compressed.php File 356 B 0664
Debug.php File 238 B 0664
Filemanager