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.
Passed
Push — master ( 71855e...afa53f )
by Jared
02:09
created

Option::isAllowPrint()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 3.1406

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 8
ccs 3
cts 4
cp 0.75
rs 9.4285
cc 3
eloc 4
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 JCFirebase;
10
11
use JCFirebase\Enums\RequestType;
12
use JCFirebase\Enums\PrintType;
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
}