src/Titon/Db/Driver/Dialect/AbstractDialect.php
public function formatAttributes(array $attributes) {
        foreach ($attributes as $key => $attr) {
            if ($attr instanceof Closure) {
                $attributes[$key] = call_user_func($attr, $this);

            } else if ($this->hasKeyword($attr)) {
                $attributes[$key] = $this->getKeyword($attr);

            } else if ($attr === true) {
                $attributes[$key] = $this->getKeyword($key);

            } else {
                $attributes[$key] = (string) $attr;
            }
        }

        return $attributes;
    }
public function formatAttributes(array $attributes) {
        foreach ($attributes as $key => $attr) {
            if ($attr instanceof Closure) {
                $attributes[$key] = call_user_func($attr, $this);

            } else if ($this->hasKeyword($attr)) {
                $attributes[$key] = $this->getKeyword($attr);

            } else if ($attr === true) {
                $attributes[$key] = $this->getKeyword($key);

            } else {
                $attributes[$key] = (string) $attr;
            }
        }

        return $attributes;
    }
public function formatAttributes ( array $ attributes ) { foreach ( $ attributes as $ key => $ attr ) { if ( $ attr instanceof Closure ) { $ attributes [ $ key ] = call_user_func ( $ attr , $ this ) ; } else if ( $ this -> hasKeyword ( $ attr ) ) { $ attributes [ $ key ] = $ this -> getKeyword ( $ attr ) ; } else if ( $ attr === true ) { $ attributes [ $ key ] = $ this -> getKeyword ( $ key ) ; } else { $ attributes [ $ key ] = ( string ) $ attr ; } } return $ attributes ; }
Prepare the list of attributes for rendering.
If an attribute is found within a keyword, use the keyword.

@param array $attributes
@return array
Prepare the list of attributes for rendering . If an attribute is found within a keyword use the keyword .