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   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 14
ccs 3
cts 4
cp 0.75
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A isAllowPrint() 0 8 3
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
}