From a8ece1d324bbbbb675224af97cf5dcb15580d577 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 17 Sep 2015 16:31:04 +0200 Subject: Rename jsonEncode/Decode to C-style naming CamelCase is used for methods, C-style names for functions. I'm just nitpicking now. --- lib/VNDB/Func.pm | 10 +++++----- lib/VNDB/Handler/Staff.pm | 4 ++-- lib/VNDB/Handler/VNEdit.pm | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'lib') diff --git a/lib/VNDB/Func.pm b/lib/VNDB/Func.pm index dd3f292e..40af8e73 100644 --- a/lib/VNDB/Func.pm +++ b/lib/VNDB/Func.pm @@ -11,7 +11,7 @@ use VNDBUtil; our @EXPORT = (@VNDBUtil::EXPORT, qw| clearfloat cssicon tagscore mt minage fil_parse fil_serialize parenttags childtags charspoil imgpath imgurl fmtvote - jsonEncode jsonDecode script_json json_validate + json_encode json_decode script_json json_validate mtvoiced mtani mtvnlen mtrlstat mtvnlstat mtbloodt |); @@ -210,18 +210,18 @@ sub fmtvote { my $JSON = JSON::XS->new; $JSON->canonical(1); -sub jsonEncode ($) { +sub json_encode ($) { $JSON->encode(@_); } -sub jsonDecode ($) { +sub json_decode ($) { $JSON->decode(@_); } # Insert JSON-encoded data as script, arguments: id, object sub script_json { script id => $_[0], type => 'application/json'; - my $js = jsonEncode $_[1]; + my $js = json_encode $_[1]; $js =~ s/ and