protected function formatAttributes(array $attributes, $lineno, $name)
    {
        try {
            $processor = new Processor();

            return $processor->process($this->getAttributeNodeConfig(), [$attributes]);
        } catch (\Exception $e) {
            throw new SyntaxError($this->getFormattedMessageException($e), $lineno, new Source('', $name));
        }
    }
protected function formatAttributes(array $attributes, $lineno, $name)
    {
        try {
            $processor = new Processor();

            return $processor->process($this->getAttributeNodeConfig(), [$attributes]);
        } catch (\Exception $e) {
            throw new SyntaxError($this->getFormattedMessageException($e), $lineno, new Source('', $name));
        }
    }
protected function formatAttributes ( array $ attributes , $ lineno , $ name ) { try { $ processor = new Processor ( ) ; return $ processor -> process ( $ this -> getAttributeNodeConfig ( ) , [ $ attributes ] ) ; } catch ( \ Exception $ e ) { throw new SyntaxError ( $ this -> getFormattedMessageException ( $ e ) , $ lineno , new Source ( '' , $ name ) ) ; } }
Validate and format all attributes.

@param array  $attributes
@param int    $lineno
@param string $name

@throws SyntaxError When the attribute does not exist

@return array The formatted attributes
Validate and format all attributes .