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 ( a4e2d6...e47a53 )
by Jorge
8s
created

NullAnalyticsResponse   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 35
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getHttpStatusCode() 0 4 1
A getRequestUrl() 0 4 1
A getDebugResponse() 0 4 1
1
<?php
2
3
namespace TheIconic\Tracking\GoogleAnalytics;
4
5
/**
6
 * Represents the null-response object
7
 *
8
 * @package TheIconic\Tracking\GoogleAnalytics
9
 */
10
class NullAnalyticsResponse implements AnalyticsResponseInterface
11
{
12
    /**
13
     * It returns NULL as it is null-object.
14
     *
15
     * @api
16
     * @return null
17
     */
18
    public function getHttpStatusCode()
19
    {
20
        return null;
21
    }
22
23
    /**
24
     * It returns NULL as it is null-object.
25
     *
26
     * @api
27
     * @return null
28
     */
29
    public function getRequestUrl()
30
    {
31
        return null;
32
    }
33
34
    /**
35
     * Returns empty array as it is null-object.
36
     *
37
     * @api
38
     * @return array
39
     */
40
    public function getDebugResponse()
41
    {
42
        return [];
43
    }
44
}
45