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::withArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 3
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