GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 9cfb86...dd4acb )
by Marc
10s
created

NotEmpty   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 17
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A isValid() 0 8 1
1
<?php
2
/**
3
 * @package: PropertyValidator
4
 *
5
 * @author:  msiebeneicher
6
 * @since:   2016-11-10
7
 *
8
 */
9
10
namespace Chapi\Service\JobValidator\PropertyValidator;
11
12
13
use Chapi\Entity\Chronos\JobEntity;
14
use Chapi\Service\JobValidator\PropertyValidatorInterface;
15
16
class NotEmpty extends AbstractPropertyValidator implements PropertyValidatorInterface
17
{
18
    const DIC_NAME = 'NotEmptyValidator';
19
    const MESSAGE_TEMPLATE = '"%s" is empty';
20
    
21
    /**
22
     * @inheritDoc
23
     */
24 3
    public function isValid($sProperty, JobEntity $oJobEntity)
25
    {
26 3
        return $this->returnIsValidHelper(
27 3
            !empty($oJobEntity->{$sProperty}),
28 3
            $sProperty,
29
            self::MESSAGE_TEMPLATE
30 3
        );
31
    }
32
}