titanscssc::combineSelectorSingle PHP Method

combineSelectorSingle() protected method

protected combineSelectorSingle ( $base, $other )
    protected function combineSelectorSingle($base, $other)
    {
        $tag = null;
        $out = array();
        foreach (array($base, $other) as $single) {
            foreach ($single as $part) {
                if (preg_match('/^[^\\[.#:]/', $part)) {
                    $tag = $part;
                } else {
                    $out[] = $part;
                }
            }
        }
        if ($tag) {
            array_unshift($out, $tag);
        }
        return $out;
    }
titanscssc