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.

GuardableSentinel   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A doCycleCheckpoints() 0 4 1
1
<?php
2
3
namespace Rojtjo\SentinelGuard;
4
5
use Cartalyst\Sentinel\Sentinel;
6
use Cartalyst\Sentinel\Users\UserInterface;
7
8
class GuardableSentinel extends Sentinel
9
{
10
    /**
11
     * Cycles through all the registered checkpoints for a user. Checkpoints
12
     * may throw their own exceptions, however, if just one returns false,
13
     * the cycle fails.
14
     *
15
     * @param  string  $method
16
     * @param  \Cartalyst\Sentinel\Users\UserInterface  $user
17
     * @param  bool  $halt
18
     * @return bool
19
     */
20
    public function doCycleCheckpoints($method, UserInterface $user = null, $halt = true)
21
    {
22
        return $this->cycleCheckpoints($method, $user, $halt);
23
    }
24
}
25