line |
true |
false |
branch |
39
|
0 |
3 |
unless exists $allowed_params{$parameter}
|
56
|
0 |
7 |
unless $what
|
61
|
0 |
7 |
unless exists $attributes{$what}
|
72
|
8 |
6 |
if $self->_compare('from', $_, 'to', $what) == 1
|
76
|
4 |
3 |
if $sanity_level == 2
|
93
|
0 |
14 |
if $params{'from'} eq $params{'to'}
|
96
|
1 |
13 |
unless $self->{$from}
|
98
|
6 |
7 |
if ($params{'to'} eq 'country') { }
|
|
4 |
3 |
elsif ($params{'to'} eq 'language') { }
|
|
3 |
0 |
elsif ($params{'to'} eq 'currency') { }
|
104
|
4 |
231 |
if $place->code_alpha2 eq $self->{'_country'}->code_alpha2
|
110
|
2 |
2 |
if ($params{'from'} eq 'country') { }
|
|
2 |
0 |
elsif ($params{'from'} eq 'currency') { }
|
115
|
1 |
3 |
if $_->code_alpha2 eq $self->{'_language'}->code_alpha2
|
130
|
1 |
7 |
if $_->code_alpha2 eq $self->{'_language'}->code_alpha2
|
138
|
1 |
2 |
if ($params{'from'} eq 'country') { }
|
|
2 |
0 |
elsif ($params{'from'} eq 'language') { }
|
144
|
0 |
1 |
if $_->code_alpha2 eq $self->{'_country'}->code_alpha2
|
157
|
1 |
2 |
if $_->code eq $self->{'_currency'}->code
|
180
|
1 |
3 |
unless $what
|
182
|
0 |
4 |
unless exists $attributes{$what}
|
187
|
0 |
4 |
unless $self->{$internal_attribute}
|
191
|
2 |
2 |
if ($what eq 'country') { }
|
|
1 |
1 |
elsif ($what eq 'language') { }
|
|
1 |
0 |
elsif ($what eq 'currency') { }
|
194
|
2 |
0 |
if $self->{'_currency'} or $populate == 1
|
198
|
2 |
0 |
if ($self->{'_language'} or $populate == 1)
|
210
|
1 |
0 |
if ($self->{'_country'})
|
214
|
0 |
3 |
if $self->{'_country'}->code_alpha2 eq $_->code_alpha2
|
218
|
1 |
0 |
unless (defined $country)
|
224
|
1 |
0 |
if ($self->{'_language'}->official($_) eq 'true')
|
232
|
1 |
0 |
if $self->{'_country'} or $populate == 1
|
233
|
1 |
0 |
if $self->{'_currency'} or $populate == 1
|
240
|
1 |
0 |
if ($self->{'_language'})
|
247
|
0 |
1 |
if $_->currency->code eq $self->{'_currency'}->code
|
251
|
1 |
0 |
unless defined $country
|
256
|
0 |
1 |
if $self->{'_country'} or $populate == 1
|
257
|
1 |
0 |
if $self->{'_language'} or $populate == 1
|
274
|
0 |
1 |
unless $attribute
|
275
|
0 |
1 |
unless exists $valid{$attribute}
|
289
|
0 |
2 |
unless @_
|
298
|
0 |
1 |
unless @_
|
307
|
0 |
1 |
unless @_
|
316
|
0 |
4 |
unless @_
|
325
|
0 |
7 |
unless @_
|
334
|
0 |
1 |
unless @_
|
343
|
0 |
4 |
unless @_
|
352
|
0 |
1 |
unless @_
|
361
|
0 |
5 |
unless @_
|