line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use strict; |
3
|
2
|
|
|
2
|
|
135164
|
use warnings; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
49
|
|
4
|
2
|
|
|
2
|
|
10
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
41
|
|
5
|
|
|
|
|
|
|
use Moo; |
6
|
2
|
|
|
2
|
|
439
|
use utf8; |
|
2
|
|
|
|
|
6196
|
|
|
2
|
|
|
|
|
9
|
|
7
|
2
|
|
|
2
|
|
1519
|
use List::Util qw(any); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
27
|
|
8
|
2
|
|
|
2
|
|
52
|
use namespace::clean; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
120
|
|
9
|
2
|
|
|
2
|
|
401
|
|
|
2
|
|
|
|
|
10479
|
|
|
2
|
|
|
|
|
11
|
|
10
|
|
|
|
|
|
|
with 'Dancer2::Plugin::FormValidator::Role::Validator'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
return { |
13
|
|
|
|
|
|
|
en => '%s must be accepted', |
14
|
|
|
|
|
|
|
ru => '%s должно быть выбрано', |
15
|
1
|
|
|
1
|
0
|
1244
|
de => '%s muss markiert sein', |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
around 'stop_on_fail' => sub { |
20
|
|
|
|
|
|
|
return 1; |
21
|
|
|
|
|
|
|
}; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
my ($self, $field, $input) = @_; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
if (exists $input->{$field}) { |
26
|
5
|
|
|
5
|
0
|
12
|
return any { $input->{$field} eq $_ } qw(yes on 1); |
27
|
|
|
|
|
|
|
} |
28
|
5
|
50
|
|
|
|
15
|
|
29
|
5
|
|
|
12
|
|
29
|
return 0; |
|
12
|
|
|
|
|
45
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
|
|
|
1; |