line |
true |
false |
branch |
471
|
22 |
554 |
unless $self->uri
|
547
|
18 |
4 |
unless utf8::is_utf8($uri)
|
571
|
1 |
2 |
if $@
|
592
|
1 |
4 |
if (defined $type)
|
612
|
4 |
1 |
if (defined $navigation_product)
|
619
|
4 |
1 |
wantarray ? :
|
749
|
136 |
40 |
if ($self->has_column_loaded('selling_price') and not defined $args)
|
756
|
32 |
8 |
if ($args) { }
|
757
|
1 |
31 |
unless ref $args eq 'HASH'
|
767
|
30 |
9 |
if (defined $args->{'quantity'}) { }
|
770
|
1 |
29 |
unless $args->{'quantity'} =~ /^\d+$/
|
787
|
27 |
11 |
if (my $user = $schema->current_user)
|
808
|
31 |
7 |
defined $selling_price && $selling_price < $price ? :
|
830
|
124 |
14 |
unless $self->variant_count
|
834
|
7 |
7 |
if ($self->has_column_loaded('highest_price')) { }
|
841
|
7 |
7 |
if ($self->has_column_loaded('selling_price'))
|
842
|
6 |
1 |
if $highest_price > $self->selling_price
|
846
|
6 |
1 |
if ($highest_price > $self->self_rs->with_lowest_selling_price->single->selling_price)
|
873
|
1 |
5 |
if ($self->canonical_sku)
|
879
|
2 |
3 |
if (ref $match_info eq 'HASH')
|
890
|
12 |
7 |
if ($gather_matches)
|
914
|
26 |
7 |
if ($pav_rs->count != 1 or not defined $input->{$name} or $pav_rs->next->attribute_value->value ne $input->{$name})
|
918
|
22 |
5 |
if ($gather_matches) { }
|
927
|
2 |
5 |
if ($gather_matches)
|
934
|
2 |
17 |
if (scalar keys %$input == scalar keys %match)
|
1046
|
1 |
7 |
if ($canonical = $self->canonical)
|
1057
|
1 |
6 |
if defined $args{'cond'}
|
1066
|
1 |
6 |
if defined $args{'order_by'}
|
1088
|
17 |
60 |
unless (exists $attributes{$name})
|
1110
|
35 |
42 |
unless (exists $att_record->{'value_map'}{$attr_value{'value'}})
|
1116
|
4 |
73 |
if ($args{'selected'} and $prod_att->{'sku'} eq $args{'selected'})
|
1127
|
5 |
2 |
if ($args{'hashref'})
|
1177
|
2 |
235 |
unless (exists $var_ref->{'sku'} and $sku = $var_ref->{'sku'})
|
1181
|
1 |
234 |
if (defined $var_ref->{'attributes'})
|
1192
|
660 |
330 |
if ($self->result_source->has_column($name)) { }
|
1204
|
76 |
256 |
unless ($attr_map{$name})
|
1212
|
1 |
75 |
unless ($attribute = $set->next)
|
1220
|
1 |
330 |
unless ($attribute_value = $attr_map{$name}->find_related('attribute_values', {'value', $value}))
|
1262
|
2 |
1 |
if ($self->variant_count or $self->selling_price == $self->price)
|
1286
|
1 |
4 |
unless $type
|
1312
|
1 |
360 |
if $self->canonical_sku
|
1342
|
3 |
11 |
if $self->canonical_sku
|
1355
|
1 |
1 |
unless defined $rows
|
1396
|
8 |
6 |
unless defined $precision and $precision =~ /^\d$/
|
1400
|
13 |
1 |
defined $avg ? :
|
1413
|
1 |
79 |
unless @_ > 0
|
1417
|
78 |
1 |
if (ref $_[0])
|
1418
|
76 |
2 |
if (ref $_[0] eq 'HASH') { }
|
1424
|
1 |
1 |
unless (my $type = $obj->message_type->name eq 'product_review')
|
1431
|
1 |
77 |
unless $obj
|
1436
|
1 |
76 |
$self->canonical_sku ? :
|
1457
|
1 |
10 |
unless @_ > 0
|
1460
|
1 |
9 |
ref $_[0] eq 'ARRAY' ? :
|
1482
|
69 |
12 |
if $self->has_column_loaded('quantity_in_stock')
|
1487
|
3 |
9 |
if ($variants->has_rows) { }
|
|
8 |
1 |
elsif (not $self->inventory_exempt) { }
|
1489
|
2 |
1 |
if ($not_exempt->has_rows)
|
1496
|
7 |
1 |
defined $inventory ? :
|
1512
|
335 |
234 |
unless defined $self->canonical_sku
|