| 1 | package String::Validator::Language::FR ; | ||||||||||
| 2 | 1 | $String::Validator::Language::FR::VERSION = '2.04'; | |||||||||
| 3 | 3 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=1.4
Pod
undocumented
| |||||||||||
| 4 | return { | ||||||||||
| 5 | common_strings_not_match => 'Les chaînes de caractères ne correspondent pas.', | ||||||||||
| 6 | common_tooshort => " Ne respecte pas la longeur minimale imposée ", | ||||||||||
| 7 | common_toolong => " Ne respecte pas la longueur maximal imposée ", | ||||||||||
| 8 | 1 | ▶ | password_mintypes => sub { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | my $self = shift @_; | |||||||||
| 10 | 1 | return "$self->{types_found} contraintes ont été trouvées, $self->{min_types} est requis."; | |||||||||
| 11 | }, | ||||||||||
| 12 | 0 | ▶ | password_minoftype => sub { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 13 | 0 | my ( $required, $type ) = @_; | |||||||||
| 14 | 0 | ▶ | if ( $type eq 'num') { $type = 'numérique'} | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | return "A pire $required caractères de $type est requis."; | |||||||||
| 16 | }, | ||||||||||
| 17 | 1 | ▶ | password_typeprohibit => sub { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
| |||||||||||
| 18 | 1 | my $type = shift @_; | |||||||||
| 19 | 0 | ▶ | if ( $type eq 'num') { $type = 'numérique'} | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 1 | return "Caractères de $type est interdit." | |||||||||
| 21 | }, | ||||||||||
| 22 | } | ||||||||||
| 23 | 3 | } | |||||||||
| 24 | |||||||||||
| 25 | 1 | 1; | |||||||||
| 26 | |||||||||||
| 27 | __END__ | ||||||||||