diff options
author | Perl Tidy <perltidy@bugzilla.org> | 2018-12-05 21:38:52 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-12-05 23:49:08 +0100 |
commit | 8ec8da0491ad89604700b3e29a227966f6d84ba1 (patch) | |
tree | 9d270f173330ca19700e0ba9f2ee931300646de1 /Bugzilla/Markdown/GFM/Node.pm | |
parent | a7bb5a65b71644d9efce5fed783ed545b9336548 (diff) | |
download | bugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.gz bugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.xz |
no bug - reformat all the code using the new perltidy rules
Diffstat (limited to 'Bugzilla/Markdown/GFM/Node.pm')
-rw-r--r-- | Bugzilla/Markdown/GFM/Node.pm | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/Bugzilla/Markdown/GFM/Node.pm b/Bugzilla/Markdown/GFM/Node.pm index da5af1a68..934cb4055 100644 --- a/Bugzilla/Markdown/GFM/Node.pm +++ b/Bugzilla/Markdown/GFM/Node.pm @@ -5,27 +5,25 @@ use strict; use warnings; sub SETUP { - my ($class, $FFI) = @_; + my ($class, $FFI) = @_; - $FFI->custom_type( - markdown_node_t => { - native_type => 'opaque', - native_to_perl => sub { - bless \$_[0], $class if $_[0]; - }, - perl_to_native => sub { ${ $_[0] } }, - } - ); + $FFI->custom_type( + markdown_node_t => { + native_type => 'opaque', + native_to_perl => sub { + bless \$_[0], $class if $_[0]; + }, + perl_to_native => sub { ${$_[0]} }, + } + ); - $FFI->attach( - [ cmark_node_free => 'DESTROY' ], - [ 'markdown_node_t' ] => 'void' - ); + $FFI->attach([cmark_node_free => 'DESTROY'], ['markdown_node_t'] => 'void'); - $FFI->attach( - [ cmark_render_html => 'render_html' ], - [ 'markdown_node_t', 'markdown_options_t', 'markdown_syntax_extension_list_t'] => 'string', - ); + $FFI->attach( + [cmark_render_html => 'render_html'], + ['markdown_node_t', 'markdown_options_t', + 'markdown_syntax_extension_list_t'] => 'string', + ); } 1; |