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   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 20
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRemoteProvider() 0 10 2
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