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.

ResponseFake::withArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace EllipseSynergie\ApiResponse\Tests\Laravel;
4
5
use Illuminate\Contracts\Routing\ResponseFactory;
6
7
/**
8
 * Class ResponseFake
9
 * @package EllipseSynergie\ApiResponse\Tests\Laravel
10
 * @author Maxime Beaudoin <[email protected]>
11
 */
12
class ResponseFake extends \EllipseSynergie\ApiResponse\Laravel\Response
13
{
14
    /**
15
     * @param array $array
16
     * @param array $headers
17
     * @param int $json_options
18
     * @return ResponseFactory
19
     */
20
    public function withArray(array $array, array $headers = array(), $json_options = 0)
21
    {
22
        return (new ResponseFactoryFake())->json($array);
23
    }
24
}
25