line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use strict; |
3
|
4
|
|
|
4
|
|
2490
|
use warnings; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
112
|
|
4
|
4
|
|
|
4
|
|
20
|
|
|
4
|
|
|
|
|
86
|
|
|
4
|
|
|
|
|
112
|
|
5
|
|
|
|
|
|
|
use Moo; |
6
|
4
|
|
|
4
|
|
21
|
use utf8; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
26
|
|
7
|
4
|
|
|
4
|
|
1295
|
use namespace::clean; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
38
|
|
8
|
4
|
|
|
4
|
|
99
|
|
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
38
|
|
9
|
|
|
|
|
|
|
with 'Dancer2::Plugin::FormValidator::Role::Validator'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
return { |
12
|
|
|
|
|
|
|
en => '%s must be the same as %s', |
13
|
|
|
|
|
|
|
ru => '%s должно совпадать со значением %s', |
14
|
3
|
|
|
3
|
0
|
1769
|
de => '%s muss identisch mit %s sein', |
15
|
|
|
|
|
|
|
}; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my ($self, $field, $input, $field2) = @_; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
if ($self->_field_defined_and_non_empty($field, $input)) { |
21
|
9
|
|
|
9
|
0
|
174
|
if (exists $input->{$field2}) { |
22
|
|
|
|
|
|
|
return $self->_is_same_as($input->{$field}, $input->{$field2}); |
23
|
9
|
50
|
|
|
|
41
|
} |
24
|
9
|
100
|
|
|
|
30
|
else { |
25
|
8
|
|
|
|
|
29
|
return 0; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
1
|
|
|
|
|
4
|
|
29
|
|
|
|
|
|
|
return 1; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
|
|
0
|
my ($self, $value1, $value2) = @_; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
if (defined $value1 and defined $value2) { |
35
|
|
|
|
|
|
|
return $value1 eq $value2; |
36
|
8
|
|
|
8
|
|
23
|
} |
37
|
|
|
|
|
|
|
|
38
|
8
|
50
|
33
|
|
|
38
|
return 0; |
39
|
8
|
|
|
|
|
42
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |