Completed
Push — master ( 89fe2f...2bde54 )
by wen
05:41
created

Email   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 11
c 1
b 0
f 0
wmc 1
lcom 0
cbo 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDefaultValidationRules() 0 6 1
1
<?php
2
3
4
namespace Sco\Admin\Form\Elements;
5
6
class Email extends Text
7
{
8
    protected $type = 'email';
9
10
    protected function getDefaultValidationRules()
11
    {
12
        return parent::getDefaultValidationRules() + [
13
                'email' => 'email',
14
            ];
15
    }
16
}
17