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
Pull Request — master (#61)
by Marc
02:33
created

AbstractPropertyValidator::getLastErrorMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * @package: chapi
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
abstract class AbstractPropertyValidator implements PropertyValidatorInterface
17
{
18
    /** @var string  */
19
    protected $sLastErrMsg = '';
20
21
    /**
22
     * @inheritDoc
23
     */
24
    public abstract function isValid($sProperty, JobEntity $oJobEntity);
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
25
    
26
    /**
27
     * @inheritDoc
28
     */
29 32
    public function getLastErrorMessage()
30
    {
31 32
        return $this->sLastErrMsg;
32
    }
33
34
    /**
35
     * @param boolean $bIsValid
36
     * @param string $sProperty
37
     * @param string $sErrMsgTpl
38
     * @return bool
39
     */
40 32
    protected function returnIsValidHelper($bIsValid, $sProperty, $sErrMsgTpl)
1 ignored issue
show
Coding Style introduced by
function returnIsValidHelper() does not seem to conform to the naming convention (^(?:is|has|should|may|supports)).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
41
    {
42 32
        if (!$bIsValid)
43 32
        {
44 22
            $this->sLastErrMsg = sprintf($sErrMsgTpl, $sProperty);
45 22
            return false;
46
        }
47
48 20
        $this->sLastErrMsg = '';
49 20
        return true;
50
    }
51
}