line |
true |
false |
branch |
61
|
4 |
3 |
if ref $args ne 'HASH' |
65
|
1 |
6 |
unless defined $args->{'file'} |
67
|
0 |
6 |
if (ref $args->{'tags'} eq 'ARRAY') |
70
|
4 |
2 |
if (UNIVERSAL::isa($args->{'file'}, 'Mojo::Asset')) { } |
|
0 |
2 |
elsif (UNIVERSAL::isa($args->{'file'}, 'Mojo::Upload')) { } |
92
|
2 |
1 |
unless ref $args eq 'HASH' |
94
|
1 |
2 |
unless defined $args->{'public_id'} |
121
|
2 |
6 |
$cb ? : |
124
|
2 |
6 |
if $cb |
126
|
0 |
6 |
if $res |
128
|
1 |
5 |
if $res->{'error'} |
137
|
19 |
61 |
if defined $args->{$k} |
147
|
0 |
6 |
unless my $public_id = shift() |
149
|
4 |
2 |
$public_id =~ s/\.(\w+)// ? : |
150
|
0 |
6 |
delete $args->{'secure'} ? : |
159
|
7 |
0 |
if $_ ne 'resource_type' |