« blib/lib/WWW/Shopify/Liquid/Filter/Last.pm
↑ Summary
blib/lib/WWW/Shopify/Liquid/Operator/Array.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::Size; use base 'WWW::Shopify::Liquid::Filter'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 0 | ▶ | sub transparent { return 1; } | ||||||||||||||||||||||||||
|
Subroutine
transparent: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 7 | 0 | ▶ | sub max_arguments { return 0; } | ||||||||||||||||||||||||||
|
Subroutine
max_arguments: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 8 | sub operate { | ||||||||||||||||||||||||||||
| 9 | 0 | ▶ | return int(@{$_[2]}) if ref($_[2]) && ref($_[2]) eq "ARRAY"; | ||||||||||||||||||||||||||
|
Subroutine
operate: not called CC=5 SCAR=34.0
Pod
undocumented
Branch: 1 branch
Condition0%0/3
ref $_[2] and ref $_[2] eq "ARRAY"
MC/DC0%0/2
ref $_[2] and ref $_[2] eq "ARRAY"
ref $_[2]
ref $_[2] eq "ARRAY"
Truth table0%0/3
A and B
A= ref $_[2]B= ref $_[2] eq "ARRAY"
| |||||||||||||||||||||||||||||
| 10 | 0 | ▶ | return int(keys(%{$_[2]})) if ref($_[2]) && ref($_[2]) eq "HASH"; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
ref $_[2] and ref $_[2] eq "HASH"
MC/DC0%0/2
ref $_[2] and ref $_[2] eq "HASH"
ref $_[2]
ref $_[2] eq "HASH"
Truth table0%0/3
A and B
A= ref $_[2]B= ref $_[2] eq "HASH"
| |||||||||||||||||||||||||||||
| 11 | 0 | return length($_[2]); | |||||||||||||||||||||||||||
| 12 | } | ||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | 30 | 1; | |||||||||||||||||||||||||||