line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use strict; |
3
|
5
|
|
|
5
|
|
2732
|
use warnings; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
113
|
|
4
|
5
|
|
|
5
|
|
23
|
|
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
98
|
|
5
|
|
|
|
|
|
|
use Moo; |
6
|
5
|
|
|
5
|
|
18
|
use utf8; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
23
|
|
7
|
5
|
|
|
5
|
|
1353
|
use List::Util qw(any); |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
26
|
|
8
|
5
|
|
|
5
|
|
149
|
use namespace::clean; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
616
|
|
9
|
5
|
|
|
5
|
|
27
|
|
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
30
|
|
10
|
|
|
|
|
|
|
with 'Dancer2::Plugin::FormValidator::Role::Validator'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
return { |
13
|
|
|
|
|
|
|
en => '%s contains invalid value', |
14
|
|
|
|
|
|
|
ru => '%s содержит неверное значение', |
15
|
1
|
|
|
1
|
0
|
1793
|
de => '%s enthält einen ungültigen Wert', |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
my ($self, $field, $input, @enum) = @_; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
if ($self->_field_defined_and_non_empty($field, $input)) { |
22
|
7
|
|
|
7
|
0
|
25
|
return $self->_is_enum($input->{$field}, @enum); |
23
|
|
|
|
|
|
|
} |
24
|
7
|
50
|
|
|
|
29
|
|
25
|
7
|
|
|
|
|
25
|
return 1; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
0
|
my ($self, $value1, @enum) = @_; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
if (defined $value1) { |
31
|
|
|
|
|
|
|
return any {$_ eq $value1} @enum; |
32
|
7
|
|
|
7
|
|
19
|
|
33
|
|
|
|
|
|
|
} |
34
|
7
|
50
|
|
|
|
19
|
|
35
|
7
|
|
|
13
|
|
43
|
return 0; |
|
13
|
|
|
|
|
52
|
|
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |