Passed
Push — develop ( 6e78c9...4aabf2 )
by Stan
04:01 queued 22s
created

ResponseFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A make() 0 3 1
1
<?php
2
3
namespace Krenor\Http2Pusher\Factories;
4
5
use Krenor\Http2Pusher\Response;
6
use Illuminate\Routing\ResponseFactory as BaseResponseFactory;
7
8
class ResponseFactory extends BaseResponseFactory
9
{
10
    /**
11
     * Return a new response from the application.
12
     *
13
     * @param  string $content
14
     * @param  int $status
15
     * @param  array $headers
16
     *
17
     * @return \Krenor\Http2Pusher\Response
18
     */
19
    public function make($content = '', $status = 200, array $headers = [])
20
    {
21
        return new Response($content, $status, $headers);
22
    }
23
}
24