line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Cikl::Models::Address::email; |
2
|
2
|
|
|
2
|
|
6874
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
77
|
|
3
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
83
|
|
4
|
2
|
|
|
2
|
|
408
|
use Mouse; |
|
2
|
|
|
|
|
76063
|
|
|
2
|
|
|
|
|
13
|
|
5
|
2
|
|
|
2
|
|
2737
|
use Cikl::Models::AddressRole; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
62
|
|
6
|
2
|
|
|
2
|
|
17
|
use namespace::autoclean; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
12
|
|
7
|
2
|
|
|
2
|
|
1660
|
use Cikl::DataTypes::Email; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
360
|
|
8
|
|
|
|
|
|
|
with 'Cikl::Models::AddressRole'; |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
0
|
3
|
sub type { 'email' } |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has '+value' => ( |
13
|
|
|
|
|
|
|
isa => 'Cikl::DataTypes::Email', |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub normalize_value { |
17
|
3
|
|
|
3
|
0
|
4
|
my $class = shift; |
18
|
3
|
|
|
|
|
7
|
my $value = shift; |
19
|
3
|
50
|
33
|
|
|
27
|
return $value unless ($value && ref($value) eq ''); |
20
|
3
|
|
|
|
|
13
|
$value =~ s/^\s+//; |
21
|
3
|
|
|
|
|
9
|
$value =~ s/\s+$//; |
22
|
3
|
|
|
|
|
14
|
return lc($value); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
26
|
|
|
|
|
|
|
1; |