lib/HTML/FormFu/Filter/LowerCase.pm

filter: Statementstmt 100% 13 / 13 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 89.4% 17 / 19 SCAR 6.9
CC
2
Cov
93%
filter
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« lib/HTML/FormFu/Filter.pm ↑ Summary lib/HTML/FormFu/Filter/UpperCase.pm »
1 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package HTML::FormFu::Filter::LowerCase;
4 4 $HTML::FormFu::Filter::LowerCase::VERSION = '2.06';
5 # ABSTRACT: filter transforming to lower case
6  
7 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 extends 'HTML::FormFu::Filter';
9  
10 sub filter {
11 1 ▶ my ( $self, $value ) = @_;
Subroutine filter: called CC=2 SCAR=7.1
Pod undocumented
12  
13 1 ▶ return if !defined $value;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $value 0 1 1
14  
15 1 return lc $value;
16 }
17  
18 4 __PACKAGE__->meta->make_immutable;
19  
20 4 1;
21  
22 __END__
23  
24 =pod
25  
26 =encoding UTF-8
27  
28 =head1 NAME
29  
30 HTML::FormFu::Filter::LowerCase - filter transforming to lower case
31  
32 =head1 VERSION
33  
34 version 2.06
35  
36 =head1 DESCRIPTION
37  
38 LowerCase transforming filter.
39  
40 =head1 AUTHOR
41  
42 Carl Franks, C<cfranks@cpan.org>
43  
44 Based on the original source code of L<HTML::Widget::Filter::LowerCase>, by
45 Lyo Kato, C<lyo.kato@gmail.com>
46  
47 =head1 LICENSE
48  
49 This library is free software, you can redistribute it and/or modify it under
50 the same terms as Perl itself.
51  
52 =head1 AUTHOR
53  
54 Carl Franks <cpan@fireartist.com>
55  
56 =head1 COPYRIGHT AND LICENSE
57  
58 This software is copyright (c) 2018 by Carl Franks.
59  
60 This is free software; you can redistribute it and/or modify it under
61 the same terms as the Perl 5 programming language system itself.
62  
63 =cut
« lib/HTML/FormFu/Filter.pm ↑ Summary lib/HTML/FormFu/Filter/UpperCase.pm »