blib/lib/DTL/Fast/Filter/Urlencode.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.5% 28 / 29 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/DTL/Fast/Filter/Title.pm ↑ Summary blib/lib/DTL/Fast/Filter/Strftime.pm »
1 package DTL::Fast::Filter::Urlencode;
2 3 ▶use strict; use utf8; use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use parent 'DTL::Fast::Filter';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 3 $DTL::Fast::FILTER_HANDLERS{'urlencode'} = __PACKAGE__;
6  
7 3 ▶use DTL::Fast::Utils;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 #@Override
10 sub filter
11 {
12 4 ▶ shift; # self
Subroutine filter: called CC=1 SCAR=0.0
Pod undocumented
13 4 shift; # filter_manager
14 4 my $value = shift; # value
15 4 shift; #context
16
17 4 return DTL::Fast::Utils::escape($value);
18 }
19  
20 3 1;
« blib/lib/DTL/Fast/Filter/Title.pm ↑ Summary blib/lib/DTL/Fast/Filter/Strftime.pm »