line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use Moo; |
3
|
1
|
|
|
1
|
|
1114
|
use utf8; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
5
|
|
4
|
1
|
|
|
1
|
|
802
|
use namespace::clean; |
|
1
|
|
|
|
|
13
|
|
|
1
|
|
|
|
|
5
|
|
5
|
1
|
|
|
1
|
|
29
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
6
|
|
|
|
|
|
|
with 'Dancer2::Plugin::FormValidator::Role::Validator'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
return { |
9
|
|
|
|
|
|
|
en => '%s is already exists', |
10
|
|
|
|
|
|
|
ru => '%s уже существует', |
11
|
0
|
|
|
0
|
0
|
|
de => '%s ist bereits vorhanden', |
12
|
|
|
|
|
|
|
}; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my ($self, $field, $input, $source, $attribute) = @_; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
if ($self->_field_defined_and_non_empty($field, $input)) { |
18
|
0
|
|
|
0
|
0
|
|
my $result = $self->extension->schema->resultset($source)->search( |
19
|
|
|
|
|
|
|
{ |
20
|
0
|
0
|
|
|
|
|
$attribute => $input->{$field}, |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
)->first; |
23
|
0
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
return $result ? 0 : 1; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
0
|
0
|
|
|
|
|
return 1; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
1; |