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.

LogoutController::getRemoteProvider()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 0
cts 10
cp 0
rs 9.9332
c 0
b 0
f 0
cc 2
nc 2
nop 1
crap 6
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: dsmrt
5
 * Date: 1/10/18
6
 * Time: 11:52 AM
7
 */
8
9
namespace flipbox\saml\idp\controllers;
10
11
use flipbox\saml\core\controllers\messages\AbstractLogoutController;
12
use flipbox\saml\core\records\ProviderInterface;
13
use flipbox\saml\idp\traits\SamlPluginEnsured;
14
15
/**
16
 * Class LogoutController
17
 *
18
 * @package flipbox\saml\idp\controllers
19
 */
20
class LogoutController extends AbstractLogoutController
21
{
22
23
    use SamlPluginEnsured;
24
25
    /**
26
     * @param null $uid
27
     * @return bool|ProviderInterface
28
     */
29
    protected function getRemoteProvider($uid = null)
30
    {
31
        $condition = [];
32
        if ($uid) {
33
            $condition = [
34
                'uid' => $uid,
35
            ];
36
        }
37
        return $this->getPlugin()->getProvider()->findBySp($condition)->one();
38
    }
39
}
40