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.

Cache   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTimerTime() 0 8 2
1
<?php
2
namespace Undefined\Stash;
3
4
class Cache
5
{
6
    /**
7
     * Returns the time in seconds how long timber should cache its rendring
8
     *
9
     * @return int
10
     */
11
    static function getTimerTime()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
12
    {
13
        if ($_ENV['WP_ENV'] != "production") {
14
            return 2;
15
        } else {
16
            return 6000;
17
        }
18
    }
19
}