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.
Completed
Push — master ( c428a4...8cb3bd )
by Jared
12:57
created

Option::isAllowPrint()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
rs 9.4285
cc 3
eloc 4
nc 2
nop 2
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
    public static function isAllowPrint($reqType, $printType)
20
    {
21
        if ($printType == PrintType::SILENT && $reqType == RequestType::DELETE) {
22
            return false;
23
        }
24
25
        return true;
26
    }
27
}