line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use strict; |
3
|
2
|
|
|
2
|
|
1205
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
50
|
|
4
|
2
|
|
|
2
|
|
9
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
42
|
|
5
|
|
|
|
|
|
|
use Moo; |
6
|
2
|
|
|
2
|
|
8
|
use utf8; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
9
|
|
7
|
2
|
|
|
2
|
|
543
|
use List::Util qw(any); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
12
|
|
8
|
2
|
|
|
2
|
|
49
|
use namespace::clean; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
129
|
|
9
|
2
|
|
|
2
|
|
14
|
|
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
10
|
|
10
|
|
|
|
|
|
|
with 'Dancer2::Plugin::FormValidator::Role::Validator'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
return { |
13
|
|
|
|
|
|
|
en => '%s must be boolean', |
14
|
|
|
|
|
|
|
ru => '%s должно иметь логическое значение', |
15
|
1
|
|
|
1
|
0
|
1192
|
de => '%s muss boolesch sein', |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
my ($self, $field, $input) = @_; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
if ($self->_field_defined_and_non_empty($field, $input)) { |
22
|
2
|
|
|
2
|
0
|
8
|
return any { $input->{$field} eq $_ } qw(0 1); |
23
|
|
|
|
|
|
|
} |
24
|
2
|
50
|
|
|
|
7
|
|
25
|
2
|
|
|
4
|
|
12
|
return 1; |
|
4
|
|
|
|
|
17
|
|
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
1; |