EmptyValidator::isValid()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 3
c 1
b 0
f 0
nc 2
nop 1
dl 0
loc 6
rs 10
1
<?php
2
3
namespace AndreDeBrito\PHPViaCep\Validators;
4
5
/**
6
 * Class EmptyValidator [Validator]
7
 *
8
 * @author André de Brito <https://github.com/andredebrito>
9
 * @package AndredeBrito\PHPViaCep\Validators
10
 */
11
class EmptyValidator {
12
13
    public static function isValid($value): bool {
14
        if (empty($value)) {
15
            return false;
16
        }
17
18
        return true;
19
    }
20
21
}
22