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.

Option::isAllowPrint()   A
last analyzed

Complexity

Conditions 3
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 3.1406

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
ccs 3
cts 4
cp 0.75
cc 3
nc 2
nop 2
crap 3.1406
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: jaredchu
5
 * Date: 12/1/16
6
 * Time: 5:37 PM
7
 */
8
9
namespace JC\Firebase;
10
11
use JC\Firebase\Enums\PrintType;
12
use JC\Firebase\Enums\RequestType;
13
14
class Option
15
{
16
    const OPT_SHALLOW = 'shallow';
17
    const OPT_PRINT = 'print';
18
19 1
    public static function isAllowPrint($reqType, $printType)
20
    {
21 1
        if ($printType == PrintType::SILENT && $reqType == RequestType::DELETE) {
22
            return false;
23
        }
24
25 1
        return true;
26
    }
27
}