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::doCycleCheckpoints()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 2
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