| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public static function create(string $emailAddress): array |
||
| 29 | { |
||
| 30 | $validator = new EmailValidator(); |
||
| 31 | $result = []; |
||
| 32 | |||
| 33 | foreach (self::$defaultValidators as $key => $val) { |
||
| 34 | $result[get_class(new $val)] = $validator->isValid($emailAddress, new $val); |
||
| 35 | } |
||
| 36 | |||
| 37 | return $result; |
||
| 38 | } |
||
| 39 | } |