protected function normalizeArray($value)
    {
        switch (true) {
            case $this->checkFlag(self::ARRAY_MODE_ARRAY):
            default:
                foreach ($value as &$v) {
                    if (is_array($v)) {
                        throw new RendererException('Multi-dimensional arrays are not supported by this array mode');
                    }

                    $v = $this->normalizeValue($v);
                }

                return $value;

                break;

            case $this->checkFlag(self::ARRAY_MODE_CONCAT):
                foreach ($value as &$v) {
                    $v = trim($this->normalizeValue($v), '"'); // We don't want string normalization here
                }

                return $this->normalizeValue(implode(',', $value));

                break;
        }
    }
protected function normalizeArray($value)
    {
        switch (true) {
            case $this->checkFlag(self::ARRAY_MODE_ARRAY):
            default:
                foreach ($value as &$v) {
                    if (is_array($v)) {
                        throw new RendererException('Multi-dimensional arrays are not supported by this array mode');
                    }

                    $v = $this->normalizeValue($v);
                }

                return $value;

                break;

            case $this->checkFlag(self::ARRAY_MODE_CONCAT):
                foreach ($value as &$v) {
                    $v = trim($this->normalizeValue($v), '"'); // We don't want string normalization here
                }

                return $this->normalizeValue(implode(',', $value));

                break;
        }
    }
protected function normalizeArray ( $ value ) { switch ( true ) { case $ this -> checkFlag ( self :: ARRAY_MODE_ARRAY ) : default : foreach ( $ value as & $ v ) { if ( is_array ( $ v ) ) { throw new RendererException ( 'Multi-dimensional arrays are not supported by this array mode' ) ; } $ v = $ this -> normalizeValue ( $ v ) ; } return $ value ; break ; case $ this -> checkFlag ( self :: ARRAY_MODE_CONCAT ) : foreach ( $ value as & $ v ) { $ v = trim ( $ this -> normalizeValue ( $ v ) , '"' ) ; // We don't want string normalization here } return $ this -> normalizeValue ( implode ( ',' , $ value ) ) ; break ; } }
Normalizes arrays.

@param array $value

@return array|string
Normalizes arrays .