Leafo\ScssPhp\Compiler::libZip PHP 메소드

libZip() 보호된 메소드

protected libZip ( $args )
    protected function libZip($args)
    {
        foreach ($args as $arg) {
            $this->assertList($arg);
        }
        $lists = [];
        $firstList = array_shift($args);
        foreach ($firstList[2] as $key => $item) {
            $list = [Type::T_LIST, '', [$item]];
            foreach ($args as $arg) {
                if (isset($arg[2][$key])) {
                    $list[2][] = $arg[2][$key];
                } else {
                    break 2;
                }
            }
            $lists[] = $list;
        }
        return [Type::T_LIST, ',', $lists];
    }
Compiler