Test Failed
Push — message-id-validator ( 1cb5b2 )
by Eduardo Gulias
02:07
created

MessageIDValidation::getWarnings()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Egulias\EmailValidator\Validation;
4
5
use Egulias\EmailValidator\EmailLexer;
6
use Egulias\EmailValidator\Result\InvalidEmail;
7
8
class MessageIDValidation implements EmailValidation
9
{
10 4
    public function isValid(string $email, EmailLexer $emailLexer): bool
11
    {
12 4
        return true;
13
    }
14
15
    public function getWarnings(): array
16
    {
17
        return [];
18
    }
19
20
    public function getError(): ?InvalidEmail
21
    {
22
        return null;
23
    }
24
}
25