line |
true |
false |
branch |
35
|
96 |
13 |
unless $element->isa('PPI::Statement::Include')
|
37
|
13 |
0 |
if ($children[1] and $children[1]->isa('PPI::Token::Word') and $children[1] eq 'Try::Tiny')
|
51
|
123 |
14 |
if $elem->content ne 'try'
|
52
|
0 |
14 |
unless is_function_call($elem)
|
56
|
14 |
0 |
if (my $try_block = $elem->snext_sibling)
|
57
|
14 |
0 |
if ($try_block->isa('PPI::Structure::Block'))
|
61
|
8 |
6 |
if ($sib and $sib->content eq 'catch' and my $catch_block = $sib->snext_sibling)
|
62
|
8 |
0 |
if ($catch_block->isa('PPI::Structure::Block'))
|
67
|
0 |
14 |
if ($sib and $sib->content eq 'finally' and my $finally_block = $sib->snext_sibling)
|
68
|
0 |
0 |
if ('finally_block'->isa('PPI::Structure::Block'))
|
76
|
6 |
13 |
if (defined $violation)
|
95
|
5 |
375 |
if ($element->isa('PPI::Statement::Compound')) { }
|
|
6 |
369 |
elsif ($element->isa('PPI::Structure::Block')) { }
|
|
45 |
324 |
elsif ($element->isa('PPI::Token::Word')) { }
|
96
|
2 |
3 |
if ($element->type eq 'for' or $element->type eq 'foreach')
|
104
|
2 |
4 |
if ($prev_sib and $prev_sib->isa('PPI::Token::Word') and $prev_sib eq 'sub')
|
110
|
1 |
44 |
if ($element eq 'return' and not $in_sub_block)
|
117
|
10 |
34 |
if ($element eq 'next' or $element eq 'redo' or $element eq 'last')
|
118
|
5 |
5 |
if (not $in_for_loop || $sib && _is_label($sib))
|
133
|
1 |
7 |
if ($element eq 'if' or $element eq 'unless')
|
137
|
3 |
4 |
$element =~ /^[_a-z]+$/i ? :
|