« blib/lib/WWW/Shopify/Liquid/Operator/Regex.pm
↑ Summary
blib/lib/WWW/Shopify/Liquid/Filter/Round.pm »
| 1 | #!/usr/bin/perl | ||||||||||||||||||||||||||||
| 2 | 30 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 30 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | 30 | ▶ | package WWW::Shopify::Liquid::Filter::Date; use base 'WWW::Shopify::Liquid::Filter'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 0 | ▶ | sub min_arguments { return 1; } | ||||||||||||||||||||||||||
|
Subroutine
min_arguments: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 7 | 0 | ▶ | sub max_arguments { return 1; } | ||||||||||||||||||||||||||
|
Subroutine
max_arguments: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 8 | sub operate { | ||||||||||||||||||||||||||||
| 9 | 0 | ▶ | my ($self, $hash, $operand, @arguments) = @_; | ||||||||||||||||||||||||||
|
Subroutine
operate: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 10 | 0 | ▶ | return '' unless $operand; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 11 | 0 | ▶ | return DateTime->from_epoch( epoch => $operand )->strftime(@arguments) if $operand && !ref($operand); | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$operand and not ref $operand
MC/DC0%0/2
$operand and not ref $operand
$operand
not ref $operand
Truth table0%0/3
A and not(B)
A= $operandB= not ref $operand
| |||||||||||||||||||||||||||||
| 12 | 0 | return $operand->strftime(@arguments); | |||||||||||||||||||||||||||
| 13 | } | ||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 30 | 1; | |||||||||||||||||||||||||||