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.

ResponseFaker   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A withArray() 0 9 1
1
<?php
2
3
namespace EllipseSynergie\ApiResponse\Tests;
4
5
use EllipseSynergie\ApiResponse\AbstractResponse;
6
7
/**
8
 * Class ResponseFaker
9
 *
10
 * @package EllipseSynergie\ApiResponse\Tests
11
 * @author Maxime Beaudoin <[email protected]>
12
 */
13
class ResponseFaker extends AbstractResponse
14
{
15
    /**
16
     * @param array $array
17
     * @param array $headers
18
     * @param int $json_options
19
     * @return array
20
     */
21
    public function withArray(array $array, array $headers = array(), $json_options = 0)
22
    {
23
        $response = [
24
            'status' => $this->statusCode,
25
            'headers' => $headers
26
        ];
27
28
        return array_merge($response, $array);
29
    }
30
}
31