titanscssc::normalizeValue PHP Method

normalizeValue() public method

public normalizeValue ( $value )
    public function normalizeValue($value)
    {
        $value = $this->coerceForExpression($this->reduce($value));
        list($type) = $value;
        switch ($type) {
            case "list":
                $value = $this->extractInterpolation($value);
                if ($value[0] != "list") {
                    return array("keyword", $this->compileValue($value));
                }
                foreach ($value[2] as $key => $item) {
                    $value[2][$key] = $this->normalizeValue($item);
                }
                return $value;
            case "number":
                return $this->normalizeNumber($value);
            default:
                return $value;
        }
    }
titanscssc