line |
true |
false |
branch |
21
|
0 |
0 |
if ($forced_file_name) { } |
33
|
0 |
0 |
unless open FH, '>', $file |
51
|
0 |
0 |
if $extra_dir |
64
|
0 |
0 |
if ($$field{'is'} eq 'date' and not $$params{$name}) |
82
|
2 |
4 |
if (defined $$item{'optional'} and $$item{'optional'}) { } |
|
0 |
4 |
elsif (defined $$item{'type'} and $$item{'type'} eq 'display') { } |
92
|
1 |
5 |
if (defined $$item{'constraint'} and $$item{'constraint'}) |
99
|
2 |
0 |
if @required |
100
|
1 |
1 |
if @optional |
101
|
1 |
1 |
if keys %constraints |
112
|
0 |
0 |
if $p =~ /^\./ |
119
|
0 |
0 |
unless defined $$field{'is'} |
120
|
0 |
0 |
unless defined $$field{'name'} |
121
|
0 |
0 |
unless defined $$params{$name} |
123
|
0 |
0 |
if ($$field{'is'} =~ /^varchar/i and $$params{$name} eq '') { } |
|
0 |
0 |
elsif ($$field{'is'} =~ /^int/i and $$params{$name} eq '') { } |
|
0 |
0 |
elsif (not $$field{'is'} =~ /^bool/i || $$field{'is'} =~ /^int/i || $$params{$name}) { } |
159
|
0 |
0 |
unless (defined $action) |
165
|
0 |
0 |
unless defined $permissions |
183
|
0 |
0 |
if ($action eq 'add') { } |
|
0 |
0 |
elsif ($action eq 'edit' or $action eq 'delete') { } |
188
|
0 |
0 |
if $user_id and $owner_bit eq $action_bit |
196
|
0 |
0 |
if $user_id and $user_id eq $row->user_id and $owner_bit eq $action_bit |
209
|
0 |
0 |
if $$permissions{'group'} and $$member_of{$$permissions{'group'}} and $group_bit eq $action_bit |
213
|
0 |
0 |
if $other_bit eq $action_bit |
215
|
0 |
0 |
if ($action eq 'add') { } |
|
0 |
0 |
elsif ($action eq 'edit') { } |
|
0 |
0 |
elsif ($action eq 'delete') { } |