protected function parseCall(string $name, array $arguments): array
    {
        list($text, $style) = $arguments + ['', []];

        if (\stripos($name, 'bold') !== false) {
            $name   = \str_ireplace('bold', '', $name);
            $style += ['bold' => 1];
        }

        if (!\preg_match_all('/([b|B|f|F]g)?([A-Z][a-z]+)([^A-Z])?/', $name, $matches)) {
            return [\lcfirst($name) ?: 'line', $text, $style];
        }

        list($name, $style) = $this->buildStyle($name, $style, $matches);

        return [$name, $text, $style];
    }
protected function parseCall(string $name, array $arguments): array
    {
        list($text, $style) = $arguments + ['', []];

        if (\stripos($name, 'bold') !== false) {
            $name   = \str_ireplace('bold', '', $name);
            $style += ['bold' => 1];
        }

        if (!\preg_match_all('/([b|B|f|F]g)?([A-Z][a-z]+)([^A-Z])?/', $name, $matches)) {
            return [\lcfirst($name) ?: 'line', $text, $style];
        }

        list($name, $style) = $this->buildStyle($name, $style, $matches);

        return [$name, $text, $style];
    }
protected function parseCall ( string $ name , array $ arguments ) : array { list ( $ text , $ style ) = $ arguments + [ '' , [ ] ] ; if ( \ stripos ( $ name , 'bold' ) !== false ) { $ name = \ str_ireplace ( 'bold' , '' , $ name ) ; $ style += [ 'bold' => 1 ] ; } if ( ! \ preg_match_all ( '/([b|B|f|F]g)?([A-Z][a-z]+)([^A-Z])?/' , $ name , $ matches ) ) { return [ \ lcfirst ( $ name ) ? : 'line' , $ text , $ style ] ; } list ( $ name , $ style ) = $ this -> buildStyle ( $ name , $ style , $ matches ) ; return [ $ name , $ text , $ style ] ; }
Parse the name argument pairs to determine callable method and style params.

@param string $name
@param array  $arguments

@return array
Parse the name argument pairs to determine callable method and style params .