line |
true |
false |
branch |
24
|
4 |
12 |
if (not ref $hook) { } |
|
2 |
10 |
elsif (ref $hook eq 'HASH') { } |
|
1 |
9 |
elsif (&blessed($hook) and $hook->can('call')) { } |
|
0 |
9 |
elsif ((ref $hook // '') ne 'CODE') { } |
31
|
0 |
2 |
ref $args eq 'HASH' ? : |
44
|
12 |
17 |
(ref $self->hook // '') eq 'ARRAY' ? : |
52
|
0 |
28 |
if ($self->secret) |
59
|
2 |
26 |
unless $self->access |
60
|
10 |
18 |
if $self->access eq 'all' |
62
|
24 |
4 |
unless ($self->access =~ /^github$/i) |
65
|
3 |
23 |
if (@rules and $rules[0] eq 'allow' and $_ =~ /^github$/i) { } |
80
|
1 |
24 |
if ($env->{'REQUEST_METHOD'} ne 'POST') |
90
|
23 |
1 |
if (not $self->events or grep {$event eq $_;} @{$self->events;}) |
95
|
2 |
22 |
unless ($payload) |
103
|
9 |
12 |
if ($self->receive([$payload, $event, $delivery, $logger], $env->{'psgi.errors'})) { } |
109
|
1 |
20 |
if $self->events |
122
|
5 |
9 |
if (not eval {
do {
&$hook(@$args)
}
} or $@) |
123
|
2 |
3 |
if ($@) |
124
|
1 |
1 |
if ($self->safe) { } |
150
|
0 |
22 |
if (&blessed($self->{'logger'})) { } |