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
|
66 |
22 |
unless defined $args->{$k} |
138
|
8 |
14 |
$k eq 'public_id' ? : |
149
|
0 |
6 |
unless my $public_id = shift() |
151
|
4 |
2 |
$public_id =~ s/\.(\w+)// ? : |
152
|
0 |
6 |
delete $args->{'secure'} ? : |
161
|
7 |
0 |
if $_ ne 'resource_type' |