| 1 | package WWW::Shopify::Liquid::Dialect; | ||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||
| 5 | 2 | ▶ | use Module::Find; | ||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||||||
| 7 | 0 | ▶ | sub new { return bless { }, $_[0]; } | ||||||||||||||||||||||||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||||||||
| 9 | 0 | ▶ | sub use_modules { | ||||||||||||||||||||||||||||||||
|
Subroutine
use_modules: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||||||||
| 10 | 0 | my ($self, $package) = @_; | |||||||||||||||||||||||||||||||||
| 11 | 0 | ▶ | return useall($package || ref($self) || $self); | ||||||||||||||||||||||||||||||||
|
Condition0%0/6
$package || ref $self || $self
$package or ref $self
MC/DC0%0/3
$package || ref $self || $self
$package
ref $self
$self
Truth table0%0/4
A or B || C
A= $packageB= ref $selfC= $self
| |||||||||||||||||||||||||||||||||||
| 12 | } | ||||||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||||||
| 14 | 0 | ▶ | sub apply { | ||||||||||||||||||||||||||||||||
|
Subroutine
apply: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||
| 15 | 0 | my ($self, $liquid, $package) = @_; | |||||||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||||||||
| 17 | 0 | my @modules = $self->use_modules($package); | |||||||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||||||||
| 19 | 0 | $liquid->register_operator($_) for (grep { $_ =~ m/\bOperator\b/ } @modules); | |||||||||||||||||||||||||||||||||
| 20 | 0 | $liquid->register_filter($_) for (grep { $_ =~ m/\bFilter\b/ } @modules); | |||||||||||||||||||||||||||||||||
| 21 | 0 | $liquid->register_tag($_) for (grep { $_ =~ m/\bTag\b/ } @modules); | |||||||||||||||||||||||||||||||||
| 22 | } | ||||||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||||||
| 24 | 2 | 1; | |||||||||||||||||||||||||||||||||