« lib/WWW/Shopify/Liquid/Dialect/Web/Tag/Form.pm
↑ Summary
lib/WWW/Shopify/Liquid/Filter/NewlineToBr.pm »
| 1 | #!/usr/bin/perl | ||||||||||
| 2 | 38 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 38 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package WWW::Shopify::Liquid::Operator; | ||||||||||
| 6 | 38 | ▶ | use base 'WWW::Shopify::Liquid::Element'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 8 | 0 | my $package = shift; | |||||||||
| 9 | 0 | my $self = bless { line => shift, core => shift, operands => undef }, $package; | |||||||||
| 10 | 0 | ▶ | $self->{operands} = [@_] if int(@_) >= 1; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | 0 | return $self; | |||||||||
| 12 | } | ||||||||||
| 13 | 0 | ▶ | sub operands { my $self = shift; $self->{operands} = [@_]; return $self->{operands}; } | ||||||||
|
Subroutine
operands: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 14 | 0 | ▶ | sub subelements { qw(operands); } | ||||||||
|
Subroutine
subelements: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 15 | |||||||||||
| 16 | 0 | ▶ | sub arity { return "binary"; } | ||||||||
|
Subroutine
arity: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 17 | 0 | ▶ | sub fixness { return "infix"; } | ||||||||
|
Subroutine
fixness: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | sub process { | ||||||||
|
Subroutine
process: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 20 | 0 | my ($self, $hash, $action, $pipeline) = @_; | |||||||||
| 21 | 0 | my ($ops) = $self->process_subelements($hash, $action, $pipeline); | |||||||||
| 22 | 0 | ▶ | return $self unless int(grep { !$self->is_processed($_) } @$ops) == 0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 0 | $pipeline->security->check_operate($self, $hash, $action, @$ops); | |||||||||
| 24 | 0 | return $self->operate($hash, $action, @$ops); | |||||||||
| 25 | } | ||||||||||
| 26 | 0 | ▶ | sub priority { return 0; } | ||||||||
|
Subroutine
priority: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 27 | # If we require a grouping, it means that it must be wrapped in parentheses, due to how Shopify works. Only relevant for reconversion. | ||||||||||
| 28 | 0 | ▶ | sub requires_grouping { return 0; } | ||||||||
|
Subroutine
requires_grouping: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 29 | |||||||||||
| 30 | 38 | 1; | |||||||||