Leafo\ScssPhp\Compiler::expToString PHP Method

expToString() protected method

Reduce expression to string
protected expToString ( array $exp ) : array
$exp array
return array
    protected function expToString($exp)
    {
        list(, $op, $left, $right, , $whiteLeft, $whiteRight) = $exp;
        $content = [$this->reduce($left)];
        if ($whiteLeft) {
            $content[] = ' ';
        }
        $content[] = $op;
        if ($whiteRight) {
            $content[] = ' ';
        }
        $content[] = $this->reduce($right);
        return [Type::T_STRING, '', $content];
    }
Compiler