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
Pull Request — 3.x (#1887)
by
unknown
03:31
created

GlobalUtil   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 17
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A header() 0 4 1
A headersSent() 0 4 1
A connectionStatus() 0 4 1
1
<?php
2
3
namespace Slim;
4
5
use Slim\Interfaces\GlobalUtilInterface;
6
7
/**
8
 * GlobalUtil
9
 *
10
 * This class contains the functions that wrap PHP global
11
 * functions that have functionality that is hard to emulate
12
 * in a test environment.
13
 */
14
class GlobalUtil implements GlobalUtilInterface
15
{
16
    public function header($string, $replace = true)
17
    {
18
        header($string, $replace);
19
    }
20
21
    public function headersSent()
22
    {
23
        return headers_sent();
24
    }
25
26
    public function connectionStatus()
27
    {
28
        return connection_status();
29
    }
30
}
31