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.

UserIDValidator::isValidUserId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 9.7998
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php declare (strict_types=1);
2
3
/**
4
 * @license MIT
5
 * @author Samuel Adeshina <[email protected]>
6
 *
7
 * This file is part of the EmmetBlue project, please read the license document
8
 * available in the root level of the project
9
 */
10
namespace EmmetBlue\Core\Validator\Validators;
11
12
use EmmetBlue\Core\Validator\ValidatorInterface;
13
use EmmetBlue\Core\Builder\BuilderFactory as Builder;
14
15
/**
16
 * Class UserIDValidator
17
 *
18
 * @author Samuel Adeshina <[email protected]>
19
 *
20
 * @since v0.0.1 08/06/2016 14:20
21
 */
22
class UserIDValidator implements ValidatorInterface
23
{
24
    public function isValidUserId(string $userId)
25
    {
26
        $selectQuery = (new Builder('QueryBuilder', 'Select'))->getBuilder();
27
28
        $selectQuery
29
            ->top(1)
30
            ->columns('StaffID')
31
            ->from('[Staffs].[Staff]')
32
            ->where(
33
                'StaffID',
34
                '='.
35
                $userId
36
            );
37
    }
38
}
39