PermissiveValidator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 10
ccs 0
cts 4
cp 0
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A validate() 0 3 1
A inspect() 0 3 1
1
<?php
2
3
namespace WebTheory\Saveyour\Validation;
4
5
use WebTheory\Saveyour\Contracts\Report\ValidationReportInterface;
6
use WebTheory\Saveyour\Contracts\Validation\ValidatorInterface;
7
use WebTheory\Saveyour\Report\ValidationReport;
8
9
class PermissiveValidator implements ValidatorInterface
10
{
11
    public function validate($input): bool
12
    {
13
        return true;
14
    }
15
16
    public function inspect($input): ValidationReportInterface
17
    {
18
        return new ValidationReport(true);
19
    }
20
}
21